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(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8067c842c0,fffffd8067f5be20,8,ffff80003c9dd508,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80002a7aba08,ffff80003c9dd640,ffff80003c9dd590) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c9dd640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9dd640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf165083bef0, count: -5 ddb> show registers rdi 0xffff80002a7aba0c rsi 0xffff80002a7aba0c rbp 0xffff80003c9dd450 rbx 0 rdx 0 rcx 0xffffffff837daff0 cpu_info_full_primary+0x1ff0 rax 0xffff80002a7aba08 r8 0xa0 r9 0 r10 0x1d6ea71b7fc591df r11 0xbf2d8baa4892ea8c r12 0xdeadbeefdeadbeef r13 0x8 r14 0xffff80003c9dd508 r15 0x1 rip 0xffffffff82614861 lf_advlock+0x2f1 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c9dd3c0 ss 0x10 lf_advlock+0x2f1: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=197960 pid=34777 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7aa2b0,0xffff80002a786fa8 process=0xffff80003c9c5fa0 user=0xffff80003c9d8000, vmspace=0xfffffd806ba2f468 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 63437 91786 63014 0 2 0 syz-executor 63437 250588 63014 0 2 0x4000000 syz-executor 42074 444653 57526 0 2 0 syz-executor 42074 59234 57526 0 2 0x4000000 syz-executor 32524 108014 79727 0 2 0 syz-executor 32524 178368 79727 0 3 0x4000080 fsleep syz-executor 32337 27125 86766 0 2 0 syz-executor 32337 240484 86766 0 2 0x4000000 syz-executor 32337 434578 86766 0 2 0x4000000 syz-executor 32337 308311 86766 0 2 0x4000000 syz-executor 80160 360644 11985 0 3 0 vmmaplk syz-executor 80160 456289 11985 0 2 0x4000000 syz-executor 80160 365280 11985 0 3 0x4000080 fsleep syz-executor 80160 91866 11985 0 2 0x4000000 syz-executor 34777 97709 57410 0 3 0x80 nanoslp syz-executor *34777 197960 57410 0 7 0x4000000 syz-executor 34777 190989 57410 0 3 0x4000080 fsleep syz-executor 34777 447587 57410 0 3 0x4000080 fsleep syz-executor 5890 376444 0 0 3 0x14200 bored sosplice 11985 195186 79658 0 3 0x82 nanoslp syz-executor 63014 175330 79658 0 3 0x82 nanoslp syz-executor 34266 410395 79658 0 3 0x82 nanoslp syz-executor 86766 459062 79658 0 3 0x82 nanoslp syz-executor 57526 266984 79658 0 3 0x82 nanoslp syz-executor 79727 196109 79658 0 3 0x82 nanoslp syz-executor 51174 327309 79658 0 3 0x82 nanoslp syz-executor 57410 126686 79658 0 3 0x82 nanoslp syz-executor 79658 420397 20931 0 3 0x82 kqread syz-executor 20931 26992 38283 0 3 0x10008a sigsusp ksh 38283 48954 84911 0 3 0x98 kqread sshd-session 84911 58283 84730 0 3 0x92 kqread sshd-session 97233 197 1 0 3 0x100083 ttyin getty 84730 269783 1 0 3 0x88 kqread sshd 61516 255399 21818 73 3 0x1100090 kqread syslogd 21818 174578 1 0 3 0x100082 sbwait syslogd 65923 129769 1 0 3 0x100080 kqread resolvd 15348 410146 89645 77 3 0x100092 kqread dhcpleased 23151 497194 89645 77 3 0x100092 kqread dhcpleased 89645 208111 1 0 3 0x80 kqread dhcpleased 36859 67901 0 0 3 0x14200 bored smr 20409 2827 0 0 2 0x14200 zerothread 89922 490621 0 0 3 0x14200 aiodoned aiodoned 5254 13750 0 0 3 0x14200 syncer update 78844 172315 0 0 3 0x14200 cleaner cleaner 18958 69326 0 0 2 0x14200 reaper 26791 483951 0 0 3 0x14200 pgdaemon pagedaemon 21503 291168 0 0 3 0x14200 bored viomb 89094 378621 0 0 3 0x40014200 acpi0 acpi0 52202 409273 0 0 3 0x14200 bored softnet0 82424 420690 0 0 3 0x14200 bored systqmp 44903 206871 0 0 3 0x14200 bored systq 76501 374271 0 0 3 0x40014200 tmoslp softclock 63155 256541 0 0 3 0x40014200 idle0 1 345748 0 0 3 0x82 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 10179 11052K 11453K 166960K 11933 0 pcb 17 16K 17K 166960K 184 0 rtable 210 7K 7K 166960K 299 0 pf 31 13K 17K 166960K 75 0 ifaddr 40 7K 7K 166960K 65 0 ifgroup 50 2K 2K 166960K 96 0 sysctl 3 1K 9K 166960K 9 0 counters 32 17K 18K 166960K 57 0 ioctlops 0 0K 4K 166960K 79 0 iov 0 0K 12K 166960K 19 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1332 84K 85K 166960K 1578 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 425 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 83K 166960K 498 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 42 0 in_multi 89 6K 7K 166960K 113 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 5 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 363 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 234 159K 167K 166960K 5494 0 UVM aobj 16 2K 2K 166960K 17 0 pinsyscall 38 76K 94K 166960K 1427 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 11 0K 2K 166960K 44 0 temp 41 8635K 8762K 166960K 20896 0 kqueue 14 22K 29K 166960K 94 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 57 0 54 1 0 1 1 0 8 0 rtentry 136 102 0 12 4 0 4 4 0 8 0 unpcb 144 261 0 245 4 0 4 4 0 8 3 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 217 0 210 7 0 7 7 0 8 6 arp 96 11 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 605 0 592 12 3 9 12 0 8 7 ip6q 72 5 0 2 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 112 18 0 3 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 21 0 21 1 0 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfrule 1344 3 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 456 0 55 28 0 28 28 0 8 1 art_table 40 457 0 55 5 0 5 5 0 8 0 art_node 32 101 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 7 0 1 1 0 1 1 0 8 0 shmpl 112 14 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2135 0 643 95 0 95 95 0 8 0 ffsino 256 2135 0 643 95 0 95 95 0 8 0 nchpl 144 2754 0 1076 63 0 63 63 0 8 0 rtmask 32 4 0 4 2 1 1 1 0 8 1 uvmvnodes 80 2325 0 0 48 0 48 48 0 8 0 vnodes 216 2325 0 0 130 0 130 130 0 8 0 namei 1024 8718 0 8716 1 0 1 1 0 8 0 kstatmem 264 56 0 34 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 12550 0 12550 15 7 8 8 1 8 8 plimitpl 152 144 0 126 1 0 1 1 0 8 0 sigapl 424 714 0 670 8 0 8 8 0 8 3 knotepl 120 14798 0 14748 22 12 10 17 0 8 8 kqueuepl 184 134 0 124 1 0 1 1 0 8 0 pipepl 304 280 0 253 8 0 8 8 0 8 5 fdescpl 448 680 0 651 5 1 4 5 0 8 0 filepl 120 3897 0 3666 15 1 14 14 0 8 6 lockfpl 104 201 0 198 1 0 1 1 0 8 0 lockfspl 48 58 0 55 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 35 0 19 1 0 1 1 0 8 0 ucredpl 104 427 0 413 1 0 1 1 0 8 0 zombiepl 144 873 0 871 1 0 1 1 0 8 0 processpl 1152 714 0 670 5 0 5 5 0 8 1 procpl 664 1249 0 1192 7 0 7 7 0 8 2 sockpl 552 939 0 907 12 2 10 12 0 8 7 mcl64k 65536 30 0 30 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 39 0 39 2 1 1 1 0 8 1 mcl4k 4096 2920 0 2871 13 6 7 13 0 8 0 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 576 0 573 3 0 3 3 0 8 2 mtagpl 96 8 0 6 1 0 1 1 0 8 0 mbufpl 256 7146 0 6955 14 0 14 14 0 8 0 bufpl 280 5588 0 118 391 0 391 391 0 8 0 anonpl 24 126969 0 123813 44 0 44 44 0 187 7 amapchunkpl 152 17092 0 16583 25 0 25 25 0 158 4 amappl16 200 2480 0 2449 15 2 13 14 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 1277 0 1248 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 275 0 275 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 97 0 87 1 0 1 1 0 8 0 amappl6 120 170 0 166 1 0 1 1 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 263 0 247 1 0 1 1 0 8 0 amappl3 96 2934 0 2833 3 0 3 3 0 8 0 amappl2 88 910 0 835 2 0 2 2 0 8 0 amappl1 80 9014 0 8474 13 1 12 13 0 8 0 amappl 88 4824 0 4654 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 7 0 7 2 1 1 1 0 8 1 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 16 0 1 1 0 1 1 0 8 0 uaddrrnd 24 680 0 651 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 680 0 651 1 0 1 1 0 8 0 vmmpekpl 168 7518 0 7478 3 0 3 3 0 8 0 vmmpepl 168 48948 0 47091 92 0 92 92 0 357 8 vmsppl 368 679 0 650 4 1 3 4 0 8 0 rwobjpl 40 17924 0 14723 33 0 33 33 0 8 0 pdppl 4096 1366 0 1300 94 28 66 80 0 8 0 pvpl 32 310299 0 302066 103 0 103 103 0 265 14 pmappl 216 679 0 650 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 375 0 41 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8067c842c0,fffffd8067f5be20,8,ffff80003c9dd508,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80002a7aba08,ffff80003c9dd640,ffff80003c9dd590) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c9dd640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9dd640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf165083bef0, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001478ea0,0,fffffd8067f5be20,8,ffff80003c9dd508,30) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8067c842c0,fffffd8067f5be20,8,ffff80003c9dd508,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80002a7aba08,ffff80003c9dd640,ffff80003c9dd590) at sys_flock+0x28f sys/kern/kern_descrip.c:-1 syscall(ffff80003c9dd640) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9dd640) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf165083bef0, count: -5