------------[ cut here ]------------ WARNING: CPU: 1 PID: 5146 at drivers/scsi/sg.c:2236 sg_remove_sfp_usercontext+0x3f3/0x530 drivers/scsi/sg.c:2236 Modules linked in: CPU: 1 PID: 5146 Comm: kworker/1:5 Not tainted 6.9.0-rc2-next-20240405-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: events sg_remove_sfp_usercontext RIP: 0010:sg_remove_sfp_usercontext+0x3f3/0x530 drivers/scsi/sg.c:2236 Code: 8b 36 49 8d 96 4d 01 00 00 48 c7 c7 20 28 4c 8c 48 c7 c1 40 31 4c 8c 4d 89 e0 e8 38 a4 eb ff e9 f7 fe ff ff e8 1e 30 72 fb 90 <0f> 0b 90 e9 3f ff ff ff e8 10 30 72 fb 48 8b 44 24 08 48 b9 00 00 RSP: 0018:ffffc9000398fb48 EFLAGS: 00010293 RAX: ffffffff86235d92 RBX: 0000000000000002 RCX: ffff888019318000 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: 0000000000008000 R08: ffffffff86235ccc R09: 1ffff110043a32af R10: dffffc0000000000 R11: ffffed10043a32b0 R12: ffff8880254fc000 R13: ffff8880254fd688 R14: ffff888021d19578 R15: ffff8880254fc148 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003ac0 CR3: 000000006a542000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: process_one_work kernel/workqueue.c:3218 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3299 worker_thread+0x86d/0xd70 kernel/workqueue.c:3380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243