2022-06-06 22:16:34 +00:00
|
|
|
--- crash-7.3.2/memory.c.orig
|
|
|
|
+++ crash-7.3.2/memory.c
|
|
|
|
@@ -19412,9 +19412,8 @@ freelist_ptr(struct meminfo *si, ulong ptr, ulong ptr_addr)
|
2022-05-26 05:15:12 +00:00
|
|
|
if (VALID_MEMBER(kmem_cache_random)) {
|
|
|
|
/* CONFIG_SLAB_FREELIST_HARDENED */
|
|
|
|
|
|
|
|
- if (THIS_KERNEL_VERSION >= LINUX(5,7,0))
|
|
|
|
- ptr_addr = (sizeof(long) == 8) ? bswap_64(ptr_addr)
|
|
|
|
- : bswap_32(ptr_addr);
|
|
|
|
+ ptr_addr = (sizeof(long) == 8) ? bswap_64(ptr_addr)
|
|
|
|
+ : bswap_32(ptr_addr);
|
|
|
|
return (ptr ^ si->random ^ ptr_addr);
|
|
|
|
} else
|
|
|
|
return ptr;
|
|
|
|
--
|
2022-06-06 22:16:34 +00:00
|
|
|
fix freepointer issue
|