Skip to content
Commit 85ba94ba authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds
Browse files

SLOB: fix bogus ksize calculation



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: default avatarMatt Mackall <mpm@selenic.com>
Tested-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e09e6e2b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment