Loading Documentation/vm/slub.txt +4 −0 Original line number Diff line number Diff line Loading @@ -252,6 +252,10 @@ After reporting the details of the issue encountered the FIX SLUB message tells us that SLUB has restored the Redzone to its proper value and then system operations continue. If it is required to only report the details of the issue and panic immediately after in order to possibly catch any scribblers one can set the CONFIG_DEBUG_SLUB_PANIC_ON option. Emergency operations: --------------------- Loading mm/slub.c +4 −0 Original line number Diff line number Diff line Loading @@ -649,8 +649,12 @@ static void init_object(struct kmem_cache *s, void *object, u8 val) static void restore_bytes(struct kmem_cache *s, char *message, u8 data, void *from, void *to) { #ifdef CONFIG_SLUB_DEBUG_PANIC_ON panic("Found corruption 0x%p-0x%p=0x%x\n", from, to - 1, data); #else slab_fix(s, "Restoring 0x%p-0x%p=0x%x\n", from, to - 1, data); memset(from, data, to - from); #endif } static int check_bytes_and_report(struct kmem_cache *s, struct page *page, Loading Loading
Documentation/vm/slub.txt +4 −0 Original line number Diff line number Diff line Loading @@ -252,6 +252,10 @@ After reporting the details of the issue encountered the FIX SLUB message tells us that SLUB has restored the Redzone to its proper value and then system operations continue. If it is required to only report the details of the issue and panic immediately after in order to possibly catch any scribblers one can set the CONFIG_DEBUG_SLUB_PANIC_ON option. Emergency operations: --------------------- Loading
mm/slub.c +4 −0 Original line number Diff line number Diff line Loading @@ -649,8 +649,12 @@ static void init_object(struct kmem_cache *s, void *object, u8 val) static void restore_bytes(struct kmem_cache *s, char *message, u8 data, void *from, void *to) { #ifdef CONFIG_SLUB_DEBUG_PANIC_ON panic("Found corruption 0x%p-0x%p=0x%x\n", from, to - 1, data); #else slab_fix(s, "Restoring 0x%p-0x%p=0x%x\n", from, to - 1, data); memset(from, data, to - from); #endif } static int check_bytes_and_report(struct kmem_cache *s, struct page *page, Loading