Skip to content
Commit acdfcd04 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Pekka Enberg
Browse files

SLUB: fix ARCH_KMALLOC_MINALIGN cases 64 and 256



If the minalign is 64 bytes, then the 96 byte cache should not be created
because it would conflict with the 128 byte cache.

If the minalign is 256 bytes, patching the size_index table should not
result in a buffer overrun.

The calculation "(i - 1) / 8" used to access size_index[] is moved to
a separate function as suggested by Christoph Lameter.

Acked-by: default avatarChristoph Lameter <cl@linux-foundation.org>
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent cf5d1131
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