diff options
| author | David Rientjes <[email protected]> | 2014-09-25 23:05:20 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-09-26 15:10:35 +0000 |
| commit | d4a5fca592b9ab52b90bb261a90af3c8f53be011 (patch) | |
| tree | ee03eb6ccce084507f013104e2ccf75b0138f0b4 /lib/genalloc.c | |
| parent | mm: softdirty: addresses before VMAs in PTE holes aren't softdirty (diff) | |
| download | kernel-d4a5fca592b9ab52b90bb261a90af3c8f53be011.tar.gz kernel-d4a5fca592b9ab52b90bb261a90af3c8f53be011.zip | |
mm, slab: initialize object alignment on cache creation
Since commit 4590685546a3 ("mm/sl[aou]b: Common alignment code"), the
"ralign" automatic variable in __kmem_cache_create() may be used as
uninitialized.
The proper alignment defaults to BYTES_PER_WORD and can be overridden by
SLAB_RED_ZONE or the alignment specified by the caller.
This fixes https://bugzilla.kernel.org/show_bug.cgi?id=85031
Signed-off-by: David Rientjes <[email protected]>
Reported-by: Andrei Elovikov <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions
