https://github.com/torvalds/linux
Revision 85ba94ba0592296053f7f2846812173424afe1cb authored by Matt Mackall on 07 October 2008, 16:37:35 UTC, committed by Linus Torvalds on 07 October 2008, 18:19:23 UTC
SLOB's ksize calculation was braindamaged and generally harmlessly
underreported the allocation size. But for very small buffers, it could
in fact overreport them, leading code depending on krealloc to overrun
the allocation and trample other data.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Tested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e09e6e2
History
Tip revision: 85ba94ba0592296053f7f2846812173424afe1cb authored by Matt Mackall on 07 October 2008, 16:37:35 UTC
SLOB: fix bogus ksize calculation
Tip revision: 85ba94b

back to top