summaryrefslogtreecommitdiffstats
path: root/mm/failslab.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2019-03-06 00:46:06 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 06:07:17 +0100
commit0ee930e6cafa048c1925893d0ca89918b2814f2c (patch)
tree583057c2957c316cbb52378c8758c408b676d216 /mm/failslab.c
parentmm: prevent mapping slab pages to userspace (diff)
downloadlinux-0ee930e6cafa048c1925893d0ca89918b2814f2c.tar.xz
linux-0ee930e6cafa048c1925893d0ca89918b2814f2c.zip
mm/memory.c: prevent mapping typed pages to userspace
Pages which use page_type must never be mapped to userspace as it would destroy their page type. Add an explicit check for this instead of assuming that kernel drivers always get this right. Link: http://lkml.kernel.org/r/20190129053830.3749-1-willy@infradead.org Signed-off-by: Matthew Wilcox <willy@infradead.org> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/failslab.c')
0 files changed, 0 insertions, 0 deletions