BUG: sleeping function called from invalid context at lib/usercopy.c:14 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4135, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor.0/4135. Preemption disabled at: [] __up_read+0x175/0x690 kernel/locking/rwsem.c:1347 CPU: 1 PID: 4135 Comm: syz-executor.0 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] __do_sys_rt_sigprocmask kernel/signal.c:3158 [inline] __se_sys_rt_sigprocmask+0x15b/0x380 kernel/signal.c:3145 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:0x7f89d6252bad Code: 12 00 4c 8d 7c 24 58 c6 44 24 56 00 41 ba 08 00 00 00 31 ff c6 44 24 57 00 4c 89 fa b8 0e 00 00 00 48 8d 35 05 c6 09 00 0f 05 <49> 8b 44 24 28 48 85 c0 0f 84 65 02 00 00 80 b8 90 00 00 00 00 0f RSP: 002b:00007fff3711ac10 EFLAGS: 00000246 ORIG_RAX: 000000000000000e RAX: ffffffffffffffda RBX: 00007f89d70b56c0 RCX: 00007f89d6252bad RDX: 00007fff3711ac68 RSI: 00007f89d62ef1b0 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000020240 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff3711aeb0 R13: 00007f89d7095000 R14: 00007f89d70b56c0 R15: 00007fff3711ac68 BUG: scheduling while atomic: syz-executor.0/4135/0x00000002 no locks held by syz-executor.0/4135. Modules linked in: Preemption disabled at: [] __up_read+0x175/0x690 kernel/locking/rwsem.c:1347