BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 10244, name: syz-executor.5 no locks held by syz-executor.5/10244. Preemption disabled at: [] kernel_fpu_begin+0x5b/0x1a0 arch/x86/kernel/fpu/core.c:126 CPU: 0 PID: 10244 Comm: syz-executor.5 Not tainted 5.11.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x9a/0xcc lib/dump_stack.c:120 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:7901 __mutex_lock_common kernel/locking/mutex.c:935 [inline] __mutex_lock+0xa9/0x1110 kernel/locking/mutex.c:1103 __fdget_pos+0x9c/0xb0 fs/file.c:949 fdget_pos include/linux/file.h:75 [inline] ksys_read+0x65/0x1d0 fs/read_write.c:625 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x41935c Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 fc ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f fd ff ff 48 RSP: 002b:00007fe6e2250170 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000041935c RDX: 000000000000000f RSI: 00007fe6e22501e0 RDI: 0000000000000005 RBP: 00007fe6e22501d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc01b3818f R14: 00007fe6e2250300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.5/10244/0x00000002 no locks held by syz-executor.5/10244. Modules linked in: Preemption disabled at: [] kernel_fpu_begin+0x5b/0x1a0 arch/x86/kernel/fpu/core.c:126