Marco Elver f95e5a3d59 powerpc/hw_breakpoint: Avoid relying on caller synchronization
Internal data structures (cpu_bps, task_bps) of powerpc's hw_breakpoint
implementation have relied on nr_bp_mutex serializing access to them.

Before overhauling synchronization of kernel/events/hw_breakpoint.c,
introduce 2 spinlocks to synchronize cpu_bps and task_bps respectively,
thus avoiding reliance on callers synchronizing powerpc's hw_breakpoint.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20220829124719.675715-10-elver@google.com
2022-08-30 10:56:23 +02:00
..
2022-08-07 17:52:35 -07:00
2022-08-10 10:40:41 -07:00
2022-08-19 05:43:53 -04:00
2022-08-07 17:52:35 -07:00
2022-08-07 17:52:35 -07:00
2022-08-18 17:37:22 +02:00
2022-08-09 09:39:25 -07:00
2022-08-19 13:49:07 -07:00
2022-08-21 10:06:28 -07:00
2022-08-21 10:06:28 -07:00