commit | 85ba94ba0592296053f7f2846812173424afe1cb | [log] [tgz] |
---|---|---|
author | Matt Mackall <[email protected]> | Tue Oct 07 11:37:35 2008 -0500 |
committer | Linus Torvalds <[email protected]> | Tue Oct 07 11:19:23 2008 -0700 |
tree | 08b988ee8ebae30f31830801a44a62e0eec4856e | |
parent | e09e6e2b6a5daf653794926ab50a784b14b6de53 [diff] |
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: Matt Mackall <[email protected]> Tested-by: Peter Zijlstra <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>