witness: lock order reversal: 1st 0xffff800000e13678 sbufsnd (&so->so_snd.sb_lock) 2nd 0xfffffd806e2495f8 inode (&ip->i_lock) lock order [1] sbufsnd (&so->so_snd.sb_lock) -> [2] inode (&ip->i_lock) lock order data 0xffffffff8292c146 -> 0xffffffff828d64a9 is missing lock order [2] inode (&ip->i_lock) -> [3] sbufrcv (&so->so_rcv.sb_lock) #0 rw_enter+0xd1 #1 sblock+0x8a sys/kern/uipc_socket2.c:548 #2 soreceive+0x201 sys/kern/uipc_socket.c:876 #3 fifo_read+0xd2 sys/miscfs/fifofs/fifo_vnops.c:256 #4 VOP_READ+0xc3 sys/kern/vfs_vops.c:227 #5 vn_rdwr+0x10a #6 vndsetcred+0x86 sys/dev/vnd.c:684 #7 vndioctl+0xac1 sys/dev/vnd.c:485 #8 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 #9 vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 #10 sys_ioctl+0x4a9 #11 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #11 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #12 Xsyscall+0x128 lock order [3] sbufrcv (&so->so_rcv.sb_lock) -> [1] sbufsnd (&so->so_snd.sb_lock) #0 rw_enter+0xd1 #1 sblock+0x8a sys/kern/uipc_socket2.c:548 #2 sosplice+0x2a7 sys/kern/uipc_socket.c:1385 #3 sys_setsockopt+0x1d7 sys/kern/uipc_syscalls.c:1231 #4 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #4 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 Stopped at db_enter+0x1c: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(fffffd806e2495f8,9,0) at witness_checkorder+0xc05 rw_enter(fffffd806e2495e8,1) at rw_enter+0xd1 rrw_enter(fffffd806e2495e8,1) at rrw_enter+0x91 sys/kern/kern_rwlock.c:464 VOP_LOCK(fffffd8056a5f548,2001) at VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 vn_lock(fffffd8056a5f548,2001) at vn_lock+0x85 sys/kern/vfs_vnops.c:564 vfs_lookup(ffff80002a2bc788) at vfs_lookup+0xd3 sys/kern/vfs_lookup.c:418 namei(ffff80002a2bc788) at namei+0x56a sys/kern/vfs_lookup.c:250 unp_connect(ffff800000e134d0,fffffd8076979300,ffff8000ffff4f88) at unp_connect+0x1ce sys/kern/uipc_usrreq.c:864 uipc_dgram_send(ffff800000e134d0,fffffd806ebcb400,fffffd8076979300,0) at uipc_dgram_send+0xd7 sys/kern/uipc_usrreq.c:599 sosend(ffff800000e134d0,fffffd8076979300,ffff80002a2bca18,0,0,0) at sosend+0x7aa sendit(ffff8000ffff4f88,3,ffff80002a2bcb90,0,ffff80002a2bcc50) at sendit+0x54c sys/kern/uipc_syscalls.c:786 sys_sendmsg(ffff8000ffff4f88,ffff80002a2bcd00,ffff80002a2bcc50) at sys_sendmsg+0x19b sys/kern/uipc_syscalls.c:604 syscall(ffff80002a2bcd00) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a2bcd00) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18e39edecd0, count: -15 ddb{1}> show registers rdi 0 rsi 0x40000 acpi_pdirpa+0x2be71 rbp 0xffff80002a2bc3e0 rbx 0xffffffff828e9404 pp_r600_decoded_lanes+0x2e88d rdx 0xffff800000e17300 rcx 0xffff8000ffff4f88 rax 0x3ffff acpi_pdirpa+0x2be70 r8 0xffff80002a2bc2c0 r9 0x8080808080808080 r10 0xc7a8a97677e60d85 r11 0x52f5384dbb6de773 r12 0xfffffd8003b253e8 r13 0xfffffd800333ddc0 r14 0x3 r15 0xffffffff rip 0xffffffff81cae62c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a2bc3d0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.5) tid=335642 pid=63114 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff54a8,0xffffffff82ea1428 process=0xffff800034374028 user=0xffff80002a2b7000, vmspace=0xfffffd806adc1c18 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63114 312513 25940 0 2 0x8000000 syz-executor.5 *63114 335642 25940 0 7 0xc000000 syz-executor.5 72066 262347 12025 0 2 0x8000000 syz-executor.4 72066 517935 12025 0 3 0xc000080 fsleep syz-executor.4 72066 77365 12025 0 3 0xc000080 fsleep syz-executor.4 49604 280203 98293 0 2 0x8000000 syz-executor.3 49604 63450 98293 0 3 0xc000080 fsleep syz-executor.3 37736 223315 94376 0 7 0x8000000 syz-executor.6 37736 495534 94376 0 3 0xc000000 biowait syz-executor.6 52314 520074 52974 0 3 0x8000002 biowait syz-executor.7 12025 126484 52974 0 3 0x8000082 nanoslp syz-executor.4 15482 287331 0 0 3 0x14280 nfsidl nfsio 72004 411000 0 0 3 0x14280 nfsidl nfsio 88263 379354 0 0 3 0x14280 nfsidl nfsio 54785 468652 0 0 3 0x14280 nfsidl nfsio 62091 231304 0 0 3 0x14280 nfsidl nfsio 5005 391273 0 0 3 0x14280 nfsidl nfsio 86263 394263 0 0 3 0x14280 nfsidl nfsio 41301 510578 0 0 3 0x14280 nfsidl nfsio 26222 51394 0 0 3 0x14280 nfsidl nfsio 67462 394052 0 0 3 0x14280 nfsidl nfsio 16118 406644 0 0 3 0x14280 nfsidl nfsio 99729 514852 0 0 3 0x14280 nfsidl nfsio 27937 254125 0 0 3 0x14280 nfsidl nfsio 52604 33120 0 0 3 0x14280 nfsidl nfsio 40007 232664 0 0 3 0x14280 nfsidl nfsio 24968 231956 0 0 3 0x14280 nfsidl nfsio 83386 52714 0 0 3 0x14280 nfsidl nfsio 7478 235459 0 0 3 0x14280 nfsidl nfsio 6830 454405 0 0 3 0x14280 nfsidl nfsio 24214 415691 0 0 3 0x14280 nfsidl nfsio 45926 252973 52974 0 3 0x8000002 biowait syz-executor.2 74976 418285 1 0 3 0x18100083 ttyin getty 28740 65058 0 0 3 0x14200 bored sosplice 25940 73332 52974 0 3 0x8000082 nanoslp syz-executor.5 13253 281529 52974 0 3 0x8000002 getblk syz-executor.0 98293 368510 52974 0 3 0x8000082 nanoslp syz-executor.3 94376 497811 52974 0 3 0x8000082 nanoslp syz-executor.6 39258 382878 52974 0 3 0x8000002 biowait syz-executor.1 52974 41968 45148 0 3 0x1a000082 wait syz-fuzzer 52974 255756 45148 0 3 0x1e000082 nanoslp syz-fuzzer 52974 174852 45148 0 3 0x1e000082 wait syz-fuzzer 52974 335792 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 456158 45148 0 3 0x1e000082 wait syz-fuzzer 52974 494178 45148 0 3 0x1e000082 wait syz-fuzzer 52974 428450 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 476474 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 265254 45148 0 3 0x1e000082 wait syz-fuzzer 52974 208195 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 384527 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 443482 45148 0 3 0x1e000082 wait syz-fuzzer 52974 237804 45148 0 3 0x1e000082 thrsleep syz-fuzzer 52974 232319 45148 0 3 0x1e000082 wait syz-fuzzer 52974 53564 45148 0 3 0x1e000082 wait syz-fuzzer 52974 507133 45148 0 3 0x1e000003 inode syz-fuzzer 45148 522310 56702 0 3 0x810008a sigsusp ksh 56702 155312 28783 0 3 0x1800009a kqread sshd 28783 258268 1 0 3 0x18000088 kqread sshd 93356 380346 61294 73 3 0x19100010 biowait syslogd 61294 471 1 0 3 0x18100082 sbwait syslogd 51123 462404 1 0 3 0x18100080 kqread resolvd 51991 409427 97850 77 3 0x18100092 kqread dhcpleased 4935 482474 97850 77 3 0x18100092 kqread dhcpleased 97850 90895 1 0 3 0x18000080 kqread dhcpleased 76539 151284 0 0 3 0x14200 bored smr 30748 468017 0 0 3 0x14200 pgzero zerothread 62347 341170 0 0 3 0x14200 aiodoned aiodoned 24898 196867 0 0 3 0x14200 syncer update 69466 726 0 0 3 0x14200 cleaner cleaner 53287 138490 0 0 3 0x14200 reaper reaper 60206 123122 0 0 3 0x14200 pgdaemon pagedaemon 63653 28426 0 0 3 0x14200 bored viomb 22326 500727 0 0 3 0x40014200 acpi0 acpi0 88710 71036 0 0 3 0x40014200 idle1 87371 214473 0 0 3 0x14200 bored softnet3 4901 124286 0 0 3 0x14200 bored softnet2 42201 123095 0 0 3 0x14200 bored softnet1 21695 343702 0 0 3 0x14200 bored softnet0 80745 60397 0 0 3 0x14200 bored systqmp 16134 235068 0 0 3 0x14200 bored systq 76017 445664 0 0 3 0x14200 tmoslp softclockmp 95240 79430 0 0 3 0x40014200 tmoslp softclock 63373 10038 0 0 3 0x40014200 idle0 1 452711 0 0 3 0x8080082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 63114 (syz-executor.5) thread 0xffff8000ffff4f88 (335642) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82dea520) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 unp_connect+0x1c6 sys/kern/uipc_usrreq.c:864 #2 uipc_dgram_send+0xd7 sys/kern/uipc_usrreq.c:599 #3 sosend+0x7aa #4 sendit+0x54c sys/kern/uipc_syscalls.c:786 #5 sys_sendmsg+0x19b sys/kern/uipc_syscalls.c:604 #6 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #6 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 exclusive rwlock sbufsnd r = 0 (0xffff800000e13678) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 sblock+0x8a sys/kern/uipc_socket2.c:548 #3 sosend+0x259 sys/kern/uipc_socket.c:610 #4 sendit+0x54c sys/kern/uipc_syscalls.c:786 #5 sys_sendmsg+0x19b sys/kern/uipc_syscalls.c:604 #6 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #6 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 37736 (syz-executor.6) thread 0xffff8000373a42d0 (495534) exclusive rrwlock inode r = 0 (0xfffffd80663aeb48) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x46 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x1e4 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0xe6 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:394 #9 domkdirat+0x125 sys/kern/vfs_syscalls.c:3104 #10 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #10 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e9292c8) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd3 sys/kern/vfs_lookup.c:418 #6 namei+0x56a sys/kern/vfs_lookup.c:250 #7 domkdirat+0x79 sys/kern/vfs_syscalls.c:3089 #8 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #8 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 52314 (syz-executor.7) thread 0xffff8000ffff4548 (520074) exclusive rrwlock inode r = 0 (0xfffffd80691d82c0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x1373 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #11 namei+0x56a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #13 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #13 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80691d80a0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd3 sys/kern/vfs_lookup.c:418 #6 namei+0x56a sys/kern/vfs_lookup.c:250 #7 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #8 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #8 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 45926 (syz-executor.2) thread 0xffff8000ffff79b8 (252973) exclusive rrwlock inode r = 0 (0xfffffd80691d8d60) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x1373 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #11 namei+0x56a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #13 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #13 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80691d8a30) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 cache_lookup+0x2b3 sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x1b2 sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #10 namei+0x56a sys/kern/vfs_lookup.c:250 #11 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #12 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #12 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #13 Xsyscall+0x128 Process 13253 (syz-executor.0) thread 0xffff80002a205c50 (281529) exclusive rrwlock inode r = 0 (0xfffffd80663ae928) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x1373 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #11 namei+0x56a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #13 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #13 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80663ae4e8) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 cache_lookup+0x2b3 sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x1b2 sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #10 namei+0x56a sys/kern/vfs_lookup.c:250 #11 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #12 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #12 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #13 Xsyscall+0x128 Process 39258 (syz-executor.1) thread 0xffff8000ffff67c8 (382878) exclusive rrwlock inode r = 0 (0xfffffd806e3be1b8) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x1373 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #11 namei+0x56a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #13 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #13 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806f4b45f0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 vget+0x1fd sys/kern/vfs_subr.c:676 #6 cache_lookup+0x2b3 sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x1b2 sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x6f8 sys/kern/vfs_lookup.c:566 #10 namei+0x56a sys/kern/vfs_lookup.c:250 #11 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1856 #12 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #12 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #13 Xsyscall+0x128 Process 93356 (syslogd) thread 0xffff8000ffffdc40 (380346) exclusive rrwlock inode r = 0 (0xfffffd806e75c0a0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 rw_enter+0x32d sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x91 sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 #4 vn_lock+0x85 sys/kern/vfs_vnops.c:564 #5 sys_fsync+0xf1 sys/kern/vfs_syscalls.c:2931 #6 syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline] #6 syscall+0x854 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6550K 7137K 166960K 12514 0 pcb 20 12K 12K 166960K 105 0 rtable 180 7K 9K 166960K 580 0 pf 33 9K 10K 166960K 83 0 ifaddr 37 13K 15K 166960K 83 0 ifgroup 58 2K 2K 166960K 119 0 sysctl 3 0K 0K 166960K 3 0 counters 68 36K 36K 166960K 102 0 ioctlops 0 0K 4K 166960K 1525 0 iov 0 0K 16K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1389 87K 88K 166960K 1989 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 54 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 89K 166960K 756 0 sigio 0 0K 0K 166960K 8 0 proc 58 79K 127K 166960K 680 0 subproc 104 6K 7K 166960K 171 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 106 0 in_multi 66 4K 7K 166960K 178 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 526 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 263 84K 103K 166960K 8883 0 UVM aobj 27 2K 2K 166960K 29 0 pinsyscall 34 68K 100K 166960K 2068 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 41 0 NDP 13 0K 1K 166960K 56 0 temp 75 6808K 6935K 166960K 37392 0 kqueue 12 18K 29K 166960K 130 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 101 0 98 1 0 1 1 0 8 0 rtentry 112 186 0 106 4 0 4 4 0 8 0 unpcb 144 521 0 505 2 1 1 2 0 8 0 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 96 0 96 1 1 0 1 0 8 0 tcpcb 808 151 0 146 2 1 1 2 0 8 0 arp 120 33 0 20 1 0 1 1 0 8 0 inpcb 384 669 0 655 7 5 2 2 0 8 0 nd6 136 44 0 26 1 0 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1168 6 0 6 4 4 0 1 0 8 0 pffrag 232 10 0 5 1 0 1 1 0 482 0 pffrnode 88 8 0 4 1 0 1 1 0 8 0 pffrent 40 55 0 50 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 57 0 45 1 0 1 1 0 8 0 pfstkey 128 57 0 45 1 0 1 1 0 8 0 pfstate 376 57 0 45 3 0 3 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 724 0 376 32 9 23 29 0 8 0 art_table 32 726 0 376 4 0 4 4 0 8 0 art_node 16 184 0 111 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 11 1 0 1 1 0 8 0 semapl 112 51 0 41 1 0 1 1 0 8 0 shmpl 112 26 0 2 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2635 0 1110 96 0 96 96 0 8 0 ffsino 272 2635 0 1110 102 0 102 102 0 8 0 nchpl 144 3815 0 2074 67 0 67 67 0 8 0 uvmvnodes 80 3181 0 0 65 0 65 65 0 8 0 vnodes 216 3181 0 0 177 0 177 177 0 8 0 namei 1024 13518 0 13516 6 5 1 2 0 8 0 percpumem 16 65 0 17 1 0 1 1 0 8 0 vcpupl 3904 5 0 0 1 0 1 1 0 8 0 vmpool 696 7 0 2 1 0 1 1 0 8 0 kstatmem 264 60 0 34 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 2 0 1 0 8 0 scxspl 216 19788 0 19783 13 12 1 8 1 8 0 plimitpl 152 143 0 128 1 0 1 1 0 8 0 sigapl 424 1088 0 1024 9 1 8 8 0 8 0 futexpl 64 11020 0 11017 3 2 1 1 0 8 0 knotepl 120 609 0 0 18 0 18 18 0 8 0 kqueuepl 216 263 0 255 1 0 1 1 0 8 0 pipepl 320 225 0 197 3 0 3 3 0 8 0 fdescpl 496 1046 0 1021 7 3 4 5 0 8 0 filepl 152 6247 0 5996 15 4 11 11 0 8 1 lockfpl 104 275 0 273 1 0 1 1 0 8 0 lockfspl 48 123 0 121 1 0 1 1 0 8 0 sessionpl 144 29 0 13 1 0 1 1 0 8 0 pgrppl 48 38 0 22 1 0 1 1 0 8 0 ucredpl 104 882 0 870 1 0 1 1 0 8 0 zombiepl 144 1024 0 1024 2 1 1 1 0 8 1 processpl 1144 1088 0 1024 6 0 6 6 0 8 0 procpl 656 1805 0 1721 9 0 9 9 0 8 0 srpgc 96 12 0 12 3 3 0 1 0 8 0 sockpl 664 1310 0 1276 9 6 3 5 0 8 0 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 318 0 0 40 0 40 40 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 426 0 0 22 0 22 22 0 8 0 bufpl 280 7776 0 1141 475 0 475 475 0 8 0 anonpl 24 277279 0 271303 139 50 89 92 0 186 43 amapchunkpl 152 29923 0 29306 45 5 40 40 0 158 11 amappl16 200 6509 0 6372 32 17 15 20 0 8 7 amappl15 192 18 0 16 1 0 1 1 0 8 0 amappl14 184 177 0 166 2 1 1 2 0 8 0 amappl13 176 38 0 38 1 1 0 1 0 8 0 amappl12 168 1776 0 1750 2 0 2 2 0 8 0 amappl11 160 69 0 50 1 0 1 1 0 8 0 amappl10 152 69 0 65 1 0 1 1 0 8 0 amappl9 144 203 0 203 2 2 0 1 0 8 0 amappl8 136 168 0 136 2 0 2 2 0 8 0 amappl7 128 70 0 58 1 0 1 1 0 8 0 amappl6 120 405 0 393 2 1 1 2 0 8 0 amappl5 112 182 0 169 1 0 1 1 0 8 0 amappl4 104 614 0 580 2 0 2 2 0 8 0 amappl3 96 6019 0 5947 4 1 3 3 0 8 0 amappl2 88 1496 0 1427 4 2 2 4 0 8 0 amappl1 80 12005 0 11517 22 10 12 22 0 8 0 amappl 88 8234 0 8059 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 28 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1053 0 1023 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1053 0 1023 1 0 1 1 0 8 0 vmmpekpl 168 11956 0 11899 3 0 3 3 0 8 0 vmmpepl 168 85097 0 83341 141 48 93 115 0 357 2 vmsppl 440 1052 0 1023 4 0 4 4 0 8 0 rwobjpl 56 30427 0 26157 72 9 63 64 0 8 0 pdppl 4096 2113 0 2051 134 64 70 79 0 8 8 pvpl 32 49246 0 0 399 1 398 398 0 265 0 pmappl 248 1052 0 1023 5 2 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 453 0 87 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82c95ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:154 intr_handler(ffff800032d72280,ffff800000069c00) at intr_handler+0xa4 sys/arch/amd64/amd64/intr.c:549 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __mp_lock(ffffffff82dea318) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82dea318) at __mp_lock+0x122 sys/kern/kern_lock.c:147 intr_handler(ffff800032d723e0,ffff80000067b200) at intr_handler+0xa4 sys/arch/amd64/amd64/intr.c:549 Xintr_ioapic_edge25_untramp() at Xintr_ioapic_edge25_untramp+0x18f __mp_lock(ffffffff82dea318) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82dea318) at __mp_lock+0x122 sys/kern/kern_lock.c:147 intr_handler(ffff800032d72540,ffff80000006bc00) at intr_handler+0xa4 sys/arch/amd64/amd64/intr.c:549 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7b3e0c0c24f0, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(fffffd806e2495f8,9,0) at witness_checkorder+0xc05 rw_enter(fffffd806e2495e8,1) at rw_enter+0xd1 rrw_enter(fffffd806e2495e8,1) at rrw_enter+0x91 sys/kern/kern_rwlock.c:464 VOP_LOCK(fffffd8056a5f548,2001) at VOP_LOCK+0x8b sys/kern/vfs_vops.c:524 vn_lock(fffffd8056a5f548,2001) at vn_lock+0x85 sys/kern/vfs_vnops.c:564 vfs_lookup(ffff80002a2bc788) at vfs_lookup+0xd3 sys/kern/vfs_lookup.c:418 namei(ffff80002a2bc788) at namei+0x56a sys/kern/vfs_lookup.c:250 unp_connect(ffff800000e134d0,fffffd8076979300,ffff8000ffff4f88) at unp_connect+0x1ce sys/kern/uipc_usrreq.c:864 uipc_dgram_send(ffff800000e134d0,fffffd806ebcb400,fffffd8076979300,0) at uipc_dgram_send+0xd7 sys/kern/uipc_usrreq.c:599 sosend(ffff800000e134d0,fffffd8076979300,ffff80002a2bca18,0,0,0) at sosend+0x7aa sendit(ffff8000ffff4f88,3,ffff80002a2bcb90,0,ffff80002a2bcc50) at sendit+0x54c sys/kern/uipc_syscalls.c:786 sys_sendmsg(ffff8000ffff4f88,ffff80002a2bcd00,ffff80002a2bcc50) at sys_sendmsg+0x19b sys/kern/uipc_syscalls.c:604 syscall(ffff80002a2bcd00) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a2bcd00) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18e39edecd0, count: -15