BUG: sleeping function called from invalid context at lib/usercopy.c:14 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3548, name: syz-executor143 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor143/3548. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 3548 Comm: syz-executor143 Not tainted 6.1.77-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 __might_resched+0x5cb/0x780 kernel/sched/core.c:9942 __might_fault+0x69/0x110 mm/memory.c:5808 _copy_from_user+0x26/0x170 lib/usercopy.c:14 copy_from_user include/linux/uaccess.h:161 [inline] get_timespec64+0x93/0x270 kernel/time/time.c:787 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1297 [inline] __se_sys_clock_nanosleep+0x1a1/0x3b0 kernel/time/posix-timers.c:1285 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f94de3524c3 Code: 00 00 00 00 00 66 90 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d be 1b 05 00 00 74 14 b8 e6 00 00 00 0f 05 d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10 RSP: 002b:00007ffcff1739f8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000000000000dfc RCX: 00007f94de3524c3 RDX: 00007ffcff173a10 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00000000000f4240 R08: 00007ffcff1890b0 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000c72b R13: 00007ffcff173a4c R14: 00007ffcff173a60 R15: 00007ffcff173a50 BUG: scheduling while atomic: syz-executor143/3548/0x00000002 no locks held by syz-executor143/3548. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0