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
File Mode Size
cpia2
dabusb
dsp56k
edgeport
emi26
emi62
ess
kaweth
keyspan
keyspan_pda
korg
sb16
ttusb-budget
vicam
yamaha
.gitignore -rw-r--r-- 39 bytes
Makefile -rw-r--r-- 8.6 KB
WHENCE -rw-r--r-- 9.8 KB
atmsar11.HEX -rw-r--r-- 18.7 KB
ihex2fw.c -rw-r--r-- 6.2 KB
intelliport2.bin.ihex -rw-r--r-- 92.2 KB
ti_3410.fw.ihex -rw-r--r-- 37.0 KB
ti_5052.fw.ihex -rw-r--r-- 37.0 KB
tr_smctr.bin.ihex -rw-r--r-- 20.5 KB
whiteheat.HEX -rw-r--r-- 43.9 KB
whiteheat_loader.HEX -rw-r--r-- 11.8 KB
whiteheat_loader_debug.HEX -rw-r--r-- 17.2 KB

back to top