------------[ cut here ]------------ WARNING: CPU: 0 PID: 9 at drivers/scsi/scsi_lib.c:1024 scsi_alloc_sgtables+0x9aa/0xbb0 Modules linked in: CPU: 0 PID: 9 Comm: kworker/0:1H Not tainted 5.19.0-rc4-next-20220630 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Workqueue: kblockd blk_mq_run_work_fn RIP: 0010:scsi_alloc_sgtables+0x9aa/0xbb0 Code: 48 c1 e8 03 80 3c 10 00 0f 85 57 01 00 00 48 c7 c0 00 00 00 80 48 2b 05 d4 de 35 02 48 89 04 24 e9 66 fd ff ff e8 06 1d 87 fe <0f> 0b 41 bc 0a 00 00 00 e9 83 fa ff ff 41 bc 09 00 00 00 e9 78 fa RSP: 0018:ffff888008237928 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88800e404108 RCX: 0000000000000000 RDX: ffff888008228000 RSI: ffffffff82bd427a RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88800e40401c R13: ffff88800f2e6000 R14: ffff88800e404000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555629ac58 CR3: 000000000f578000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 Call Trace: scsi_queue_rq+0x26d2/0x31f0 blk_mq_dispatch_rq_list+0x6c2/0x21d0 __blk_mq_sched_dispatch_requests+0x206/0x3e0 blk_mq_sched_dispatch_requests+0x101/0x180 __blk_mq_run_hw_queue+0xff/0x350 blk_mq_run_work_fn+0x55/0x70 process_one_work+0xa17/0x1690 worker_thread+0x637/0x1250 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 irq event stamp: 184963 hardirqs last enabled at (184973): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (184984): [] __up_console_sem+0x5d/0x80 softirqs last enabled at (184584): [] __irq_exit_rcu+0x113/0x170 softirqs last disabled at (184579): [] __irq_exit_rcu+0x113/0x170 ---[ end trace 0000000000000000 ]---