❌ FAIL (MISSED 10 of 54): Test report for for-kernelci (7.4.0-rc1, upstream-arm-next, 6628e7d4)

Laurence Oberman loberman at redhat.com
Tue Nov 3 06:23:34 PST 2026


On Mon, 2026-11-02 at 18:47 +0000, Catalin Marinas wrote:
> On Mon, Nov 02, 2026 at 01:53:04PM -0000,
> cki-project at redhat.com wrote:
> > Hi, we tested your kernel and here are the results:
> > 
> >     Overall result: FAILED
> >              Merge: OK
> >            Compile: OK
> >               Test: FAILED
> > 
> > 
> > Kernel information:
> >     Commit message: Linux 7.4-rc1
> > 
> > You can find all the details about the test run at
> >    
> > https://datawarehouse.cki-project.org/kcidb/checkouts/redhat:3017229113
> > 
> > One or more kernel tests failed:
> >     Unrecognized or new issues:
> >         Boot test
> >              aarch64
> >                    Logs:
> > https://datawarehouse.cki-project.org/kcidb/tests/redhat:3017229113_aarch64_kernel_kcidb_tool_1200606255_6
> >                    Non-passing ran subtests:
> >                        ❌ FAIL Panic: Oops:
> >                        ⚡ ERROR Warn: External Watchdog Expired
> 
> This one doesn't seem to have a console log.
> 
> >         Storage - blktests - throtl
> >              aarch64
> >                    Logs:
> > https://datawarehouse.cki-project.org/kcidb/tests/redhat:3017229113_aarch64_kernel_kcidb_tool_1200606256_8
> >                    Non-passing ran subtests:
> >                        ❌ FAIL Panic: Oops:
> >                        ⚡ ERROR Warn: External Watchdog Expired
> 
> Kernel panic here but not arm64 specific. It looks like a possible
> scsi_debug teardown race. IIUC, b402a0dce64a ("scsi: scsi_debug: Fix
> create target debugfs failure") fixes the synchronization before
> target
> creation but not on module exit. The bug is probably from
> f084fe52c640
> ("scsi: scsi_debug: Add debugfs interface to fail target reset") if I
> look at the recent fix.
> 
> Adding some linux-scsi people. The panic from the log:
> 
>   run blktests throtl/001 at 2026-11-02 12:17:14 
>   sd 48:0:0:0: [sdb] Synchronizin 
>   sd 48:0:0:0: [sdb] Synchronizing SCSI cache 
>   Unable to handle kernel NULL pointer dereference at virtual address
> 0000000000000098 
>   Mem abort info: 
>     ESR = 0x0000000096000004 
>     EC = 0x25: DABT (current EL), IL = 32 bits 
>     SET = 0, FnV = 0 
>     EA = 0, S1PTW = 0 
>     FSC = 0x04: level 0 translation fault 
>   Data abort info: 
>     ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 
>     CM = 0, WnR = 0, TnD = 0, TagAccess = 0 
>     GCS = 0, Overlay = 0, DirtyBit = 0 
>   user pgtable: 4k pages, 48-bit VAs, pgdp=000008001137a000 
>   [0000000000000098] pgd=0000000000000000, p4d=0000000000000000 
>   Internal error: Oops: 0000000096000004 [#1]  SMP 
>   Modules linked in: null_blk scsi_debug(-) sunrpc rfkill vfat fat
> cppc_cpufreq acpi_ipmi ipmi_ssif ipmi_devintf ipmi_msghandler igb
> arm_spe_pmu arm_dmc620_pmu arm_cmn arm_dsu_pmu acpi_tad
> acpiphp_ampere_altra fuse zram lz4hc_compress xfs ghash_ce
> onboard_usb_dev gf128mul sbsa_gwdt ast i2c_algo_bit xgene_hwmon
> i2c_dev [last unloaded: null_blk] 
>   CPU: 111 UID: 0 PID: 5282 Comm: kworker/u624:1 Not tainted 7.4.0-
> rc1 #1 PREEMPT(lazy)  
>   Hardware name: GIGABYTE R152-P31-00/MP32-AR1-00, BIOS F31n (SCP:
> 2.10.20220810) 09/30/2022 
>   Workqueue: async async_run_entry_fn 
>   pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) 
>   pc : down_write+0x30/0xc0 
>   lr : __simple_recursive_removal+0x64/0x200 
>   sp : ffff800087713c70 
>   x29: ffff800087713c70 x28: 0000000000000098 x27: 0000000000000000 
>   x26: 0000000040000200 x25: 0000000000000200 x24: ffffb32d18b6e0f8 
>   x23: 0000000000000001 x22: ffff07ffab302c00 x21: 000000262b740085 
>   x20: 0000000000000000 x19: ffff07ffab302c00 x18: 000000000000006f 
>   x17: 643d4d4554535953 x16: ffffb32d19b31ac0 x15: ffffb32d1bfe2200 
>   x14: 0000000000000000 x13: 0000000000000028 x12: 0101010101010101 
>   x11: 7f7f7f7f7f7f7f7f x10: fefefefefefefeff x9 : ffffb32d189f35dc 
>   x8 : 00000026177d76b0 x7 : ffffb32d1bfde000 x6 : ffffb32d185cf628 
>   x5 : 000000000002d078 x4 : 0000000000000064 x3 : ffffff8000000000 
>   x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000098 
>   Call trace: 
>    down_write+0x30/0xc0 (P) 
>    __simple_recursive_removal+0x64/0x200 
>    simple_recursive_removal+0x1c/0x30 
>    debugfs_remove+0x64/0x88 
>    sdebug_tartget_cleanup_async+0x24/0x48 [scsi_debug] 
>    async_run_entry_fn+0x40/0x198 
>    process_one_work+0x1b4/0x4b8 
>    worker_thread+0x18c/0x2f0 
>    kthread+0x128/0x150 
>    ret_from_fork+0x10/0x20 
>   Code: b9001041 d503201f d2800001 d2800022 (c8e17c02)  

Subject: Re: ❌ FAIL (MISSED 10 of 54): Test report for for-kernelci
(7.4.0-rc1, upstream-arm-next, 6628e7d4)

Hi,

I agree with the analysis. sdebug_target_destroy() defers removal of
the per-target debugfs directory to sdebug_tartget_cleanup_async() on
sdebug_async_domain. b402a0dce64a added async_synchronize_full_domain()
before target creation, but scsi_debug_exit() still removes the hosts
and goes straight to debugfs_remove(sdebug_debugfs_root) without
waiting for that domain.

So the recursive removal of the root can tear down the per-target
dentries before the pending async work runs. That work then calls
debugfs_remove() on a stale dentry, which matches the NULL inode in
down_write() from __simple_recursive_removal() in the trace. The
pending work can also run after the module text has been freed.

Could you give the test patch below a run with blktests throtl/001 on
the system that hit this? It is untested on my side so far. If it
holds up I will send it formally with your Tested-by.

[TEST PATCH] scsi: scsi_debug: Wait for async target cleanup on module
exit

Fixes: f084fe52c640 ("scsi: scsi_debug: Add debugfs interface to fail
target reset")
Signed-off-by: Laurence Oberman <loberman at redhat.com>
---
 drivers/scsi/scsi_debug.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -9047,6 +9047,8 @@ static void __exit scsi_debug_exit(void)
 
 	for (; k; k--)
 		sdebug_do_remove_host(true);
+	/* Wait for deferred per-target debugfs cleanup before
removing the root */
+	async_synchronize_full_domain(&sdebug_async_domain);
 	driver_unregister(&sdebug_driverfs_driver);
 	bus_unregister(&pseudo_lld_bus);
 	root_device_unregister(pseudo_primary);

Thanks,
Laurence




More information about the linux-arm-kernel mailing list