Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commit262b6b3

Browse files
hansendcKAGA-KOKO
authored andcommitted
x86/tboot: Unbreak tboot with PTI enabled
This is another case similar to what EFI does: create a new set ofpage tables, map some code at a low address, and jump to it. PTImistakes this low address for userspace and mistakenly marks itnon-executable in an effort to make it unusable for userspace.Undo the poison to allow execution.Fixes:385ce0e ("x86/mm/pti: Add Kconfig")Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Cc: Alan Cox <gnomes@lxorguk.ukuu.org.uk>Cc: Tim Chen <tim.c.chen@linux.intel.com>Cc: Jon Masters <jcm@redhat.com>Cc: Dave Hansen <dave.hansen@intel.com>Cc: Andi Kleen <andi@firstfloor.org>Cc: Jeff Law <law@redhat.com>Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>Cc: David" <dwmw@amazon.co.uk>Cc: Nick Clifton <nickc@redhat.com>Cc: stable@vger.kernel.orgLink:https://lkml.kernel.org/r/20180108102805.GK25546@redhat.com
1 parent61dc0f5 commit262b6b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎arch/x86/kernel/tboot.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static int map_tboot_page(unsigned long vaddr, unsigned long pfn,
127127
p4d=p4d_alloc(&tboot_mm,pgd,vaddr);
128128
if (!p4d)
129129
return-1;
130+
pgd->pgd &= ~_PAGE_NX;
130131
pud=pud_alloc(&tboot_mm,p4d,vaddr);
131132
if (!pud)
132133
return-1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp