All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] kprobes: Fix optprobe state after forced unoptimization
@ 2026-11-03 18:45 ` Mani Tofigh
  0 siblings, 0 replies; 12+ messages in thread
From: Mani Tofigh via B4 Relay @ 2026-11-03 18:45 UTC (permalink / raw)
  To: Masami Hiramatsu, Naveen N Rao
  Cc: Steven Rostedt, David S. Miller, linux-trace-kernel, linux-kernel,
	tz2294, Mani Tofigh

Since commit 06e0d3b89da1 ("kprobes: Make optprobe optimizer
multi-generational and asynchronous") a forced unoptimization can leave
a probe's int3 in the wrong state.  A disabled probe can be freed with
its int3 still in the text, an unhashed probe gets disarmed twice and a
reused probe never gets armed.

Patch 2 relies on patch 1 since it assumes every disabled probe on a
cooling list is already disarmed.

---
Mani Tofigh (3):
      kprobes: Disarm disabled optprobe on forced unoptimization
      kprobes: Do not disarm unhashed optprobe on dispatch
      kprobes: Arm reused optprobe on cooling list

 kernel/kprobes.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
base-commit: d4d028a7ae6401ce70825a3eb663f0a2dfc49db6
change-id: 20261103-kprobes-optprobe-state-90dbf55b246c

Best regards,
--  
Mani Tofigh <mt4022@columbia.edu>



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-11-05  1:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 18:45 [PATCH 0/3] kprobes: Fix optprobe state after forced unoptimization Mani Tofigh via B4 Relay
2026-11-03 18:45 ` Mani Tofigh
2026-11-03 18:45 ` [PATCH 1/3] kprobes: Disarm disabled optprobe on " Mani Tofigh via B4 Relay
2026-11-03 18:45   ` Mani Tofigh
2026-11-04  6:49   ` Masami Hiramatsu (Google)
2026-11-03 18:46 ` [PATCH 2/3] kprobes: Do not disarm unhashed optprobe on dispatch Mani Tofigh via B4 Relay
2026-11-03 18:46   ` Mani Tofigh
2026-11-03 18:46 ` [PATCH 3/3] kprobes: Arm reused optprobe on cooling list Mani Tofigh via B4 Relay
2026-11-03 18:46   ` Mani Tofigh
2026-11-03 19:12   ` sashiko-bot
2026-11-04 16:44   ` Masami Hiramatsu (Google)
2026-11-05  1:03 ` [PATCH 0/3] kprobes: Fix optprobe state after forced unoptimization Masami Hiramatsu (Google)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.