From: Linus Torvalds Date: Fri, 31 Jan 2020 00:11:50 +0000 (-0800) Subject: Merge tag 'mpx-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/daveh... X-Git-Tag: microblaze-v5.7-rc1~121 X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=commitdiff_plain;h=ccaaaf6fe5a5e1fffca5cca0f3fc4ec84d7ae752 Merge tag 'mpx-for-linus' of git://git./linux/kernel/git/daveh/x86-mpx Pull x86 MPX removal from Dave Hansen: "MPX requires recompiling applications, which requires compiler support. Unfortunately, GCC 9.1 is expected to be be released without support for MPX. This means that there was only a relatively small window where folks could have ever used MPX. It failed to gain wide adoption in the industry, and Linux was the only mainstream OS to ever support it widely. Support for the feature may also disappear on future processors. This set completes the process that we started during the 5.4 merge window when the MPX prctl()s were removed. XSAVE support is left in place, which allows MPX-using KVM guests to continue to function" * tag 'mpx-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/daveh/x86-mpx: x86/mpx: remove MPX from arch/x86 mm: remove arch_bprm_mm_init() hook x86/mpx: remove bounds exception code x86/mpx: remove build infrastructure x86/alternatives: add missing insn.h include --- ccaaaf6fe5a5e1fffca5cca0f3fc4ec84d7ae752 diff --cc arch/x86/kernel/setup.c index 1e4c20a1efec,6cf206806be0..a74262c71484 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@@ -893,13 -947,9 +893,11 @@@ void __init setup_arch(char **cmdline_p init_mm.end_data = (unsigned long) _edata; init_mm.brk = _brk_end; - mpx_mm_init(&init_mm); - code_resource.start = __pa_symbol(_text); code_resource.end = __pa_symbol(_etext)-1; - data_resource.start = __pa_symbol(_etext); + rodata_resource.start = __pa_symbol(__start_rodata); + rodata_resource.end = __pa_symbol(__end_rodata)-1; + data_resource.start = __pa_symbol(_sdata); data_resource.end = __pa_symbol(_edata)-1; bss_resource.start = __pa_symbol(__bss_start); bss_resource.end = __pa_symbol(__bss_stop)-1; diff --cc arch/x86/kernel/traps.c index 9e6f822922a3,6fd5b7561444..6ef00eb6fbb9 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@@ -52,12 -57,8 +52,10 @@@ #include #include #include - #include - #include #include #include +#include +#include #ifdef CONFIG_X86_64 #include