linux-stable/arch/x86
Song Liu 44bd0d19c5 bpf: use bpf_prog_pack for bpf_dispatcher
[ Upstream commit 19c02415da ]

Allocate bpf_dispatcher with bpf_prog_pack_alloc so that bpf_dispatcher
can share pages with bpf programs.

arch_prepare_bpf_dispatcher() is updated to provide a RW buffer as working
area for arch code to write to.

This also fixes CPA W^X warnning like:

CPA refuse W^X violation: 8000000000000163 -> 0000000000000163 range: ...

Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20220926184739.3512547-2-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-24 09:58:15 +02:00
..
boot x86/boot: Don't propagate uninitialized boot_params->cc_blob_address 2022-08-31 17:18:13 +02:00
coco x86/tdx: Handle load_unaligned_zeropad() page-cross to a shared page 2022-06-17 15:37:33 -07:00
configs x86/config: Make the x86 defconfigs a bit more usable 2022-03-27 20:58:35 +02:00
crypto crypto: blake2s - remove shash module 2022-08-17 15:16:07 +02:00
entry x86/entry: Fix entry_INT80_compat for Xen PV guests 2022-08-31 17:18:13 +02:00
events perf/x86/intel: Fix unchecked MSR access error for Alder Lake N 2022-10-12 09:51:25 +02:00
hyperv x86/Hyper-V: Add SEV negotiate protocol support in Isolation VM 2022-06-15 18:27:40 +00:00
ia32 x86: Remove a.out support 2022-04-11 18:04:27 +02:00
include x86/apic: Don't disable x2APIC if locked 2022-10-24 09:58:12 +02:00
kernel x86/apic: Don't disable x2APIC if locked 2022-10-24 09:58:12 +02:00
kvm KVM: VMX: Drop bits 31:16 when shoving exception error code into VMCS 2022-10-24 09:56:59 +02:00
lib x86/uaccess: avoid check_object_size() in copy_from_user_nmi() 2022-10-05 10:40:44 +02:00
math-emu x86/32: Remove lazy GS macros 2022-04-14 14:09:43 +02:00
mm x86/PAT: Have pat_enabled() properly reflect state when running on Xen 2022-08-31 17:18:14 +02:00
net bpf: use bpf_prog_pack for bpf_dispatcher 2022-10-24 09:58:15 +02:00
pci x86/PCI: Revert "x86/PCI: Clip only host bridge windows for E820 regions" 2022-06-17 14:24:14 -05:00
platform x86/olpc: fix 'logical not is only applied to the left hand side' 2022-08-17 15:16:05 +02:00
power x86/cpu: Load microcode during restore_processor_state() 2022-04-19 19:37:05 +02:00
purgatory
ras
realmode Intel Trust Domain Extensions 2022-05-23 17:51:12 -07:00
tools
um arch: um: Mark the stack non-executable to fix a binutils warning 2022-10-12 09:51:24 +02:00
video
virt/vmx/tdx x86/tdx: Provide common base for SEAMCALL and TDCALL C wrappers 2022-04-07 08:27:50 -07:00
xen x86/entry: Work around Clang __bdos() bug 2022-10-24 09:58:10 +02:00
.gitignore
Kbuild
Kconfig x86/apic: Don't disable x2APIC if locked 2022-10-24 09:58:12 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic 2022-08-17 15:13:59 +02:00
Makefile lkdtm: Disable return thunks in rodata.c 2022-07-20 19:24:53 +02:00
Makefile.um
Makefile_32.cpu