syzkaller login: [ 527.141017][ T1860] netlink: 4 bytes leftover after parsing attributes in process `dhcpcd'. [ 527.190013][ T1860] netlink: 4 bytes leftover after parsing attributes in process `dhcpcd'. [ 578.470811][ T1860] netlink: 4 bytes leftover after parsing attributes in process `dhcpcd'. Warning: Permanently added '[localhost]:11161' (ECDSA) to the list of known hosts. 1970/01/01 00:09:47 fuzzer started 1970/01/01 00:10:01 dialing manager at localhost:43229 [ 627.683971][ T2050] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1460 [ 627.685783][ T8] Kernel panic - not syncing: corrupted stack end detected inside scheduler [ 627.685715][ T2050] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 2050, name: syz-fuzzer [ 627.690199][ T2050] preempt_count: 0, expected: 0 [ 627.691637][ T2050] RCU nest depth: 0, expected: 0 [ 627.691540][ T8] CPU: 0 PID: 8 Comm: kworker/u4:1 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 [ 627.693136][ T8] Hardware name: riscv-virtio,qemu (DT) [ 627.695123][ T2050] no locks held by syz-fuzzer/2050. [ 627.695512][ T2050] irq event stamp: 5570 [ 627.695772][ T2050] hardirqs last enabled at (5569): [] ktime_get_ts64+0x2c2/0x33e [ 627.698876][ T8] Workqueue: writeback wb_workfn (flush-253:0) [ 627.701334][ T2050] hardirqs last disabled at (5570): [] __trace_hardirqs_off+0x18/0x20 [ 627.703721][ T8] Call Trace: [ 627.704499][ T8] [] dump_backtrace+0x2e/0x3c [ 627.702837][ T2050] softirqs last enabled at (4704): [] __do_softirq+0x618/0x8fc [ 627.706096][ T8] [] show_stack+0x34/0x40 [ 627.706647][ T8] [] dump_stack_lvl+0xe4/0x150 [ 627.710197][ T2050] softirqs last disabled at (4695): [] __irq_exit_rcu+0x142/0x1f8 [ 627.711939][ T8] [] dump_stack+0x1c/0x24 [ 627.715885][ T8] [] panic+0x24a/0x634 [ 627.718014][ T8] [] schedule+0x0/0x14c [ 627.720053][ T8] [] preempt_schedule_common+0x4e/0xde [ 627.722234][ T8] [] preempt_schedule+0x34/0x36 [ 627.724133][ T8] [] _raw_spin_unlock+0x60/0x6a [ 627.725803][ T8] [] ext4_mb_regular_allocator+0xba4/0x1ece [ 627.727580][ T8] [] ext4_mb_new_blocks+0x19ce/0x3228 [ 627.729550][ T8] [] ext4_ext_map_blocks+0x1930/0x3e86 [ 627.731632][ T8] [] ext4_map_blocks+0x4fe/0xe64 [ 627.733595][ T8] [] ext4_writepages+0x1114/0x2206 [ 627.735547][ T8] [] do_writepages+0x16e/0x452 [ 627.737381][ T8] [] __writeback_single_inode+0xea/0x1124 [ 627.738994][ T8] [] writeback_sb_inodes+0x3dc/0xb06 [ 627.740615][ T8] [] __writeback_inodes_wb+0x70/0x18c [ 627.742603][ T8] [] wb_writeback+0x80c/0xc7c [ 627.744455][ T8] [] wb_workfn+0x752/0xf94 [ 627.746241][ T8] [] process_one_work+0x654/0xffe [ 627.748112][ T8] [] worker_thread+0x360/0x8fa [ 627.749954][ T8] [] kthread+0x19e/0x1fa [ 627.751849][ T8] [] ret_from_exception+0x0/0x10 [ 627.754464][ T8] SMP: stopping secondary CPUs [ 627.754322][ T2050] CPU: 1 PID: 2050 Comm: syz-fuzzer Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 [ 627.756007][ T2050] Hardware name: riscv-virtio,qemu (DT) [ 627.759632][ T2050] Call Trace: [ 627.760870][ T2050] [] dump_backtrace+0x2e/0x3c [ 627.762794][ T2050] [] show_stack+0x34/0x40 [ 627.764670][ T2050] [] dump_stack_lvl+0xe4/0x150 [ 627.766743][ T2050] [] dump_stack+0x1c/0x24 [ 627.768733][ T2050] [] __might_resched+0x30a/0x342 [ 627.770746][ T2050] [] __might_sleep+0x5e/0x8e [ 627.772694][ T2050] [] down_read+0x24/0x54 [ 627.774348][ T2050] [] do_page_fault+0x24e/0xa3c [ 627.776204][ T2050] [] ret_from_exception+0x0/0x10 [ 627.778110][ T2050] [] mark_lock+0x108/0xe10 [ 627.781272][ T2050] Unable to handle kernel paging request at virtual address dfffffff00000001 [ 627.784386][ T2050] Oops [#1] [ 627.785509][ T2050] Modules linked in: [ 627.786630][ T2050] CPU: 1 PID: 2050 Comm: syz-fuzzer Tainted: G W 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 [ 627.788042][ T2050] Hardware name: riscv-virtio,qemu (DT) [ 627.789199][ T2050] epc : mark_lock+0x11e/0xe10 [ 627.790638][ T2050] ra : mark_lock+0x108/0xe10 [ 627.792159][ T2050] epc : ffffffff801110fa ra : ffffffff801110e4 sp : ffffaf8007357e70 [ 627.793386][ T2050] gp : ffffffff85863ac0 tp : ffffaf800b601840 t0 : 0000000000000000 [ 627.794546][ T2050] t1 : 723b0812c0d8b900 t2 : 0000000000000000 s0 : ffffaf8007358020 [ 627.795691][ T2050] s1 : ffffffff86c1a620 a0 : ffffaf800b601f58 a1 : 0000000000000003 [ 627.796803][ T2050] a2 : 1ffff5f0016c03eb a3 : ffffffff800cf14c a4 : 0000000000000000 [ 627.798197][ T2050] a5 : dfffffff00000000 a6 : 0000000000f00000 a7 : ffffffff831a2308 [ 627.800135][ T2050] s2 : 0000000000000001 s3 : ffffffff83449070 s4 : 0000000000000001 [ 627.802022][ T2050] s5 : dfffffff00000001 s6 : 0000000000000000 s7 : 0000000000000001 [ 627.803769][ T2050] s8 : 0000000041b58ab3 s9 : ffffffff8451f630 s10: ffffffff80110fdc [ 627.805896][ T2050] s11: 0000000000000001 t3 : fffffffff3f3f300 t4 : ffffffff80112282 [ 627.807098][ T2050] t5 : 1ffff5f000e6af78 t6 : 0000000000040000 [ 627.808028][ T2050] status: 0000000000000100 badaddr: dfffffff00000001 cause: 000000000000000f [ 627.818545][ T8] Rebooting in 86400 seconds.. VM DIAGNOSIS: 13:52:24 Registers: info registers vcpu 0 pc ffffffff831a1a38 mhartid 0000000000000000 mstatus 00000000000000a0 mip 00000000000000a0 mie 000000000000022a mideleg 0000000000000222 medeleg 000000000000b109 mtvec 0000000080000540 stvec ffffffff800055d4 mepc ffffffff8010dd52 sepc ffffffff8073ad1e mcause 8000000000000007 scause 8000000000000009 mtval 0000000000000000 stval 0000000000000000 x0/zero 0000000000000000 x1/ra ffffffff8013fa28 x2/sp ffffaf800735a280 x3/gp ffffffff85863ac0 x4/tp ffffaf8007403080 x5/t0 ffffffff86bd8de8 x6/t1 ffffffff8010dc46 x7/t2 0000000000000000 x8/s0 ffffaf800735a2a0 x9/s1 ffffaf8007403080 x10/a0 ffffaf8007403088 x11/a1 0000000000000003 x12/a2 1ffff5f000e80611 x13/a3 ffffffff80115c08 x14/a4 0000000000000000 x15/a5 0000000000000000 x16/a6 0000000000f00000 x17/a7 723b0812c0d8b900 x18/s2 ffffaf800735a340 x19/s3 ffffffff8588a420 x20/s4 0000000000000000 x21/s5 ffffffff83613300 x22/s6 ffffffff80121ba4 x23/s7 0000000000000000 x24/s8 ffffffff85889780 x25/s9 1ffff5f000e6b458 x26/s10 ffffffff84a88678 x27/s11 ffffffff801073fe x28/t3 fffffffff3f3f300 x29/t4 0000000000000001 x30/t5 1ffff5f000e6b424 x31/t6 ffffffff86bd8e34 f0/ft0 0000000000000000 f1/ft1 0000000000000000 f2/ft2 0000000000000000 f3/ft3 0000000000000000 f4/ft4 0000000000000000 f5/ft5 0000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000 info registers vcpu 1 pc ffffffff80dc337e mhartid 0000000000000001 mstatus 0000000000000180 mip 00000000000000a0 mie 000000000000022a mideleg 0000000000000222 medeleg 000000000000b109 mtvec 0000000080000540 stvec ffffffff800055d4 mepc ffffffff80c38a66 sepc ffffffff801110fa mcause 8000000000000007 scause 000000000000000f mtval 0000000000000000 stval dfffffff00000001 x0/zero 0000000000000000 x1/ra ffffffff80dc337e x2/sp ffffaf80073576e0 x3/gp ffffffff85863ac0 x4/tp ffffaf800b601840 x5/t0 ffffffff86bcb657 x6/t1 723b0812c0d8b900 x7/t2 0000000000000000 x8/s0 ffffaf8007357710 x9/s1 ffffffff86e58900 x10/a0 ffffffff86e58948 x11/a1 ffff8f800066c000 x12/a2 1ffffffff0dcb129 x13/a3 ffffffff80dc337e x14/a4 0000000000000000 x15/a5 ffffffff86e58948 x16/a6 ffffffff86e589f1 x17/a7 ffffffff80dcc2ca x18/s2 ffff8f800066c000 x19/s3 0000000000000072 x20/s4 ffffffff86e58900 x21/s5 ffffffff80dc333e x22/s6 0000000000000000 x23/s7 ffffffff86bcb6a5 x24/s8 0000000000000010 x25/s9 ffffffff86e58958 x26/s10 0000000000000010 x27/s11 0000000000000000 x28/t3 fffffffff3f3f300 x29/t4 ffffffff80112282 x30/t5 1ffff5f000e6ae8c x31/t6 ffffffff86bcb657 f0/ft0 0000000000000000 f1/ft1 4047e89b0155ffc8 f2/ft2 40db080000000000 f3/ft3 4146d03c00000000 f4/ft4 3ff0000000000000 f5/ft5 4000000000000000 f6/ft6 0000000000000000 f7/ft7 0000000000000000 f8/fs0 0000000000000000 f9/fs1 0000000000000000 f10/fa0 0000000000000000 f11/fa1 0000000000000000 f12/fa2 0000000000000000 f13/fa3 0000000000000000 f14/fa4 0000000000000000 f15/fa5 0000000000000000 f16/fa6 0000000000000000 f17/fa7 0000000000000000 f18/fs2 0000000000000000 f19/fs3 0000000000000000 f20/fs4 0000000000000000 f21/fs5 0000000000000000 f22/fs6 0000000000000000 f23/fs7 0000000000000000 f24/fs8 0000000000000000 f25/fs9 0000000000000000 f26/fs10 0000000000000000 f27/fs11 0000000000000000 f28/ft8 0000000000000000 f29/ft9 0000000000000000 f30/ft10 0000000000000000 f31/ft11 0000000000000000