android_kernel_motorola_sm6375/arch/x86
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kirill A. Shutemov d6cbf916f2 x86/vsyscall: Do not require X86_PF_INSTR to emulate vsyscall
[ Upstream commit 8ba38a7a9a699905b84fa97578a8291010dec273 ]

emulate_vsyscall() expects to see X86_PF_INSTR in PFEC on a vsyscall
page fault, but the CPU does not report X86_PF_INSTR if neither
X86_FEATURE_NX nor X86_FEATURE_SMEP are enabled.

X86_FEATURE_NX should be enabled on nearly all 64-bit CPUs, except for
early P4 processors that did not support this feature.

Instead of explicitly checking for X86_PF_INSTR, compare the fault
address to RIP.

On machines with X86_FEATURE_NX enabled, issue a warning if RIP is equal
to fault address but X86_PF_INSTR is absent.

[ dhansen: flesh out code comments ]

Originally-by: Dave Hansen <dave.hansen@intel.com>
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Link: https://lore.kernel.org/all/bd81a98b-f8d4-4304-ac55-d4151a1a77ab@intel.com
Link: https://lore.kernel.org/all/20250624145918.2720487-1-kirill.shutemov%40linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-03 12:45:09 +01:00
..
boot x86/boot/compressed: prefer cc-option for CFLAGS additions 2025-06-27 11:02:50 +01:00
configs
crypto crypto: x86/aegis128 - access 32-bit arguments as 32-bit 2024-12-14 19:44:47 +01:00
entry x86/vsyscall: Do not require X86_PF_INSTR to emulate vsyscall 2025-12-03 12:45:09 +01:00
events perf/x86/intel/uncore: Fix the scale of IIO free running counters on SNR 2025-05-02 07:39:21 +02:00
hyperv
ia32
include KVM: x86: Don't (re)check L1 intercepts when completing userspace I/O 2025-10-29 13:59:54 +01:00
kernel x86/resctrl: Fix miscount of bandwidth event when reactivating previously unavailable RMID 2025-12-03 12:45:05 +01:00
kvm KVM: x86: Don't (re)check L1 intercepts when completing userspace I/O 2025-10-29 13:59:54 +01:00
lib x86/insn: Fix PUSH instruction in x86 instruction decoder opcode map 2024-06-16 13:28:39 +02:00
math-emu
mm x86/fpu: Delay instruction pointer fixup until after warning 2025-08-28 16:21:34 +02:00
net
oprofile
pci x86/pci/xen: Fix PCIBIOS_* return code handling 2024-08-19 05:33:25 +02:00
platform x86/xen/pvh: Annotate indirect branch as safe 2024-12-14 19:44:21 +01:00
power
purgatory
ras
realmode
tools
um um: Store full CSGSFS and SS register from mcontext 2025-06-04 14:32:30 +02:00
video
xen Grab mm lock before grabbing pt lock 2025-03-13 12:43:13 +01:00
.gitignore
Kbuild
Kconfig x86/mm: Disable hugetlb page table sharing on 32-bit 2025-07-17 18:25:06 +02:00
Kconfig.cpu
Kconfig.debug x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y 2024-06-16 13:28:45 +02:00
Makefile
Makefile.um
Makefile_32.cpu