]> Git Repo - linux.git/commit
x86/mm, mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages
authorTony Luck <[email protected]>
Wed, 16 Aug 2017 17:18:03 +0000 (10:18 -0700)
committerIngo Molnar <[email protected]>
Thu, 17 Aug 2017 08:30:49 +0000 (10:30 +0200)
commitce0fa3e56ad20f04d8252353dcd24e924abdafca
treedee3cdb69e839f4eb1dc5690deb7e145202124c7
parent57bd1905b228f2a14d7506b0302f69f425131e57
x86/mm, mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages

Speculative processor accesses may reference any memory that has a
valid page table entry.  While a speculative access won't generate
a machine check, it will log the error in a machine check bank. That
could cause escalation of a subsequent error since the overflow bit
will be then set in the machine check bank status register.

Code has to be double-plus-tricky to avoid mentioning the 1:1 virtual
address of the page we want to map out otherwise we may trigger the
very problem we are trying to avoid.  We use a non-canonical address
that passes through the usual Linux table walking code to get to the
same "pte".

Thanks to Dave Hansen for reviewing several iterations of this.

Also see:

  http://marc.info/?l=linux-mm&m=149860136413338&w=2

Signed-off-by: Tony Luck <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Elliott, Robert (Persistent Memory) <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/page_64.h
arch/x86/kernel/cpu/mcheck/mce.c
include/linux/mm_inline.h
mm/memory-failure.c
This page took 0.064259 seconds and 4 git commands to generate.