lkml.org 
[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] x86/mm: vmalloc_fault fix for CONFIG_HUGETLBFS off
Date
Gratian Crisan reported that vmalloc_fault() crashes when
CONFIG_HUGETLBFS is not set since the function inadvertently
uses pXn_huge(), which always return 0 in this case. [1]
ioremap() does not depend on CONFIG_HUGETLBFS.

Patch 01 fixes the issue in vmalloc_fault().
Patch 02 is a clean-up for vmalloc_fault().

[1] https://lkml.org/lkml/2018/3/8/1281

---
Toshi Kani (2):
1/2 x86/mm: fix vmalloc_fault to use pXd_large
2/2 x86/mm: remove pointless checks in vmalloc_fault

---
arch/x86/mm/fault.c | 62 +++++++++++++++++------------------------------------
1 file changed, 20 insertions(+), 42 deletions(-)

\
 
 \ /
  Last update: 2018-03-13 18:05    [W:0.101 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site