Re: [PATCH 1/2] hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)

2013-06-13 Thread Frederic Weisbecker
On Sat, Jun 01, 2013 at 08:21:20PM +0200, Oleg Nesterov wrote: > trinity fuzzer triggered WARN_ONCE("Can't find any breakpoint slot") > in arch_install_hw_breakpoint() but the problem is not arch-specific. > > The problem is, task_bp_pinned(cpu) checks "cpu == iter->cpu" but > this doesn't account

[PATCH 1/2] hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)

2013-06-01 Thread Oleg Nesterov
trinity fuzzer triggered WARN_ONCE("Can't find any breakpoint slot") in arch_install_hw_breakpoint() but the problem is not arch-specific. The problem is, task_bp_pinned(cpu) checks "cpu == iter->cpu" but this doesn't account the "all cpus" events with iter->cpu < 0. This means that, say, registe