forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit18a9552
x86/mm: Fix vmalloc_fault to use pXd_large
Gratian Crisan reported that vmalloc_fault() crashes when CONFIG_HUGETLBFSis not set since the function inadvertently uses pXn_huge(), which alwaysreturn 0 in this case. ioremap() does not depend on CONFIG_HUGETLBFS.Fix vmalloc_fault() to call pXd_large() instead.Fixes:f4eafd8 ("x86/mm: Fix vmalloc_fault() to handle large pages properly")Reported-by: Gratian Crisan <gratian.crisan@ni.com>Signed-off-by: Toshi Kani <toshi.kani@hpe.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Cc: stable@vger.kernel.orgCc: linux-mm@kvack.orgCc: Borislav Petkov <bp@alien8.de>Cc: Andy Lutomirski <luto@kernel.org>Link:https://lkml.kernel.org/r/20180313170347.3829-2-toshi.kani@hpe.com1 parentfc6eabb commit18a9552
1 file changed
+3
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 |
| - | |
| 333 | + | |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
| 489 | + | |
490 | 490 |
| |
491 | 491 |
| |
492 | 492 |
| |
|
0 commit comments
Comments
(0)