mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
slub: fix slab_pad_check()
When SLAB_POISON is used and slab_pad_check() finds an overwrite of the slab padding, we call restore_bytes() on the whole slab, not only on the padding. Acked-by: Christoph Lameer <[email protected]> Reported-by: Zdenek Kabelac <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
This commit is contained in:
parent
5788d8ad6c
commit
8a3d271deb
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ static int slab_pad_check(struct kmem_cache *s, struct page *page)
|
|||
slab_err(s, page, "Padding overwritten. 0x%p-0x%p", fault, end - 1);
|
||||
print_section("Padding", end - remainder, remainder);
|
||||
|
||||
restore_bytes(s, "slab padding", POISON_INUSE, start, end);
|
||||
restore_bytes(s, "slab padding", POISON_INUSE, end - remainder, end);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue