diff options
author | Kees Cook <[email protected]> | 2020-04-20 18:13:42 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-04-21 11:11:55 -0700 |
commit | 89b83f282d8ba380cf2124f88106c57df49c538c (patch) | |
tree | 1558992fadea29f2ff173d94543ef1d3af7fe21b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1eb64c07aab86eca7cdaa05a59d8da5a3ba758f8 (diff) |
slub: avoid redzone when choosing freepointer location
Marco Elver reported system crashes when booting with "slub_debug=Z".
The freepointer location (s->offset) was not taking into account that
the "inuse" size that includes the redzone area should not be used by
the freelist pointer. Change the calculation to save the area of the
object that an inline freepointer may be written into.
Fixes: 3202fa62fb43 ("slub: relocate freelist pointer to middle of object")
Reported-by: Marco Elver <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Tested-by: Marco Elver <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Link: http://lkml.kernel.org/r/202004151054.BD695840@keescook
Link: https://lore.kernel.org/linux-mm/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions