summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorMani Tofigh <mt4022@columbia.edu>2026-11-05 15:32:13 -0500
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-09 09:31:30 +0900
commitce9bc14902d1c27b6c0eac25666e2516e13f2b19 (patch)
tree13640eb104a79c8fbd355b9a33bdf9d744c74d4f /include/linux/timerqueue.h
parent0be7a931c5e41dcfdaf297f5cd34def2696b0a7e (diff)
kprobes: Do not disarm unhashed optprobe on dispatch
A new probe at the address of a force-unoptimized probe can stop firing. When unoptimize_kprobe() force-unoptimizes an unused probe it disarms and unhashes it, but the next dispatch disarms it again. If a new probe was registered at the same address in the meantime, the second disarm clears the new probe's int3. For a module address the same disarm would write to freed module text after rmmod. Skip the disarm for unhashed probes since they're always disarmed before they're unhashed. With the fix, the new probe fires. Link: https://lore.kernel.org/all/20261105-kprobes-optprobe-state-v2-2-7a2f5290baa0@columbia.edu/ Fixes: 06e0d3b89da1 ("kprobes: Make optprobe optimizer multi-generational and asynchronous") Signed-off-by: Mani Tofigh <mt4022@columbia.edu> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions