BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1460 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 2038, name: syz-executor.0 preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor.0/2038. irq event stamp: 6180608 hardirqs last enabled at (6180607): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1330 [inline] hardirqs last enabled at (6180607): [] finish_lock_switch kernel/sched/core.c:4746 [inline] hardirqs last enabled at (6180607): [] finish_task_switch.isra.0+0x152/0x420 kernel/sched/core.c:4864 hardirqs last disabled at (6180608): [] __free_object+0x564/0x580 lib/debugobjects.c:350 softirqs last enabled at (6180488): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (6180488): [] __do_softirq+0x618/0x8fc kernel/softirq.c:587 softirqs last disabled at (6180475): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (6180475): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (6180475): [] __irq_exit_rcu+0x142/0x1f8 kernel/softirq.c:637 CPU: 1 PID: 2038 Comm: syz-executor.0 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 [] hlist_add_head include/linux/list.h:892 [inline] [] __free_object+0x426/0x580 lib/debugobjects.c:359 Unable to handle kernel paging request at virtual address ffffffff801110e4 Oops [#1] Modules linked in: CPU: 1 PID: 2038 Comm: syz-executor.0 Tainted: G W 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 Hardware name: riscv-virtio,qemu (DT) epc : hlist_add_head include/linux/list.h:892 [inline] epc : __free_object+0x426/0x580 lib/debugobjects.c:359 ra : hlist_add_head include/linux/list.h:892 [inline] ra : __free_object+0x426/0x580 lib/debugobjects.c:359 epc : ffffffff80b08998 ra : ffffffff80b08998 sp : ffffaf802131faa0 gp : ffffffff85863ac0 tp : ffffaf800bdce100 t0 : ffffaf801063b420 t1 : 70c00cbf0b7aee00 t2 : ffffffffaa6fdebf s0 : ffffaf802131fc30 s1 : ffffaf8021ead4d0 a0 : 0000000000000000 a1 : 0000000000000003 a2 : fffffffef002221d a3 : ffffffff80b08998 a4 : 0000000000000000 a5 : ffffffff801110e4 a6 : 0000000000f00000 a7 : ffffffff800bda98 s2 : ffffaf805a9f2ad0 s3 : ffffffff86d76f10 s4 : ffffffff801110e4 s5 : ffffffff801110e4 s6 : ffffaf802131fbc0 s7 : 0000000000000122 s8 : 0000000000000000 s9 : 000000000000c350 s10: ffffffff83646610 s11: ffffaf802131fe20 t3 : fffffffff3f3f300 t4 : ffffffff80112282 t5 : 1ffff5f004263ef4 t6 : 0000000000000006 status: 0000000000000100 badaddr: ffffffff801110e4 cause: 000000000000000f [] free_object lib/debugobjects.c:430 [inline] [] debug_object_free lib/debugobjects.c:853 [inline] [] debug_object_free+0x132/0x1c6 lib/debugobjects.c:825 [] destroy_hrtimer_on_stack kernel/time/hrtimer.c:452 [inline] [] hrtimer_nanosleep+0x184/0x292 kernel/time/hrtimer.c:2112