diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
commit | 7c225c69f86c934e3be9be63ecde754e286838d7 (patch) | |
tree | ff2df419b0c4886b37407235f7d21215e4cf45e4 /arch/x86/mm/fault.c | |
parent | 6363b3f3ac5be096d08c8c504128befa0c033529 (diff) | |
parent | 1b7176aea0a924ac59c6a283129d3e8eb00aa915 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge updates from Andrew Morton:
- a few misc bits
- ocfs2 updates
- almost all of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (131 commits)
memory hotplug: fix comments when adding section
mm: make alloc_node_mem_map a void call if we don't have CONFIG_FLAT_NODE_MEM_MAP
mm: simplify nodemask printing
mm,oom_reaper: remove pointless kthread_run() error check
mm/page_ext.c: check if page_ext is not prepared
writeback: remove unused function parameter
mm: do not rely on preempt_count in print_vma_addr
mm, sparse: do not swamp log with huge vmemmap allocation failures
mm/hmm: remove redundant variable align_end
mm/list_lru.c: mark expected switch fall-through
mm/shmem.c: mark expected switch fall-through
mm/page_alloc.c: broken deferred calculation
mm: don't warn about allocations which stall for too long
fs: fuse: account fuse_inode slab memory as reclaimable
mm, page_alloc: fix potential false positive in __zone_watermark_ok
mm: mlock: remove lru_add_drain_all()
mm, sysctl: make NUMA stats configurable
shmem: convert shmem_init_inodecache() to void
Unify migrate_pages and move_pages access checks
mm, pagevec: rename pagevec drained field
...
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 3109ba6c6ede..78ca9a8ee454 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <asm/cpufeature.h> /* boot_cpu_has, ... */ | 20 | #include <asm/cpufeature.h> /* boot_cpu_has, ... */ |
21 | #include <asm/traps.h> /* dotraplinkage, ... */ | 21 | #include <asm/traps.h> /* dotraplinkage, ... */ |
22 | #include <asm/pgalloc.h> /* pgd_*(), ... */ | 22 | #include <asm/pgalloc.h> /* pgd_*(), ... */ |
23 | #include <asm/kmemcheck.h> /* kmemcheck_*(), ... */ | ||
24 | #include <asm/fixmap.h> /* VSYSCALL_ADDR */ | 23 | #include <asm/fixmap.h> /* VSYSCALL_ADDR */ |
25 | #include <asm/vsyscall.h> /* emulate_vsyscall */ | 24 | #include <asm/vsyscall.h> /* emulate_vsyscall */ |
26 | #include <asm/vm86.h> /* struct vm86 */ | 25 | #include <asm/vm86.h> /* struct vm86 */ |
@@ -1256,8 +1255,6 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code, | |||
1256 | * Detect and handle instructions that would cause a page fault for | 1255 | * Detect and handle instructions that would cause a page fault for |
1257 | * both a tracked kernel page and a userspace page. | 1256 | * both a tracked kernel page and a userspace page. |
1258 | */ | 1257 | */ |
1259 | if (kmemcheck_active(regs)) | ||
1260 | kmemcheck_hide(regs); | ||
1261 | prefetchw(&mm->mmap_sem); | 1258 | prefetchw(&mm->mmap_sem); |
1262 | 1259 | ||
1263 | if (unlikely(kmmio_fault(regs, address))) | 1260 | if (unlikely(kmmio_fault(regs, address))) |
@@ -1280,9 +1277,6 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code, | |||
1280 | if (!(error_code & (X86_PF_RSVD | X86_PF_USER | X86_PF_PROT))) { | 1277 | if (!(error_code & (X86_PF_RSVD | X86_PF_USER | X86_PF_PROT))) { |
1281 | if (vmalloc_fault(address) >= 0) | 1278 | if (vmalloc_fault(address) >= 0) |
1282 | return; | 1279 | return; |
1283 | |||
1284 | if (kmemcheck_fault(regs, address, error_code)) | ||
1285 | return; | ||
1286 | } | 1280 | } |
1287 | 1281 | ||
1288 | /* Can handle a stale RO->RW TLB: */ | 1282 | /* Can handle a stale RO->RW TLB: */ |