diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-03-04 14:40:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-03-04 14:40:16 -0500 |
commit | 7225a442788e20ee108ef2cb97d511375e20acf9 (patch) | |
tree | 98b2ecf1b606bd843356a8df7826a2e1c78d1eca /tools | |
parent | 4c4ce3022dc7352d05de4d8e1602c9a2a14458bf (diff) | |
parent | 945fd17ab6bab8a4d05da6c3170519fbcfe62ddb (diff) |
Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86/pti fixes from Thomas Gleixner:
"Three fixes related to melted spectrum:
- Sync the cpu_entry_area page table to initial_page_table on 32 bit.
Otherwise suspend/resume fails because resume uses
initial_page_table and triggers a triple fault when accessing the
cpu entry area.
- Zero the SPEC_CTL MRS on XEN before suspend to address a
shortcoming in the hypervisor.
- Fix another switch table detection issue in objtool"
* 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/cpu_entry_area: Sync cpu_entry_area to initial_page_table
objtool: Fix another switch table detection issue
x86/xen: Zero MSR_IA32_SPEC_CTRL before suspend
Diffstat (limited to 'tools')
-rw-r--r-- | tools/objtool/check.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 472e64e95891..46c1d239cc1b 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c | |||
@@ -925,7 +925,11 @@ static struct rela *find_switch_table(struct objtool_file *file, | |||
925 | if (find_symbol_containing(file->rodata, text_rela->addend)) | 925 | if (find_symbol_containing(file->rodata, text_rela->addend)) |
926 | continue; | 926 | continue; |
927 | 927 | ||
928 | return find_rela_by_dest(file->rodata, text_rela->addend); | 928 | rodata_rela = find_rela_by_dest(file->rodata, text_rela->addend); |
929 | if (!rodata_rela) | ||
930 | continue; | ||
931 | |||
932 | return rodata_rela; | ||
929 | } | 933 | } |
930 | 934 | ||
931 | return NULL; | 935 | return NULL; |