aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2019-03-05 15:46:02 -0800
committerLinus Torvalds <[email protected]>2019-03-05 21:07:17 -0800
commit2d432cb7091e99881af803cdd67a31969b863005 (patch)
tree6482724693aae6407eeb30d339aebef534e850bd /tools/perf/scripts/python/check-perf-trace.py
parentafd07389d3f4933c7f7817a92fb5e053d59a3182 (diff)
mm: prevent mapping slab pages to userspace
It's never appropriate to map a page allocated by SLAB into userspace. A buggy device driver might try this, or an attacker might be able to find a way to make it happen. Christoph said: : Let's just fail the code. Currently this may work with SLUB. But SLAB : and SLOB overlay fields with mapcount. So you would have a corrupted page : struct if you mapped a slab page to user space. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Pekka Enberg <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Michael Ellerman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions