login: panic: _mtx_lock_sleep: recursed on non-recursive mutex process lock @ /syzkaller/managers/main/kernel/sys/kern/kern_fork.c:325 cpuid = 0 time = 1660142936 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0xc7/frame 0xfffffe0092c4c5d0 kdb_backtrace() at kdb_backtrace+0xd3/frame 0xfffffe0092c4c730 vpanic() at vpanic+0x254/frame 0xfffffe0092c4c810 panic() at panic+0xb5/frame 0xfffffe0092c4c8d0 __mtx_lock_sleep() at __mtx_lock_sleep+0xa10/frame 0xfffffe0092c4ca10 __mtx_lock_flags() at __mtx_lock_flags+0x231/frame 0xfffffe0092c4caf0 fork1() at fork1+0x6de/frame 0xfffffe0092c4cc10 sys_rfork() at sys_rfork+0x1c2/frame 0xfffffe0092c4cd30 amd64_syscall() at amd64_syscall+0x410/frame 0xfffffe0092c4cf30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0092c4cf30 --- syscall (0, FreeBSD ELF64, nosys), rip = 0x2b43fa, rsp = 0x828841f68, rbp = 0x828841f70 --- KDB: enter: panic [ thread pid 3914 tid 103252 ] Stopped at kdb_enter+0x6b: movq $0,0x276046a(%rip) db> db> set $lines = 0 db> set $maxwidth = 0 db> show registers cs 0x20 ds 0x3b es 0x3b fs 0x13 gs 0x1b ss 0x28 rax 0x12 rcx 0xfffffe00033eee30 rdx 0xdffff7c000000000 rbx 0 rsp 0xfffffe0092c4c710 rbp 0xfffffe0092c4c730 rsi 0x1 rdi 0 r8 0x3 r9 0xffffffff r10 0 r11 0 r12 0 r13 0xfffffe0058da9720 r14 0xffffffff82b67860 .str.26 r15 0xffffffff82b67860 .str.26 rip 0xffffffff8171ddab kdb_enter+0x6b rflags 0x46 kdb_enter+0x6b: movq $0,0x276046a(%rip) db> show proc Process 3914 (syz-executor1172346) at 0xfffffe008fe61000: state: NORMAL uid: 0 gids: 0, 0, 5 parent: pid 779 at 0xfffffe0056f67a90 ABI: FreeBSD ELF64 flag: 0x10000080 flag2: 0 arguments: ./syz-executor1172346391 reaper: 0xfffffe0053ddd000 reapsubtree: 1 sigparent: 20 vmspace: 0xfffffe009242da00 (map 0xfffffe009242da00) (map.pmap 0xfffffe009242dac0) (pmap 0xfffffe009242db30) threads: 3 100101 Run CPU 1 syz-executor1172346 103251 S uwait 0xfffffe0057447800 syz-executor1172346 103252 Run CPU 0 syz-executor1172346 db>