kernel: protection fault trap, code=0 Stopped at lf_advlock+0x224: addl $0x1,0x28(%rbx) ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace lf_advlock(ffff800000d890a0,0,fffffd80656a83a8,8,ffff80002aff8e88,20) at lf_advlock+0x224 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800000d890a0,0,fffffd80656a83a8,8,ffff80002aff8e88,20) at lf_advlock+0x224 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8068ee4880,fffffd80656a83a8,8,ffff80002aff8e88,20) at VOP_ADVLOCK+0x75 sys/kern/vfs_vops.c:612 sys_flock(ffff8000212b4040,ffff80002aff8f00,ffff80002aff8f50) at sys_flock+0x1d1 syscall(ffff80002aff8fd0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002aff8fd0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fc70cf450, count: -5 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002aff8dd0 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff8000212b4040 rax 0xffffffff82b7dff0 cpu_info_full_primary+0x1ff0 r8 0xffff80002aff8e88 r9 0x20 r10 0 r11 0xbb34631b366e4553 r12 0xffff800000d890a0 r13 0x8 r14 0xffff80002aff8e88 r15 0 rip 0xffffffff82749b14 lf_advlock+0x224 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002aff8d30 ss 0x10 lf_advlock+0x224: addl $0x1,0x28(%rbx) ddb{0}> show proc PROC (syz-executor.5) pid=424711 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000212b4dd8,0xffff8000212b5b80 process=0xffff80002128dd68 user=0xffff80002aff4000, vmspace=0xfffffd806996e3b8 estcpu=33, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47300 204485 52355 0 2 0 syz-executor.2 47300 45009 52355 0 3 0x4000080 netcon2 syz-executor.2 33737 487647 41983 0 2 0 syz-executor.6 33737 320240 41983 0 3 0x4000080 fsleep syz-executor.6 81398 490263 87529 0 2 0 syz-executor.3 59557 256909 17795 0 2 0 syz-executor.5 59557 141260 17795 0 2 0x4000000 syz-executor.5 *59557 424711 17795 0 7 0x4000000 syz-executor.5 59557 22283 17795 0 2 0x4000000 syz-executor.5 33727 85796 82980 0 2 0 syz-executor.4 53878 276283 12848 0 7 0 syz-executor.1 53878 419884 12848 0 2 0x4000080 syz-executor.1 94702 349380 17276 0 3 0x2 getblk syz-executor.7 93157 67454 0 0 3 0x14200 bored sosplice 61230 441236 0 0 3 0x14280 nfsidl nfsio 83561 7313 0 0 3 0x14280 nfsidl nfsio 78839 229698 0 0 3 0x14280 nfsidl nfsio 44105 150437 0 0 3 0x14280 nfsidl nfsio 99181 482297 0 0 3 0x14280 nfsidl nfsio 66659 61493 0 0 3 0x14280 nfsidl nfsio 29491 466948 0 0 3 0x14280 nfsidl nfsio 72829 379624 0 0 3 0x14280 nfsidl nfsio 7963 217580 0 0 3 0x14280 nfsidl nfsio 91810 271382 0 0 3 0x14280 nfsidl nfsio 55908 452513 0 0 3 0x14280 nfsidl nfsio 31699 384738 0 0 3 0x14280 nfsidl nfsio 64643 297271 0 0 3 0x14280 nfsidl nfsio 2971 3002 0 0 3 0x14280 nfsidl nfsio 48460 179559 0 0 3 0x14280 nfsidl nfsio 48234 373209 0 0 3 0x14280 nfsidl nfsio 26012 371899 0 0 3 0x14280 nfsidl nfsio 58674 219242 0 0 3 0x14280 nfsidl nfsio 8469 392819 0 0 3 0x14280 nfsidl nfsio 78987 171715 0 0 3 0x14280 nfsidl nfsio 41983 225805 17276 0 3 0x82 nanoslp syz-executor.6 17795 495582 17276 0 3 0x82 nanoslp syz-executor.5 82980 418603 17276 0 3 0x82 nanoslp syz-executor.4 87529 373634 17276 0 3 0x82 nanoslp syz-executor.3 12848 461941 17276 0 3 0x82 nanoslp syz-executor.1 52355 520098 17276 0 3 0x82 nanoslp syz-executor.2 4606 5368 17276 0 2 0x2 syz-executor.0 17276 73950 80170 0 3 0x2000082 thrsleep syz-fuzzer 17276 123220 80170 0 3 0x6000082 nanoslp syz-fuzzer 17276 342856 80170 0 3 0x6000082 thrsleep syz-fuzzer 17276 62632 80170 0 3 0x6000082 wait syz-fuzzer 17276 340546 80170 0 3 0x6000082 wait syz-fuzzer 17276 311194 80170 0 3 0x6000082 thrsleep syz-fuzzer 17276 214788 80170 0 3 0x6000082 wait syz-fuzzer 17276 341611 80170 0 3 0x6000082 wait syz-fuzzer 17276 483325 80170 0 3 0x6000082 wait syz-fuzzer 17276 487489 80170 0 3 0x6000082 wait syz-fuzzer 17276 79838 80170 0 3 0x6000082 thrsleep syz-fuzzer 17276 24522 80170 0 3 0x6000082 wait syz-fuzzer 17276 338987 80170 0 3 0x6000082 thrsleep syz-fuzzer 17276 306770 80170 0 3 0x6000082 wait syz-fuzzer 17276 350215 80170 0 3 0x6000082 kqread syz-fuzzer 80170 336593 47151 0 3 0x10008a sigsusp ksh 47151 291986 32597 0 3 0x9a kqread sshd 92549 492866 1 0 3 0x100083 ttyin getty 32597 111503 1 0 3 0x88 kqread sshd 37836 151663 82641 74 3 0x1100092 bpf pflogd 82641 421179 1 0 3 0x80 netio pflogd 76840 154638 51013 73 3 0x1100090 kqread syslogd 51013 204850 1 0 3 0x100082 netio syslogd 7884 474828 1 0 3 0x100080 kqread resolvd 76180 466547 53018 77 3 0x100092 kqread dhcpleased 17578 342753 53018 77 3 0x100092 kqread dhcpleased 53018 384553 1 0 3 0x80 kqread dhcpleased 96492 483131 0 0 3 0x14200 bored smr 97894 267843 0 0 2 0x14200 zerothread 65911 77916 0 0 3 0x14200 aiodoned aiodoned 33827 500923 0 0 3 0x14200 syncer update 52487 358105 0 0 3 0x14200 cleaner cleaner 236 166266 0 0 3 0x14200 reaper reaper 70853 227325 0 0 3 0x14200 pgdaemon pagedaemon 96126 89470 0 0 3 0x14200 bored viomb 89953 400201 0 0 3 0x40014200 acpi0 acpi0 40284 150731 0 0 3 0x40014200 idle1 91824 412003 0 0 3 0x14200 bored softnet3 25696 449465 0 0 3 0x14200 bored softnet2 70143 291382 0 0 3 0x14200 bored softnet1 65171 26923 0 0 3 0x14200 bored softnet0 9846 483382 0 0 3 0x14200 bored systqmp 46985 58551 0 0 3 0x14200 bored systq 54724 275174 0 0 3 0x40014200 bored softclock 74713 363147 0 0 3 0x40014200 idle0 1 484082 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 59557 (syz-executor.5) thread 0xffff8000212b4040 (424711) exclusive rwlock lockflk r = 0 (0xffffffff82c4f3e0) #0 witness_lock+0x447 #1 lf_advlock+0x196 sys/kern/vfs_lockf.c:260 #2 VOP_ADVLOCK+0x75 sys/kern/vfs_vops.c:612 #3 sys_flock+0x1d1 #4 syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] #4 syscall+0x606 sys/arch/amd64/amd64/trap.c:623 #5 Xsyscall+0x128 Process 94702 (syz-executor.7) thread 0xffff8000212b5600 (349380) exclusive rrwlock inode r = 0 (0xfffffd8066b34f80) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vget+0x200 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:1314 #8 ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e2 sys/kern/vfs_lookup.c:566 #11 namei+0x55a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #13 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #13 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8066b34d60) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #9 Xsyscall+0x128 Process 4606 (syz-executor.0) thread 0xffff8000211f3318 (5368) exclusive rrwlock inode r = 0 (0xfffffd8066b34810) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 ufs_ihashins+0x46 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1343 #6 ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149 #8 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388 #9 domkdirat+0x125 sys/kern/vfs_syscalls.c:3073 #10 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #10 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80699374e0) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 domkdirat+0x79 sys/kern/vfs_syscalls.c:3058 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10199 6480K 6871K 78643K 12287 0 pcb 13 13K 15K 78643K 198 0 rtable 239 7K 7K 78643K 418 0 pf 32 9K 10K 78643K 69 0 ifaddr 45 15K 15K 78643K 61 0 ifgroup 55 2K 2K 78643K 99 0 sysctl 2 0K 0K 78643K 6 0 counters 60 35K 36K 78643K 78 0 ioctlops 0 0K 4K 78643K 1522 0 iov 0 0K 16K 78643K 186 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1415 88K 89K 78643K 1895 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 308 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 81K 78643K 2005 0 sigio 0 0K 0K 78643K 19 0 proc 69 91K 115K 78643K 671 0 subproc 104 6K 6K 78643K 117 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 21 0 in_multi 99 7K 7K 78643K 131 0 ether_multi 1 0K 0K 78643K 4 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 103 466K 466K 78643K 103 0 exec 0 0K 1K 78643K 664 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 350 88K 89K 78643K 22201 0 UVM aobj 30 2K 2K 78643K 30 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 13 0 NDP 12 0K 2K 78643K 39 0 temp 74 5920K 5996K 78643K 13723 0 kqueue 12 18K 22K 78643K 147 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 66 0 63 1 0 1 1 0 8 0 rtentry 112 126 0 15 4 0 4 4 0 8 0 unpcb 144 2075 0 2060 25 19 6 10 0 8 5 syncache 296 23 0 23 5 4 1 1 0 8 1 tcpqe 32 147 123 147 2 2 0 1 0 8 0 tcpcb 808 525 0 502 22 19 3 10 0 8 0 arp 120 21 0 2 1 0 1 1 0 8 0 inpcb 368 1085 0 1056 27 18 9 10 0 8 6 nd6 136 27 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 pffrag 232 12 0 10 1 0 1 1 0 482 0 pffrnode 88 12 0 10 1 0 1 1 0 8 0 pffrent 40 92 0 90 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 71 0 42 1 0 1 1 0 8 0 pfstkey 128 71 0 42 2 0 2 2 0 8 0 pfstate 376 71 0 42 4 0 4 4 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 500 0 44 29 0 29 29 0 8 0 art_table 32 501 0 44 4 0 4 4 0 8 0 art_node 16 122 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 306 0 296 1 0 1 1 0 8 0 shmpl 112 27 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3985 0 2527 92 0 92 92 0 8 0 ffsino 272 3985 0 2527 98 0 98 98 0 8 0 nchpl 144 6790 0 5141 63 0 63 63 0 8 0 uvmvnodes 80 4436 0 0 91 0 91 91 0 8 0 vnodes 216 4436 0 0 247 0 247 247 0 8 0 namei 1024 24547 0 24546 3 2 1 2 0 8 0 percpumem 16 52 0 9 1 0 1 1 0 8 0 kstatmem 264 42 0 18 2 0 2 2 0 8 0 scxspl 216 21347 0 21347 15 13 2 8 1 8 2 plimitpl 152 99 0 83 1 0 1 1 0 8 0 sigapl 424 2344 0 2277 9 1 8 8 0 8 0 futexpl 64 15307 0 15306 1 0 1 1 0 8 0 knotepl 120 359 0 0 11 0 11 11 0 8 0 kqueuepl 216 345 0 337 9 8 1 5 0 8 0 pipepl 320 602 0 574 21 18 3 8 0 8 0 fdescpl 496 2306 0 2277 5 0 5 5 0 8 1 filepl 152 15188 0 14941 44 26 18 21 0 8 8 lockfpl 104 475 0 472 1 0 1 1 0 8 0 lockfspl 48 141 0 138 1 0 1 1 0 8 0 sessionpl 144 25 0 8 1 0 1 1 0 8 0 pgrppl 48 135 0 118 1 0 1 1 0 8 0 ucredpl 104 1759 0 1745 1 0 1 1 0 8 0 zombiepl 144 2277 0 2277 1 0 1 1 0 8 1 processpl 1072 2344 0 2277 5 0 5 5 0 8 0 procpl 696 5827 0 5740 13 3 10 10 0 8 1 sosppl 168 23 0 20 1 0 1 1 0 8 0 sockpl 488 3233 0 3189 95 81 14 34 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 16 0 0 2 0 2 2 0 8 0 mcl4k 4096 19 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 37 0 37 37 0 8 0 mtagpl 96 37 0 0 1 0 1 1 0 8 0 mbufpl 256 360 0 0 19 0 19 19 0 8 0 bufpl 288 7724 0 1398 453 0 453 453 0 8 0 anonpl 24 358847 0 345307 127 33 94 106 0 186 0 amapchunkpl 152 69982 0 69152 43 6 37 38 0 158 2 amappl16 200 8864 0 8462 47 24 23 34 0 8 1 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 165 0 151 2 1 1 2 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 3012 0 2981 3 1 2 2 0 8 0 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 25 0 14 1 0 1 1 0 8 0 amappl9 144 208 0 206 1 0 1 1 0 8 0 amappl8 136 279 0 197 3 0 3 3 0 8 0 amappl7 128 77 0 66 2 0 2 2 0 8 0 amappl6 120 273 0 247 2 1 1 2 0 8 0 amappl5 112 201 0 189 1 0 1 1 0 8 0 amappl4 104 633 0 587 3 1 2 3 0 8 0 amappl3 96 14203 0 14127 4 1 3 3 0 8 1 amappl2 88 2643 0 2575 3 1 2 3 0 8 0 amappl1 80 16797 0 16234 24 10 14 23 0 8 0 amappl 88 21611 0 21388 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 29 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2306 0 2277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2306 0 2277 1 0 1 1 0 8 0 vmmpekpl 168 24668 0 24618 3 0 3 3 0 8 0 vmmpepl 168 156234 0 153894 164 43 121 137 0 357 15 vmsppl 464 2305 0 2277 5 1 4 5 0 8 0 rwobjpl 56 49700 0 43726 87 2 85 85 0 8 0 pdppl 4096 4620 0 4554 192 122 70 78 0 8 4 pvpl 32 859356 0 839826 368 112 256 366 0 265 88 pmappl 248 2305 0 2277 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 989 0 163 24 0 24 24 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace lf_advlock(ffff800000d890a0,0,fffffd80656a83a8,8,ffff80002aff8e88,20) at lf_advlock+0x224 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800000d890a0,0,fffffd80656a83a8,8,ffff80002aff8e88,20) at lf_advlock+0x224 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8068ee4880,fffffd80656a83a8,8,ffff80002aff8e88,20) at VOP_ADVLOCK+0x75 sys/kern/vfs_vops.c:612 sys_flock(ffff8000212b4040,ffff80002aff8f00,ffff80002aff8f50) at sys_flock+0x1d1 syscall(ffff80002aff8fd0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002aff8fd0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fc70cf450, count: -5 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d58ff0) 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 end of kernel end trace frame: 0x7f15464f74e0, count: -3