kernel: protection fault trap, code=0 Stopped at lf_advlock+0x2f1: incl 0x28(%r12) ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805eb0f890,fffffd805f713db0,2,ffff80003c978e18,20) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff8000381167f0,ffff80003c978f50,ffff80003c978ea0) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c978f50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c978f50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3545d58900, count: -5 ddb> show registers rdi 0xffff8000381167f4 rsi 0xffff8000381167f4 rbp 0xffff80003c978d60 rbx 0 rdx 0 rcx 0xffffffff83851ff0 cpu_info_full_primary+0x1ff0 rax 0xffff8000381167f0 r8 0xa0 r9 0 r10 0xae563f817da37014 r11 0x7efebaaa3e136038 r12 0xdead4110dead4110 r13 0x2 r14 0xffff80003c978e18 r15 0x1 rip 0xffffffff8148e241 lf_advlock+0x2f1 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c978cd0 ss 0 lf_advlock+0x2f1: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=115525 pid=21545 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800038116fb8,0xffff80002a811cc8 process=0xffff80002a808da0 user=0xffff80003c974000, vmspace=0xfffffd806cb0c2f0 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70672 126599 54959 0 2 0 syz-executor 70672 45924 54959 0 2 0x4000000 syz-executor 21545 42688 55715 0 3 0x80 nanoslp syz-executor *21545 115525 55715 0 7 0x4000000 syz-executor 21545 181837 55715 0 3 0x4000080 fsleep syz-executor 21545 504231 55715 0 3 0x4000080 fsleep syz-executor 70789 18438 28590 0 2 0 syz-executor 70789 428399 28590 0 3 0x4000080 kqread syz-executor 70789 172897 28590 0 3 0x4000000 lockflk syz-executor 70789 321997 28590 0 3 0x4000080 fsleep syz-executor 16090 41179 18402 0 2 0 syz-executor 16090 453420 18402 0 2 0x4000000 syz-executor 16090 22289 18402 0 3 0x4000080 fsleep syz-executor 37969 441880 54182 0 3 0x3000 suspend syz-executor 37969 88660 54182 0 2 0x4081000 syz-executor 37969 150064 54182 0 3 0x4081000 inode syz-executor 37969 20482 54182 0 3 0x4081000 inode syz-executor 54959 230112 70346 0 3 0x82 nanoslp syz-executor 89665 365735 0 0 3 0x14200 acct acct 54182 391462 70346 0 3 0x82 wait syz-executor 92129 62084 70346 0 3 0x82 nanoslp syz-executor 90076 106966 70346 0 3 0x82 wait syz-executor 55715 103306 70346 0 3 0x82 nanoslp syz-executor 37067 354058 70346 0 3 0x82 nanoslp syz-executor 18402 35154 70346 0 3 0x82 nanoslp syz-executor 28590 42861 70346 0 3 0x82 nanoslp syz-executor 70346 267088 51473 0 3 0x82 kqread syz-executor 51473 13718 95077 0 3 0x10008a sigsusp ksh 95077 5914 6994 0 3 0x98 kqread sshd-session 6994 517654 67790 0 3 0x92 kqread sshd-session 64045 412499 1 0 3 0x100083 ttyopn getty 67790 40364 1 0 3 0x88 kqread sshd 54689 380433 58322 73 2 0x1100010 syslogd 58322 252452 1 0 3 0x100082 sbwait syslogd 55271 59519 1 0 3 0x100080 kqread resolvd 75443 443604 64928 77 3 0x100092 kqread dhcpleased 21985 119722 64928 77 3 0x100092 kqread dhcpleased 64928 402939 1 0 3 0x80 kqread dhcpleased 66097 61247 0 0 3 0x14200 bored smr 73137 130648 0 0 2 0x14200 zerothread 11756 486688 0 0 3 0x14200 aiodoned aiodoned 60028 461425 0 0 3 0x14200 syncer update 2295 67029 0 0 3 0x14200 cleaner cleaner 51287 425836 0 0 3 0x14200 reaper reaper 48853 409855 0 0 3 0x14200 pgdaemon pagedaemon 52537 62847 0 0 3 0x14200 bored viomb 45426 163233 0 0 3 0x40014200 acpi0 acpi0 93714 213405 0 0 3 0x14200 bored softnet0 48115 109721 0 0 3 0x14200 bored systqmp 23408 517354 0 0 3 0x14200 bored systq 43296 296976 0 0 3 0x40014200 tmoslp softclock 78184 319846 0 0 3 0x40014200 idle0 1 233993 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10196 11055K 11338K 166960K 12188 0 pcb 17 13K 14K 166960K 192 0 rtable 269 11K 11K 166960K 539 0 pf 30 12K 14K 166960K 83 0 ifaddr 43 8K 8K 166960K 82 0 ifgroup 50 2K 2K 166960K 114 0 sysctl 1 1K 9K 166960K 9 0 counters 33 17K 18K 166960K 65 0 ioctlops 0 0K 4K 166960K 116 0 iov 0 0K 18K 166960K 77 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 84K 166960K 1868 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 34 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 799 0 sigio 0 0K 0K 166960K 17 0 proc 60 59K 108K 166960K 607 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 107 0 in_multi 102 7K 7K 166960K 147 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 490 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 261 161K 180K 166960K 9388 0 UVM aobj 23 10K 10K 166960K 29 0 pinsyscall 39 78K 93K 166960K 1944 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 37 0 NDP 11 0K 2K 166960K 53 0 temp 61 8667K 8758K 166960K 36091 0 kqueue 16 22K 30K 166960K 136 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 131 0 127 2 0 2 2 0 8 1 rtentry 136 152 0 45 4 0 4 4 0 8 0 unpcb 144 483 0 467 3 0 3 3 0 8 2 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 9 0 9 2 1 1 1 0 8 1 tcpcb 736 234 0 225 7 0 7 7 0 8 5 arp 96 23 0 4 1 0 1 1 0 8 0 ipq 40 8 0 3 1 0 1 1 0 8 0 ipqe 40 11 0 6 1 0 1 1 0 8 0 inpcb 328 647 0 634 9 2 7 7 0 8 4 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 4 0 2 1 0 1 1 0 8 0 nd6 112 33 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 3 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 25 0 25 1 0 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 626 0 196 30 2 28 29 0 8 1 art_table 40 630 0 196 5 0 5 5 0 8 0 art_node 32 150 0 53 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 11 2 1 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 22 0 6 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2830 0 1330 95 0 95 95 0 8 0 ffsino 256 2830 0 1330 95 0 95 95 0 8 0 nchpl 144 3931 0 2236 64 0 64 64 0 8 0 rtmask 32 5 0 5 1 0 1 1 0 8 1 vnodes 216 3168 0 0 176 0 176 176 0 8 0 namei 1024 13244 0 13242 2 1 1 2 0 8 0 vcpupl 3904 4 0 0 1 0 1 1 0 8 0 vmpool 800 4 0 0 1 0 1 1 0 8 0 kstatmem 264 66 0 44 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 14128 0 14128 10 2 8 8 1 8 8 plimitpl 152 210 0 191 1 0 1 1 0 8 0 sigapl 424 1108 0 1064 9 1 8 8 0 8 2 knotepl 120 82518 0 82467 10 0 10 10 0 8 7 kqueuepl 184 302 0 291 6 0 6 6 0 8 5 pipepl 304 174 0 146 3 0 3 3 0 8 0 fdescpl 448 1074 0 1044 5 1 4 5 0 8 0 filepl 120 6133 0 5909 12 2 10 10 0 8 0 lockfpl 104 570 0 567 2 0 2 2 0 8 1 lockfspl 48 109 0 106 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 40 0 24 1 0 1 1 0 8 0 ucredpl 104 1165 0 1154 1 0 1 1 0 8 0 zombiepl 144 1539 0 1535 1 0 1 1 0 8 0 processpl 1152 1108 0 1064 5 0 5 5 0 8 0 procpl 664 2298 0 2242 8 0 8 8 0 8 1 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 552 1361 0 1327 10 2 8 8 0 8 4 mcl64k 65536 85 0 84 2 1 1 1 0 8 0 mcl16k 16384 12 0 12 1 0 1 1 0 8 1 mcl12k 12288 5 0 5 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 3418 0 3367 15 6 9 15 0 8 2 mcl2k 2048 1047 0 1040 4 2 2 3 0 8 1 mtagpl 96 15 0 4 2 1 1 1 0 8 0 mbufpl 256 11877 0 11671 74 55 19 74 0 8 4 bufpl 280 5674 0 121 397 0 397 397 0 8 0 anonpl 24 179052 0 170247 67 8 59 59 0 187 5 amapchunkpl 152 31750 0 31133 50 7 43 43 0 158 19 amappl16 200 3387 0 3085 24 8 16 17 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 9 0 9 2 1 1 1 0 8 1 amappl13 176 434 0 433 1 0 1 1 0 8 0 amappl12 168 1434 0 1395 2 0 2 2 0 8 0 amappl11 160 18 0 18 1 1 0 1 0 8 0 amappl10 152 56 0 46 1 0 1 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 48 0 46 1 0 1 1 0 8 0 amappl7 128 116 0 115 1 0 1 1 0 8 0 amappl6 120 286 0 275 1 0 1 1 0 8 0 amappl5 112 70 0 62 1 0 1 1 0 8 0 amappl4 104 413 0 390 1 0 1 1 0 8 0 amappl3 96 5242 0 5144 3 0 3 3 0 8 0 amappl2 88 1219 0 1147 2 0 2 2 0 8 0 amappl1 80 12554 0 12018 14 1 13 13 0 8 1 amappl 88 8524 0 8335 5 0 5 5 0 92 0 uvmvnodes 80 112 0 0 3 0 3 3 0 8 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 9 0 9 2 1 1 1 0 8 1 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 6 1 0 1 1 0 8 0 uaddrrnd 24 1074 0 1044 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1074 0 1044 1 0 1 1 0 8 0 vmmpekpl 168 10555 0 10507 3 0 3 3 0 8 0 vmmpepl 168 75594 0 73458 102 7 95 95 0 357 2 vmsppl 368 1073 0 1044 4 1 3 4 0 8 0 rwobjpl 40 22911 0 21640 14 0 14 14 0 8 0 pdppl 4096 2163 0 2092 103 31 72 79 0 8 1 pvpl 32 472804 0 457338 148 16 132 132 0 265 7 pmappl 216 1077 0 1044 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 451 0 104 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805eb0f890,fffffd805f713db0,2,ffff80003c978e18,20) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff8000381167f0,ffff80003c978f50,ffff80003c978ea0) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c978f50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c978f50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3545d58900, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014829e0,0,fffffd805f713db0,2,ffff80003c978e18,20) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805eb0f890,fffffd805f713db0,2,ffff80003c978e18,20) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff8000381167f0,ffff80003c978f50,ffff80003c978ea0) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c978f50) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c978f50) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3545d58900, count: -5