summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLiam R. Howlett (Google) <liam@infradead.org>2026-11-02 21:07:24 -0500
committerAndrew Morton <akpm@linux-foundation.org>2026-11-09 22:44:31 -0800
commitf51d35b81fb572c551e82ff72575d6dbb8e35ba9 (patch)
tree6619cad525c933c4fe3729a2253d9210c9bfe368 /tools/perf/scripts/python
parentd46ba9f99dbafe936a2810bfac505f7dc339d7b8 (diff)
maple_tree: update internal warning and bug_on code
When CONFIG_DEBUG_MAPLE_TREE is set, call WARN_ON() once per site after the custom information is dumped about the tree. Without using the kernel's WARN_ON calls, syzbot will not catch issues detected by this code. The BUG_ON variants now stop instead of dumping and continuing. Update the non-debug code to call WARN_ON_ONCE() as well. The userspace tests asserted on dump_stack() but only print on WARN_ON(), so make WARN() fatal in maple-shared.h and have the maple test exit with the result of maple_tree_seed(). Link: https://lore.kernel.org/20261103020724.2614498-4-liam@infradead.org Fixes: f0a1f866aba1 ("maple_tree: add debug BUG_ON and WARN_ON variants") Signed-off-by: Liam R. Howlett (Google) <liam@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reported-by: Lorenzo Stoakes <ljs@kernel.org> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Cc: Chris Mason <mason@kernel.org> Cc: Alice Ryhl <aliceryhl@google.com> Cc: Andrew Ballance <andrewjballance@gmail.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions