kernel: protection fault trap, code=0 Stopped at lf_advlock+0x2f7: incl 0x28(%r12) ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace lf_advlock(ffff800001287be0,0,fffffd806bb739b0,2,ffff80002a16fe30,40) at lf_advlock+0x2f7 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001287be0,0,fffffd806bb739b0,2,ffff80002a16fe30,40) at lf_advlock+0x2f7 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd807a5e9608,fffffd806bb739b0,2,ffff80002a16fe30,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:620 closef(fffffd8068141008,ffff80002a0b4548) at closef+0x140 fdfree(ffff80002a0b4548) at fdfree+0x116 sys/kern/kern_descrip.c:1190 exit1(ffff80002a0b4548,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80002a0b4548,ffff80002a170070,ffff80002a16ffc0) at sys_exit+0x1a syscall(ffff80002a170070) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a170070) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x712c5e253620, count: -8 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a16fd80 rbx 0 rdx 0xa rcx 0x9 rax 0 r8 0 r9 0x1 r10 0xcc1e9d7308661177 r11 0xf754b943b213d073 r12 0xdeaf4152deaf4152 r13 0x2 r14 0xffff800001287be0 r15 0xffffffffffffffff rip 0xffffffff813068e7 lf_advlock+0x2f7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a16fcf0 ss 0x10 lf_advlock+0x2f7: incl 0x28(%r12) ddb{1}> show proc PROC (syz-executor.1) tid=332608 pid=75133 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a0b4548 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a0b4ce0,0xffff80002a0b47e0 process=0xffff80002a0a2460 user=0xffff80002a16b000, vmspace=0xfffffd8067d5e398 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17559 182062 24114 0 7 0 syz-executor.0 17559 248732 24114 0 3 0x4000000 lockflk syz-executor.0 85040 175245 87363 0 2 0 syz-executor.4 85040 42702 87363 0 3 0x4000080 fsleep syz-executor.4 43296 499318 90681 0 2 0 syz-executor.6 43296 295455 90681 0 3 0x4000000 lockflk syz-executor.6 20715 414831 40745 0 3 0x2 biowait syz-executor.5 90681 80151 40745 0 3 0x82 nanoslp syz-executor.6 48831 354410 40745 0 2 0x2 syz-executor.7 1378 492707 40745 0 3 0x82 nanoslp syz-executor.3 24114 190317 40745 0 3 0x82 nanoslp syz-executor.0 87363 344077 40745 0 3 0x82 nanoslp syz-executor.4 37974 443764 40745 0 3 0x82 nanoslp syz-executor.1 29073 5345 40745 0 3 0x2 biowait syz-executor.2 40745 353892 5007 0 3 0x82 wait syz-execprog 40745 515650 5007 0 3 0x4000082 nanoslp syz-execprog 40745 419736 5007 0 3 0x4000082 thrsleep syz-execprog 40745 255724 5007 0 3 0x4000082 wait syz-execprog 40745 58098 5007 0 3 0x4000082 wait syz-execprog 40745 506881 5007 0 3 0x4000082 wait syz-execprog 40745 148102 5007 0 3 0x4000082 wait syz-execprog 40745 43834 5007 0 3 0x4000082 thrsleep syz-execprog 40745 270284 5007 0 3 0x4000082 wait syz-execprog 40745 466915 5007 0 3 0x4000082 wait syz-execprog 40745 206439 5007 0 3 0x4000082 thrsleep syz-execprog 40745 268256 5007 0 3 0x4000082 wait syz-execprog 40745 300773 5007 0 3 0x4000082 thrsleep syz-execprog 40745 404419 5007 0 3 0x4000082 thrsleep syz-execprog 40745 51733 5007 0 3 0x4000082 kqread syz-execprog 5007 474554 8791 0 3 0x10008a sigsusp ksh 8791 314052 21331 0 3 0x98 kqread sshd-session 21331 390456 59352 0 3 0x92 kqread sshd-session 41840 50063 1 0 3 0x100083 ttyin getty 59352 338537 1 0 3 0x88 kqread sshd 13156 482172 23438 73 3 0x1100090 kqread syslogd 23438 184820 1 0 3 0x100082 sbwait syslogd 38320 28342 1 0 3 0x100080 kqread resolvd 50674 87818 47957 77 3 0x100092 kqread dhcpleased 41344 163602 47957 77 3 0x100092 kqread dhcpleased 47957 322392 1 0 3 0x80 kqread dhcpleased 89448 121896 0 0 3 0x14200 bored smr 55710 330802 0 0 2 0x14200 zerothread 7907 63009 0 0 3 0x14200 aiodoned aiodoned 7134 488459 0 0 3 0x14200 syncer update 57837 269475 0 0 3 0x14200 cleaner cleaner 29177 398274 0 0 3 0x14200 reaper reaper 52102 510344 0 0 3 0x14200 pgdaemon pagedaemon 47727 417009 0 0 3 0x14200 bored viomb 60534 267492 0 0 3 0x40014200 acpi0 acpi0 49757 133281 0 0 3 0x40014200 idle1 15358 452431 0 0 3 0x14200 bored softnet3 78071 355885 0 0 3 0x14200 bored softnet2 23306 134409 0 0 3 0x14200 bored softnet1 23359 327822 0 0 3 0x14200 bored softnet0 10306 471185 0 0 3 0x14200 bored systqmp 55500 453199 0 0 3 0x14200 bored systq 65258 229707 0 0 3 0x14200 tmoslp softclockmp 51303 25238 0 0 3 0x40014200 tmoslp softclock 26002 457333 0 0 3 0x40014200 idle0 1 120508 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 20715 (syz-executor.5) thread 0xffff80002a0b5988 (414831) exclusive rrwlock inode r = 0 (0xfffffd807aedfc48) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:169 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3099 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8067cb5d68) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3084 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 29073 (syz-executor.2) thread 0xffff80002a0a4540 (5345) exclusive rrwlock inode r = 0 (0xfffffd807aedfe68) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:678 #6 ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98 #7 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 #11 namei+0x7aa sys/kern/vfs_lookup.c:250 #12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b444c50) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 11047K 11059K 166960K 11266 0 pcb 17 12K 12K 166960K 17 0 rtable 234 6K 6K 166960K 374 0 pf 31 16K 16K 166960K 34 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 55 0 counters 64 36K 36K 166960K 66 0 ioctlops 0 0K 2K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1260 79K 79K 166960K 10399 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 14 49K 85K 166960K 8524 0 proc 57 78K 103K 166960K 500 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 397 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 257 77K 78K 166960K 72781 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 36 72K 104K 166960K 9808 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 30 0 temp 1 6812K 6877K 166960K 21422 0 kqueue 13 20K 20K 166960K 46 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 35 0 32 1 0 1 1 0 8 0 rtentry 112 122 0 12 4 0 4 4 0 8 0 unpcb 144 67 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 2 2 0 1 0 8 0 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 120 20 0 2 1 0 1 1 0 8 0 inpcb 336 66 0 60 1 0 1 1 0 8 0 nd6 136 27 0 3 2 1 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 501 0 48 32 3 29 29 0 8 0 art_table 32 502 0 48 5 1 4 4 0 8 0 art_node 16 121 0 21 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19095 0 17576 96 1 95 95 0 8 0 ffsino 272 19095 0 17576 103 1 102 102 0 8 0 nchpl 144 27745 0 25976 66 0 66 66 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 174807 0 174806 4 3 1 2 0 8 0 percpumem 16 47 0 1 1 0 1 1 0 8 0 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 58908 0 58906 10 9 1 8 1 8 0 plimitpl 152 58 0 42 1 0 1 1 0 8 0 sigapl 424 8851 0 8806 8 2 6 6 0 8 0 futexpl 64 48738 0 48737 2 1 1 1 0 8 0 knotepl 120 107 0 0 3 0 3 3 0 8 0 kqueuepl 216 42 0 33 1 0 1 1 0 8 0 pipepl 320 180 0 152 5 2 3 3 0 8 0 fdescpl 496 8833 0 8807 8 4 4 5 0 8 0 filepl 152 110827 0 110685 11 5 6 7 0 8 0 lockfpl 104 33244 0 33240 1 0 1 1 0 8 0 lockfspl 48 8335 0 8332 1 0 1 1 0 8 0 sessionpl 144 34 0 18 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 100563 0 100552 1 0 1 1 0 8 0 zombiepl 144 8808 0 8806 2 1 1 1 0 8 0 processpl 1160 8851 0 8806 5 1 4 4 0 8 0 procpl 648 17348 0 17286 11 5 6 7 0 8 0 sockpl 664 168 0 144 5 2 3 3 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 186 0 0 21 0 21 21 0 8 0 mcl2k 2048 24 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 242 0 0 14 0 14 14 0 8 0 bufpl 280 12776 0 6526 447 0 447 447 0 8 0 anonpl 24 735062 0 729885 63 30 33 52 0 185 0 amapchunkpl 152 230694 0 230084 45 18 27 29 0 158 1 amappl16 200 15956 0 15868 9 4 5 5 0 8 0 amappl15 192 16 0 16 2 2 0 1 0 8 0 amappl14 184 226 0 215 3 2 1 2 0 8 0 amappl13 176 10 0 9 2 1 1 1 0 8 0 amappl12 168 9529 0 9501 3 1 2 2 0 8 0 amappl11 160 60 0 50 1 0 1 1 0 8 0 amappl10 152 83 0 72 2 1 1 1 0 8 0 amappl9 144 369 0 369 3 3 0 1 0 8 0 amappl8 136 218 0 181 2 0 2 2 0 8 0 amappl7 128 231 0 211 3 1 2 2 0 8 0 amappl6 120 325 0 321 2 1 1 1 0 8 0 amappl5 112 194 0 186 1 0 1 1 0 8 0 amappl4 104 471 0 453 2 1 1 2 0 8 0 amappl3 96 47595 0 47518 4 1 3 3 0 8 0 amappl2 88 9595 0 9522 6 3 3 4 0 8 0 amappl1 80 39619 0 39095 32 20 12 23 0 8 0 amappl 88 72046 0 71874 7 2 5 5 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 8833 0 8807 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8833 0 8807 1 0 1 1 0 8 0 vmmpekpl 168 39944 0 39894 3 0 3 3 0 8 0 vmmpepl 168 415270 0 413586 125 44 81 117 0 357 3 vmsppl 448 8832 0 8807 5 1 4 4 0 8 0 rwobjpl 56 112279 0 105395 109 11 98 98 0 8 0 pdppl 4096 17673 0 17614 145 78 67 77 0 8 8 pvpl 32 46084 0 0 373 1 372 372 0 265 0 pmappl 248 8832 0 8807 5 3 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 435 0 91 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8343eff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8353c0b0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8353c0b0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002a202450,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7135bc77e2f0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at lf_advlock+0x2f7: incl 0x28(%r12) ddb{1}> trace lf_advlock(ffff800001287be0,0,fffffd806bb739b0,2,ffff80002a16fe30,40) at lf_advlock+0x2f7 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001287be0,0,fffffd806bb739b0,2,ffff80002a16fe30,40) at lf_advlock+0x2f7 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd807a5e9608,fffffd806bb739b0,2,ffff80002a16fe30,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:620 closef(fffffd8068141008,ffff80002a0b4548) at closef+0x140 fdfree(ffff80002a0b4548) at fdfree+0x116 sys/kern/kern_descrip.c:1190 exit1(ffff80002a0b4548,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80002a0b4548,ffff80002a170070,ffff80002a16ffc0) at sys_exit+0x1a syscall(ffff80002a170070) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a170070) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x712c5e253620, count: -8