BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1460 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 2050, name: syz-fuzzer preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-fuzzer/2050. irq event stamp: 5570 hardirqs last enabled at (5569): [] seqcount_lockdep_reader_access include/linux/seqlock.h:105 [inline] hardirqs last enabled at (5569): [] timekeeping_get_delta kernel/time/timekeeping.c:252 [inline] hardirqs last enabled at (5569): [] timekeeping_get_ns kernel/time/timekeeping.c:386 [inline] hardirqs last enabled at (5569): [] ktime_get_ts64+0x2c2/0x33e kernel/time/timekeeping.c:962 hardirqs last disabled at (5570): [] __trace_hardirqs_off+0x18/0x20 arch/riscv/kernel/trace_irq.c:25 softirqs last enabled at (4704): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (4704): [] __do_softirq+0x618/0x8fc kernel/softirq.c:587 softirqs last disabled at (4695): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4695): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (4695): [] __irq_exit_rcu+0x142/0x1f8 kernel/softirq.c:637 CPU: 1 PID: 2050 Comm: syz-fuzzer Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106 [] dump_stack+0x1c/0x24 lib/dump_stack.c:113 [] __might_resched+0x30a/0x342 kernel/sched/core.c:9583 [] __might_sleep+0x5e/0x8e kernel/sched/core.c:9512 [] down_read+0x24/0x54 kernel/locking/rwsem.c:1460 [] mmap_read_lock include/linux/mmap_lock.h:117 [inline] [] do_page_fault+0x24e/0xa3c arch/riscv/mm/fault.c:285 [] ret_from_exception+0x0/0x10 [] mark_lock+0x108/0xe10 kernel/locking/lockdep.c:4583 Unable to handle kernel paging request at virtual address dfffffff00000001 Oops [#1] Modules linked in: CPU: 1 PID: 2050 Comm: syz-fuzzer Tainted: G W 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 Hardware name: riscv-virtio,qemu (DT) epc : mark_lock+0x11e/0xe10 kernel/locking/lockdep.c:4566 ra : mark_lock+0x108/0xe10 kernel/locking/lockdep.c:4583 epc : ffffffff801110fa ra : ffffffff801110e4 sp : ffffaf8007357e70 gp : ffffffff85863ac0 tp : ffffaf800b601840 t0 : 0000000000000000 t1 : 723b0812c0d8b900 t2 : 0000000000000000 s0 : ffffaf8007358020 s1 : ffffffff86c1a620 a0 : ffffaf800b601f58 a1 : 0000000000000003 a2 : 1ffff5f0016c03eb a3 : ffffffff800cf14c a4 : 0000000000000000 a5 : dfffffff00000000 a6 : 0000000000f00000 a7 : ffffffff831a2308 s2 : 0000000000000001 s3 : ffffffff83449070 s4 : 0000000000000001 s5 : dfffffff00000001 s6 : 0000000000000000 s7 : 0000000000000001 s8 : 0000000041b58ab3 s9 : ffffffff8451f630 s10: ffffffff80110fdc s11: 0000000000000001 t3 : fffffffff3f3f300 t4 : ffffffff80112282 t5 : 1ffff5f000e6af78 t6 : 0000000000040000 status: 0000000000000100 badaddr: dfffffff00000001 cause: 000000000000000f