Re: [PATCH] mm: Prevent mapping typed pages to userspace

2019-01-30 Thread David Hildenbrand
On 29.01.19 06:38, Matthew Wilcox wrote: > 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. > > Signed-off-by: Matthew Wilcox > --- > mm/memory.c | 2

Re: [PATCH] mm: Prevent mapping typed pages to userspace

2019-01-29 Thread Kees Cook
On Tue, Jan 29, 2019 at 6:38 PM Matthew Wilcox wrote: > > 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. > > Signed-off-by: Matthew Wilcox Reviewed

[PATCH] mm: Prevent mapping typed pages to userspace

2019-01-28 Thread Matthew Wilcox
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. Signed-off-by: Matthew Wilcox --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif