Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast(a)kernel.org>:
On Fri, 6 Jan 2023 10:43:59 -0500 you wrote:
When changing the ebpf program put() routines to support being
called
from within IRQ context the program ID was reset to zero prior to
calling the perf event and audit UNLOAD record generators, which
resulted in problems as the ebpf program ID was bogus (always zero).
This patch addresses this problem by removing an unnecessary call to
bpf_prog_free_id() in __bpf_prog_offload_destroy() and adjusting
__bpf_prog_put() to only call bpf_prog_free_id() after audit and perf
have finished their bpf program unload tasks in
bpf_prog_put_deferred(). For the record, no one can determine, or
remember, why it was necessary to free the program ID, and remove it
from the IDR, prior to executing bpf_prog_put_deferred();
regardless, both Stanislav and Alexei agree that the approach in this
patch should be safe.
[...]
Here is the summary with links:
- [v3,1/2] bpf: restore the ebpf program ID for BPF_AUDIT_UNLOAD and
PERF_BPF_EVENT_PROG_UNLOAD
https://git.kernel.org/bpf/bpf/c/ef01f4e25c17
- [v3,2/2] bpf: remove the do_idr_lock parameter from bpf_prog_free_id()
https://git.kernel.org/bpf/bpf/c/e7895f017b79
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html