aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2024-09-29 14:42:39 +0000
committerPeter Zijlstra <[email protected]>2024-10-07 07:28:44 +0000
commit430af825ba991730f8acc3c804a4aef82e9f7ff6 (patch)
treebf3560527a8f0bb5937c3bae5274df3328ba1655 /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
parentuprobes: sanitiize xol_free_insn_slot() (diff)
downloadkernel-430af825ba991730f8acc3c804a4aef82e9f7ff6.tar.gz
kernel-430af825ba991730f8acc3c804a4aef82e9f7ff6.zip
uprobes: kill the unnecessary put_uprobe/xol_free_insn_slot in uprobe_free_utask()
If pre_ssout() succeeds and sets utask->active_uprobe and utask->xol_vaddr the task must not exit until it calls handle_singlestep() which does the necessary put_uprobe() and xol_free_insn_slot(). Remove put_uprobe() and xol_free_insn_slot() from uprobe_free_utask(). With this change xol_free_insn_slot() can't hit xol_area/utask/xol_vaddr == NULL, we can kill the unnecessary checks checks and simplify this function more. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions