Re: [PATCH v9 0/4] kunit: Add support for suppressing warning backtraces

From: Andrew Morton

Date: Fri May 08 2026 - 19:52:18 EST


On Fri, 08 May 2026 17:02:44 +0200 Albert Esteve <aesteve@xxxxxxxxxx> wrote:

> Some unit tests intentionally trigger warning backtraces by passing bad
> parameters to kernel API functions. Such unit tests typically check the
> return value from such calls, not the existence of the warning backtrace.
>
> ...
>
> Solve the problem by providing a means to suppress warning backtraces
> originating from the current kthread while executing test code.
> Since each KUnit test runs in its own kthread, this effectively scopes
> suppression to the test that enabled it, without requiring any
> architecture-specific code.

Thanks. AI review has a bunch of questions:
https://sashiko.dev/#/patchset/20260508-kunit_add_support-v9-0-99df7aa880f6@xxxxxxxxxx