diff options
author | Ingo Molnar <mingo@kernel.org> | 2023-01-18 11:56:01 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-01-18 11:56:57 +0100 |
commit | 65adf3a57c0c2e79c5c2b72a4bdcabcab9e99ec1 (patch) | |
tree | ee08845127f4cd8d6fc816fbaf0e5f6f4330bc58 /kernel/bpf/trampoline.c | |
parent | x86/kprobes: Use switch-case for 0xFF opcodes in prepare_emulation (diff) | |
parent | Linux 6.2-rc4 (diff) | |
download | linux-65adf3a57c0c2e79c5c2b72a4bdcabcab9e99ec1.tar.xz linux-65adf3a57c0c2e79c5c2b72a4bdcabcab9e99ec1.zip |
Merge tag 'v6.2-rc4' into perf/core, to pick up fixes
Move from the -rc1 base to the fresher -rc4 kernel that
has various fixes included, before applying a larger
patchset.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/bpf/trampoline.c')
-rw-r--r-- | kernel/bpf/trampoline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/bpf/trampoline.c b/kernel/bpf/trampoline.c index 11f5ec0b8016..d0ed7d6f5eec 100644 --- a/kernel/bpf/trampoline.c +++ b/kernel/bpf/trampoline.c @@ -488,6 +488,10 @@ again: /* reset fops->func and fops->trampoline for re-register */ tr->fops->func = NULL; tr->fops->trampoline = 0; + + /* reset im->image memory attr for arch_prepare_bpf_trampoline */ + set_memory_nx((long)im->image, 1); + set_memory_rw((long)im->image, 1); goto again; } #endif |