linux/arch/x86
Josh Poimboeuf 5e307a6bc7 x86/uaccess: Don't leak AC flag into fentry from mcsafe_handle_tail()
After adding mcsafe_handle_tail() to the objtool uaccess safe list,
objtool reports:

  arch/x86/lib/usercopy_64.o: warning: objtool: mcsafe_handle_tail()+0x0: call to __fentry__() with UACCESS enabled

With SMAP, this function is called with AC=1, so it needs to be careful
about which functions it calls.  Disable the ftrace entry hook, which
can potentially pull in a lot of extra code.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/8e13d6f0da1c8a3f7603903da6cbf6d582bbfe10.1563413318.git.jpoimboe@redhat.com
2019-07-18 21:01:05 +02:00
..
boot It's been a relatively busy cycle for docs: 2019-07-09 12:34:26 -07:00
configs
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-07-08 20:57:08 -07:00
entry x86/entry: Fix thunk function ELF sizes 2019-07-18 21:01:04 +02:00
events perf/x86/intel: Fix spurious NMI on fixed counter 2019-07-13 11:21:29 +02:00
hyperv
ia32 clone: fix CLONE_PIDFD support 2019-07-14 20:36:12 +02:00
include x86/kvm: Don't call kvm_spurious_fault() from .fixup 2019-07-18 21:01:04 +02:00
kernel x86/head/64: Annotate start_cpu0() as non-callable 2019-07-18 21:01:04 +02:00
kvm x86/kvm: Replace vmx_vmenter()'s call to kvm_spurious_fault() with UD2 2019-07-18 21:01:03 +02:00
lib x86/uaccess: Don't leak AC flag into fentry from mcsafe_handle_tail() 2019-07-18 21:01:05 +02:00
math-emu
mm mm, kprobes: generalize and rename notify_page_fault() as kprobe_page_fault() 2019-07-16 19:23:22 -07:00
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-07-08 19:48:57 -07:00
oprofile
pci
platform platform-drivers-x86 for v5.3-1 2019-07-14 16:51:47 -07:00
power
purgatory
ras
realmode
tools Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-07-08 17:34:44 -07:00
um Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-07-08 21:48:15 -07:00
video
xen Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
.gitignore
Kbuild
Kconfig Merge branch 'akpm' (patches from Andrew) 2019-07-17 08:58:04 -07:00
Kconfig.cpu
Kconfig.debug It's been a relatively busy cycle for docs: 2019-07-09 12:34:26 -07:00
Makefile
Makefile_32.cpu
Makefile.um