BUG: sleeping function called from invalid context at ./include/linux/pagemap.h:1161
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 14679, name: kworker/0:4
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
3 locks held by kworker/0:4/14679:
#0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3213
#1: ffffc90003f97d18 ((work_completion)(&sfp->ew.work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214
#2: ffff88807ddc4080 (&sfp->rq_list_lock){..-.}-{3:3}, at: sg_remove_sfp_usercontext+0x86/0x580 drivers/scsi/sg.c:2210
irq event stamp: 121418
hardirqs last enabled at (121417): [<ffffffff8b57e523>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
hardirqs last enabled at (121417): [<ffffffff8b57e523>] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202
hardirqs last disabled at (121418): [<ffffffff8b57e9c2>] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:184 [inline]
hardirqs last disabled at (121418): [<ffffffff8b57e9c2>] _raw_write_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:318
softirqs last enabled at (121364): [<ffffffff819f5df1>] local_bh_enable include/linux/bottom_half.h:33 [inline]
softirqs last enabled at (121364): [<ffffffff819f5df1>] srcu_invoke_callbacks+0x2f1/0x490 kernel/rcu/srcutree.c:1796
softirqs last disabled at (121360): [<ffffffff819f5dc2>] local_bh_disable include/linux/bottom_half.h:20 [inline]
softirqs last disabled at (121360): [<ffffffff819f5dc2>] srcu_invoke_callbacks+0x2c2/0x490 kernel/rcu/srcutree.c:1794
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 UID: 0 PID: 14679 Comm: kworker/0:4 Tainted: G U 6.14.0-rc5-syzkaller-00234-gb7c90e3e717a #0
Tainted: [U]=USER
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events sg_remove_sfp_usercontext
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
__might_resched+0x3c0/0x5e0 kernel/sched/core.c:8767
folio_lock include/linux/pagemap.h:1161 [inline]
__bio_release_pages+0x310/0x3b0 block/bio.c:1066
bio_release_pages include/linux/bio.h:441 [inline]
blk_rq_unmap_user+0x3c0/0x990 block/blk-map.c:675
sg_finish_rem_req+0xde/0x590 drivers/scsi/sg.c:1837
sg_remove_sfp_usercontext+0x102/0x580 drivers/scsi/sg.c:2213
process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3238
process_scheduled_works kernel/workqueue.c:3319 [inline]
worker_thread+0x6c8/0xf00 kernel/workqueue.c:3400
kthread+0x3af/0x750 kernel/kthread.c:464
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
</TASK>