Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
538 B

  1. --- crash-7.3.2/memory.c.orig
  2. +++ crash-7.3.2/memory.c
  3. @@ -19412,9 +19412,8 @@ freelist_ptr(struct meminfo *si, ulong ptr, ulong ptr_addr)
  4. if (VALID_MEMBER(kmem_cache_random)) {
  5. /* CONFIG_SLAB_FREELIST_HARDENED */
  6. - if (THIS_KERNEL_VERSION >= LINUX(5,7,0))
  7. - ptr_addr = (sizeof(long) == 8) ? bswap_64(ptr_addr)
  8. - : bswap_32(ptr_addr);
  9. + ptr_addr = (sizeof(long) == 8) ? bswap_64(ptr_addr)
  10. + : bswap_32(ptr_addr);
  11. return (ptr ^ si->random ^ ptr_addr);
  12. } else
  13. return ptr;
  14. --
  15. fix freepointer issue