android_kernel_xiaomi_sm8450/arch/riscv
Jisheng Zhang eb3d1d84f3 riscv: bpf: Avoid breaking W^X
[ Upstream commit fc8504765ec5e812135b8ccafca7101069a0c6d8 ]

We allocate Non-executable pages, then call bpf_jit_binary_lock_ro()
to enable executable permission after mapping them read-only. This is
to prepare for STRICT_MODULE_RWX in following patch.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Stable-dep-of: c56fb2aab235 ("riscv, bpf: Fix inconsistent JIT image generation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-27 08:44:23 +02:00
..
boot riscv: dts: sifive unleashed: Add PWM controlled LEDs 2022-12-02 17:39:57 +01:00
configs riscv: defconfig: enable gpio support for HiFive Unleashed 2021-01-27 11:55:01 +01:00
include mm: rename pud_page_vaddr to pud_pgtable and make it return pmd_t * 2023-07-27 08:43:58 +02:00
kernel riscv: add icache flush for nommu sigreturn trampoline 2023-04-20 12:10:27 +02:00
lib riscv: use memcpy based uaccess for nommu again 2020-10-04 10:27:07 -07:00
mm riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte 2023-02-15 17:22:26 +01:00
net riscv: bpf: Avoid breaking W^X 2023-07-27 08:44:23 +02:00
Kbuild riscv: Allow device trees to be built into the kernel 2020-05-18 11:38:05 -07:00
Kconfig riscv: fix kprobe __user string arg print fault issue 2023-06-14 11:09:57 +02:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.socs RISC-V: Remove CLINT related code from timer and arch 2020-08-20 10:58:13 -07:00
Makefile riscv: Handle zicsr/zifencei issues between clang and binutils 2023-04-20 12:10:28 +02:00