Re: [PATCH 0/7] Rework perf and ptrace watchpoint tracking

2023-08-23 Thread Michael Ellerman
On Tue, 01 Aug 2023 11:17:37 +1000, Benjamin Gray wrote: > Syzkaller triggered a null pointer dereference in the > arch_unregister_hw_breakpoint() hook. This is due to accessing > the bp->ctx->task field changing to -1 while we iterate the breakpoints. > > This series refactors the breakpoint trac

Re: [PATCH 0/7] Rework perf and ptrace watchpoint tracking

2023-08-02 Thread Michael Ellerman
Christophe Leroy writes: > Le 01/08/2023 à 03:17, Benjamin Gray a écrit : >> Syzkaller triggered a null pointer dereference in the >> arch_unregister_hw_breakpoint() hook. This is due to accessing >> the bp->ctx->task field changing to -1 while we iterate the breakpoints. >> >> This series refact

Re: [PATCH 0/7] Rework perf and ptrace watchpoint tracking

2023-08-01 Thread Christophe Leroy
Le 01/08/2023 à 03:17, Benjamin Gray a écrit : > Syzkaller triggered a null pointer dereference in the > arch_unregister_hw_breakpoint() hook. This is due to accessing > the bp->ctx->task field changing to -1 while we iterate the breakpoints. > > This series refactors the breakpoint tracking log

[PATCH 0/7] Rework perf and ptrace watchpoint tracking

2023-07-31 Thread Benjamin Gray
Syzkaller triggered a null pointer dereference in the arch_unregister_hw_breakpoint() hook. This is due to accessing the bp->ctx->task field changing to -1 while we iterate the breakpoints. This series refactors the breakpoint tracking logic to remove the dependency on bp->ctx entirely. It also si