x86 fixes
Subsystems (7)
Linus,
Please pull the latest x86-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus
# HEAD: e4f358916d528d479c3c12bd2fd03f2d5a576380 x86, modpost: Replace last remnants of RETPOLINE with CONFIG_RETPOLINE
A 32-bit build fix, CONFIG_RETPOLINE fixes and rename CONFIG_RESCTRL to CONFIG_X86_RESCTRL.
out-of-topic modifications in x86-urgent-for-linus:
-----------------------------------------------------
include/linux/module.h # e4f358916d52: x86, modpost: Replace last r samples/seccomp/Makefile # a77d1d196bc6: samples/seccomp: Fix 32-bit scripts/mod/modpost.c # e4f358916d52: x86, modpost: Replace last r
Thanks,
Ingo
------------------>
Borislav Petkov (1):
x86/cache: Rename config option to CONFIG_X86_RESCTRL
Tycho Andersen (1):
samples/seccomp: Fix 32-bit build
WANG Chao (1):
x86, modpost: Replace last remnants of RETPOLINE with CONFIG_RETPOLINE
Documentation/x86/resctrl_ui.txt | 2 +- arch/x86/Kconfig | 2 +- arch/x86/include/asm/resctrl_sched.h | 4 ++-- arch/x86/kernel/cpu/Makefile | 2 +- arch/x86/kernel/cpu/bugs.c | 2 +- arch/x86/kernel/cpu/resctrl/Makefile | 4 ++-- include/linux/compiler-gcc.h | 2 +- include/linux/module.h | 2 +- include/linux/sched.h | 2 +- samples/seccomp/Makefile | 1 + scripts/mod/modpost.c | 2 +- 11 files changed, 13 insertions(+), 12 deletions(-)
Documentation/x86/resctrl_ui.txt +1 -1
@@ -9,7 +9,7 @@ Fenghua Yu <[email protected]> Tony Luck <[email protected]> Vikas Shivappa <[email protected]> -This feature is enabled by the CONFIG_RESCTRL and the X86 /proc/cpuinfo +This feature is enabled by the CONFIG_X86_RESCTRL and the x86 /proc/cpuinfo flag bits: RDT (Resource Director Technology) Allocation - "rdt_a" CAT (Cache Allocation Technology) - "cat_l3", "cat_l2"
arch/x86/Kconfig +1 -1
@@ -446,7 +446,7 @@ config RETPOLINE branches. Requires a compiler with -mindirect-branch=thunk-extern support for full protection. The kernel may run slower. -config RESCTRL +config X86_RESCTRL bool "Resource Control support" depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD) select KERNFS
arch/x86/include/asm/resctrl_sched.h +2 -2
@@ -2,7 +2,7 @@#ifndef _ASM_X86_RESCTRL_SCHED_H#define _ASM_X86_RESCTRL_SCHED_H -#ifdef CONFIG_RESCTRL +#ifdef CONFIG_X86_RESCTRL #include <linux/sched.h> #include <linux/jump_label.h>
@@ -88,6 +88,6 @@ static inline void resctrl_sched_in(void)static inline void resctrl_sched_in (void ) {} -#endif /* CONFIG_RESCTRL */ +#endif /* CONFIG_X86_RESCTRL */ #endif /* _ASM_X86_RESCTRL_SCHED_H */
arch/x86/kernel/cpu/Makefile +1 -1
@@ -39,7 +39,7 @@ obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o obj-$(CONFIG_X86_MCE) += mce/ obj-$(CONFIG_MTRR) += mtrr/ obj-$(CONFIG_MICROCODE) += microcode/ -obj-$(CONFIG_RESCTRL) += resctrl/ +obj-$(CONFIG_X86_RESCTRL) += resctrl/ obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
arch/x86/kernel/cpu/bugs.c +1 -1
@@ -215,7 +215,7 @@ static enum spectre_v2_mitigation spectre_v2_enabled __ro_after_init =static enum spectre_v2_user_mitigation spectre_v2_user__ro_after_init =SPECTRE_V2_USER_NONE ; -#ifdef RETPOLINE +#ifdef CONFIG_RETPOLINE static bool spectre_v2_bad_module;bool retpoline_module_ok (bool has_retpoline)
arch/x86/kernel/cpu/resctrl/Makefile +2 -2
@@ -1,4 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_RESCTRL) += core.o rdtgroup.o monitor.o -obj-$(CONFIG_RESCTRL) += ctrlmondata.o pseudo_lock.o +obj-$(CONFIG_X86_RESCTRL) += core.o rdtgroup.o monitor.o +obj-$(CONFIG_X86_RESCTRL) += ctrlmondata.o pseudo_lock.o CFLAGS_pseudo_lock.o = -I$(src)
include/linux/compiler-gcc.h +1 -1
@@ -68,7 +68,7 @@*/ #define uninitialized_var (x) x = x -#ifdef RETPOLINE +#ifdef CONFIG_RETPOLINE #define __noretpoline __attribute__((__indirect_branch__("keep")))#endif
include/linux/module.h +1 -1
@@ -828,7 +828,7 @@ static inline void module_bug_finalize(const Elf_Ehdr *hdr,static inline void module_bug_cleanup (struct module *mod) {}#endif /* CONFIG_GENERIC_BUG */ -#ifdef RETPOLINE +#ifdef CONFIG_RETPOLINE extern bool retpoline_module_ok (bool has_retpoline);#else static inline bool retpoline_module_ok (bool has_retpoline)
include/linux/sched.h +1 -1
@@ -995,7 +995,7 @@ struct task_struct {/* cg_list protected by css_set_lock and tsk->alloc_lock: */ struct list_head cg_list;#endif -#ifdef CONFIG_RESCTRL +#ifdef CONFIG_X86_RESCTRL u32 closid;u32 rmid;#endif
samples/seccomp/Makefile +1 -0
@@ -34,6 +34,7 @@ HOSTCFLAGS_bpf-direct.o += $(MFLAG) HOSTCFLAGS_dropper.o += $(MFLAG) HOSTCFLAGS_bpf-helper.o += $(MFLAG) HOSTCFLAGS_bpf-fancy.o += $(MFLAG) +HOSTCFLAGS_user-trap.o += $(MFLAG) HOSTLDLIBS_bpf-direct += $(MFLAG) HOSTLDLIBS_bpf-fancy += $(MFLAG) HOSTLDLIBS_dropper += $(MFLAG)
scripts/mod/modpost.c +1 -1
@@ -2185,7 +2185,7 @@ static void add_intree_flag(struct buffer *b, int is_intree)/* Cannot check for assembler */ static void add_retpoline (struct buffer *b) { -buf_printf (b,"\n#ifdef RETPOLINE\n" ); +buf_printf (b,"\n#ifdef CONFIG_RETPOLINE\n" );buf_printf (b,"MODULE_INFO(retpoline, \"Y\");\n" );buf_printf (b,"#endif\n" ); }
The pull request you sent on Fri, 11 Jan 2019 08:14:54 +0100:
The pull request you sent on Fri, 11 Jan 2019 08:14:54 +0100:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitx86-urgent-for-linus
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e8af37f3f488e7adce2b5c6f6dfe8c83c2662e1f
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/prtracker