diff options
author | Jiri Olsa <[email protected]> | 2021-03-26 11:59:00 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-03-26 19:30:11 -0700 |
commit | 861de02e5f3f2a104eecc5af1d248cb7bf8c5f75 (patch) | |
tree | 79748704faea37470f54bdef1658b9505d057f86 /kernel/bpf/stackmap.c | |
parent | d6fe1cf89026d3111112ee29ef8d93cd7a8aaa24 (diff) |
bpf: Take module reference for trampoline in module
Currently module can be unloaded even if there's a trampoline
register in it. It's easily reproduced by running in parallel:
# while :; do ./test_progs -t module_attach; done
# while :; do rmmod bpf_testmod; sleep 0.5; done
Taking the module reference in case the trampoline's ip is
within the module code. Releasing it when the trampoline's
ip is unregistered.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions