Re: [blk-mq] Kernel OOPS after usb drive surprise remove (bisected)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 07, 2025 at 02:48:27PM +0000, Heorhi Valakhanovich wrote:
> Kernel version 6.16.4 and later.
> 
> Usb3 thumb drive surprise removal triggers an oops in blk_mq_free_map_and_rqs.
> Block IO is limping afterwards and often system is unusable.
> 
> 
> Bisected to:
> 
> commit f9a9098ca82612006b9c71ce03b8fe189a437370 (HEAD)
> Author: Ming Lei <ming.lei@xxxxxxxxxx>
> Date:   Fri Aug 15 21:17:37 2025 +0800
> 
>     blk-mq: fix lockdep warning in __blk_mq_update_nr_hw_queues
> 
>     [ Upstream commit 2d82f3bd8910eb65e30bb2a3c9b945bfb3b6d661 ]

No, that is not true, because scsi/usb does not call into
blk_mq_update_nr_hw_queues().

> 
> 
> relevant kernel log:
> 
> Sep 07 17:19:26: BUG: kernel NULL pointer dereference, address: 0000000000000020
> Sep 07 17:19:26: #PF: supervisor read access in kernel mode
> Sep 07 17:19:26: #PF: error_code(0x0000) - not-present page
> Sep 07 17:19:26: PGD 0 P4D 0 

Please try the following fix:

https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=for-6.18/block&id=ba28afbd9eff2a6370f23ef4e6a036ab0cfda409

Thanks,
Ming





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux