Skip to content
Commit 5c5e3b33 authored by Shiyong Li's avatar Shiyong Li Committed by Pekka Enberg
Browse files

slab: Fix missing DEBUG_SLAB last user



Even with SLAB_RED_ZONE and SLAB_STORE_USER enabled, kernel would NOT store
redzone and last user data around allocated memory space if "arch cache line >
sizeof(unsigned long long)". As a result, last user information is unexpectedly
MISSED while dumping slab corruption log.

This fix makes sure that redzone and last user tags get stored unless the
required alignment breaks redzone's.

Signed-off-by: default avatarShiyong Li <shi-yong.li@motorola.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 0d0fb0f9
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