Skip to content

(Was: ptrace: PTRACE_DETACH should do flush_ptrace_hw_breakpoint(child))

Oleg Nesterov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ptrace/x86: flush_ptrace_hw_breakpoint() shoule clear the virtual debug registersarch/x86/kernel/hw_breakpoint.c+3 -00 replies
2/2x86: kill TIF_DEBUGarch/x86/include/asm/thread_info.h+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] (Was: ptrace: PTRACE_DETACH should do flush_ptrace_hw_breakpoint(child))
Quoted 10 lines · Oleg Nesterov
Quoted 6 lines · Frederic Weisbecker
Quoted 4 lines

Btw. perhaps flush_ptrace_hw_breakpoint() should also clear the virtual registers like thread.debugreg7 ? Even without this patch, flush_ is also called exec.

Yeah makes sense.

OK, and probably debugreg6 too, but I need to recheck.

Yes, looks like it should be cleared and we did this before.

And I think this change makes sense in this series, so could you review this patch too?

Oleg.