Re: [CRASH] kunit failures in platform-device-devm
From: Alice Ryhl
Date: Mon Mar 02 2026 - 10:33:56 EST
On Sun, Mar 01, 2026 at 02:06:49PM +0000, Alice Ryhl wrote:
> Hi DRIVER CORE, KOBJECTS, DEBUGFS AND SYSFS,
>
> I've experienced a fair number of different crashes when running kunit
> locally. I just ran this command on v7.0-rc1 or upstream/master:
>
> ./tools/testing/kunit/kunit.py run --make_options LLVM=1 --arch x86_64 --kconfig_add CONFIG_RUST=y --kconfig_add CONFIG_PCI=y
Bisection has been carried out!
The culprit is commit 5564c12385b7 ("kthread: Include unbound kthreads
in the managed affinity list"). Cc'ing everyone from this commit.
On this commit, kunit (executed using above command) crashes for me 70%
of the time (14 out of 20 runs) with kernel crashes (Oops) and
refcount_t use-after-free warnings in pm_runtime_test_cases and
platform-device-devm. On the parent commit, I was able to run kunit 24
times in a row with zero kunit failures.
The same crashes occur on tag v7.0-rc2, so this issue is not fixed.
Alice