Message ID | 20200403203552.gqPUce5Nd%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] slub-improve-bit-diffusion-for-freelist-ptr-obfuscation.patch removed from -mm tree | expand |
--- a/mm/slub.c~slub-improve-bit-diffusion-for-freelist-ptr-obfuscation +++ a/mm/slub.c @@ -259,7 +259,7 @@ static inline void *freelist_ptr(const s * freepointer to be restored incorrectly. */ return (void *)((unsigned long)ptr ^ s->random ^ - (unsigned long)kasan_reset_tag((void *)ptr_addr)); + swab((unsigned long)kasan_reset_tag((void *)ptr_addr))); #else return ptr; #endif