kernel: protection fault trap, code=0 Stopped at lf_advlock+0x2ee: incl 0x28(%r12) ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806ab5fa80,fffffd806c4ad8a8,2,ffff80002a925470,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:620 closef(fffffd806eb3d100,ffff80002a9947b0) at closef+0x13c fdfree(ffff80002a9947b0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a9947b0,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80002a9947b0,ffff80002a9256b0,ffff80002a925600) at sys_exit+0x1a syscall(ffff80002a9256b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x723d5600dd10, count: -8 ddb> show registers rdi 0xffff80002a9947b4 rsi 0xffff80002a9947b4 rbp 0xffff80002a9253c0 rbx 0 rdx 0 rcx 0xffffffff83459ff0 cpu_info_full_primary+0x1ff0 rax 0xffff80002a9947b0 r8 0 r9 0 r10 0x7523f8d4b29da7ec r11 0x2e99f232a1378ef0 r12 0xdeafbeaddeafbead r13 0x2 r14 0xffff8000012e1060 r15 0xffffffffffffffff rip 0xffffffff817a97ee lf_advlock+0x2ee cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a925330 ss 0x10 lf_advlock+0x2ee: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=126890 pid=88317 tcnt=0 stat=onproc flags process=401008 proc=2000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a9947b0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a995968,0xffff80003a5f71e8 process=0xffff8000ffffab30 user=0xffff80002a920000, vmspace=0xfffffd807e3ef9e0 estcpu=33, cpticks=1, pctcpu=0.37, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73346 190605 44557 0 2 0 syz-executor 73346 6552 44557 0 3 0x4000080 fsleep syz-executor 13719 289237 29447 0 2 0x3000 syz-executor 36237 337516 15662 0 2 0 syz-executor 36237 93832 15662 0 2 0x4000000 syz-executor 90184 12807 78157 0 2 0 syz-executor 90184 145243 78157 0 2 0x4000000 syz-executor 90184 144514 78157 0 3 0x4000080 bpf syz-executor 14921 373574 14569 0 3 0x2 lockflk syz-executor 44557 263739 14569 0 3 0x82 nanoslp syz-executor 31120 64467 14569 0 2 0x2 syz-executor 97157 499086 14569 0 3 0x82 nanoslp syz-executor 80961 300995 1 0 3 0x100083 ttyin getty 78157 312401 14569 0 3 0x82 nanoslp syz-executor 15662 175736 14569 0 3 0x82 nanoslp syz-executor 73238 191684 0 0 3 0x14200 bored sosplice 29447 122253 14569 0 3 0x82 nanoslp syz-executor 20657 317835 14569 0 2 0x2 syz-executor 14569 510376 15786 0 3 0x82 kqread syz-executor 15786 386659 2522 0 3 0x10008a sigsusp ksh 2522 466742 77562 0 3 0x98 kqread sshd-session 77562 132491 52354 0 3 0x92 kqread sshd-session 52354 444487 1 0 3 0x88 kqread sshd 77727 158018 10860 73 3 0x1100090 kqread syslogd 10860 406078 1 0 3 0x100082 sbwait syslogd 60754 455909 1 0 3 0x100080 kqread resolvd 78704 26462 2930 77 3 0x100092 kqread dhcpleased 73589 190038 2930 77 3 0x100092 kqread dhcpleased 2930 314458 1 0 3 0x80 kqread dhcpleased 77958 87504 0 0 3 0x14200 bored smr 50797 419094 0 0 2 0x14200 zerothread 3126 213480 0 0 3 0x14200 aiodoned aiodoned 10669 273092 0 0 3 0x14200 syncer update 69002 484036 0 0 3 0x14200 cleaner cleaner 87900 369310 0 0 3 0x14200 reaper reaper 58453 230809 0 0 3 0x14200 pgdaemon pagedaemon 58629 31705 0 0 3 0x14200 bored viomb 48260 265438 0 0 3 0x40014200 acpi0 acpi0 60655 501755 0 0 3 0x14200 bored softnet3 22790 162176 0 0 3 0x14200 bored softnet2 74655 415916 0 0 3 0x14200 bored softnet1 66227 479169 0 0 3 0x14200 bored softnet0 64190 121475 0 0 3 0x14200 bored systqmp 80625 203750 0 0 3 0x14200 bored systq 16639 294548 0 0 3 0x40014200 tmoslp softclock 64265 410812 0 0 3 0x40014200 idle0 1 230598 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 11078K 11614K 166960K 14521 0 pcb 18 16K 18K 166960K 533 0 rtable 223 10K 11K 166960K 836 0 pf 39 15K 269K 166960K 179 0 ifaddr 39 7K 7K 166960K 120 0 ifgroup 50 2K 2K 166960K 166 0 sysctl 4 1K 5K 166960K 11 0 counters 30 17K 17K 166960K 65 0 ioctlops 0 0K 4K 166960K 315 0 iov 0 0K 16K 166960K 204 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 3541 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 39 0 VM map 2 1K 1K 166960K 2 0 sem 29 17K 17K 166960K 79 0 dirhash 12 2K 2K 166960K 66 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 15 53K 97K 166960K 2453 0 sigio 0 0K 0K 166960K 58 0 proc 60 59K 124K 166960K 965 0 subproc 72 4K 4K 166960K 145 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 456 0 in_multi 88 6K 7K 166960K 293 0 ether_multi 1 0K 0K 166960K 40 0 mrt 3 0K 0K 166960K 16 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 1266 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 201 72K 89K 166960K 23694 0 UVM aobj 61 2K 2K 166960K 68 0 pinsyscall 36 72K 96K 166960K 3701 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 161 0 NDP 11 0K 1K 166960K 81 0 temp 75 6892K 7020K 166960K 48814 0 kqueue 13 20K 30K 166960K 414 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 331 0 328 4 2 2 3 0 8 1 rtentry 112 257 0 162 4 0 4 4 0 8 0 unpcb 144 2534 0 2516 16 10 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 836 0 831 20 12 8 8 0 8 7 arp 88 49 0 26 1 0 1 1 0 8 0 ipq 40 11 0 11 1 0 1 1 0 8 1 ipqe 40 18 0 18 1 0 1 1 0 8 1 inpcb 344 3162 0 3151 29 20 9 13 0 8 7 nd6 104 58 0 37 1 0 1 1 0 8 0 pkpcb 40 16 0 16 4 3 1 1 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1072 17 0 17 4 3 1 1 0 8 1 pfstscr 40 4 0 4 2 1 1 1 0 8 1 pfrktable 1344 10 0 7 2 1 1 1 0 8 0 pfanchor 1288 4 0 1 1 0 1 1 0 8 0 pftag 88 4 0 1 1 0 1 1 0 8 0 pfstitem 24 9 0 4 1 0 1 1 0 8 0 pfstkey 128 25 0 17 1 0 1 1 0 8 0 pfstate 344 14 0 11 1 0 1 1 0 8 0 pfrule 1344 20 0 18 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1059 0 625 41 13 28 29 0 8 0 art_table 32 1062 0 625 4 0 4 4 0 8 0 art_node 16 248 0 163 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 67 0 40 1 0 1 1 0 8 0 shmpl 112 65 0 7 2 0 2 2 0 8 0 dirhash 1024 55 0 38 3 0 3 3 0 8 0 dino2pl 256 5818 0 4305 95 0 95 95 0 8 0 ffsino 248 5819 0 4305 95 0 95 95 0 8 0 nchpl 144 9397 0 8836 64 40 24 64 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 34153 0 34152 5 3 2 2 0 8 1 pfiaddrpl 120 2 0 1 2 1 1 1 0 8 0 kstatmem 264 92 0 70 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 11 0 11 4 3 1 1 0 8 1 scxspl 216 29365 0 29365 11 9 2 8 1 8 2 plimitpl 152 806 0 790 1 0 1 1 0 8 0 sigapl 424 2750 0 2706 8 1 7 8 0 8 0 futexpl 64 36074 0 36073 1 0 1 1 0 8 0 knotepl 120 137593 0 137546 65 53 12 22 0 8 8 kqueuepl 184 872 0 862 9 8 1 7 0 8 0 pipepl 296 483 0 456 10 7 3 8 0 8 0 fdescpl 440 2703 0 2676 5 1 4 5 0 8 0 filepl 120 20218 0 19995 29 14 15 15 0 8 4 lockfpl 104 1113 0 1110 3 1 2 2 0 8 0 lockfspl 48 295 0 292 1 0 1 1 0 8 0 sessionpl 144 31 0 23 1 0 1 1 0 8 0 pgrppl 48 74 0 58 1 0 1 1 0 8 0 ucredpl 104 3484 0 3472 1 0 1 1 0 8 0 zombiepl 144 3062 0 3060 2 1 1 1 0 8 0 processpl 1104 2750 0 2706 5 1 4 5 0 8 0 procpl 648 6190 0 6142 8 2 6 8 0 8 0 sosppl 168 9 0 9 4 3 1 1 0 8 1 sockpl 528 6085 0 6054 41 31 10 16 0 8 7 mcl64k 65536 64 0 64 4 3 1 1 0 8 1 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 4 0 4 3 2 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 36 0 36 3 2 1 1 0 8 1 mcl4k 4096 5472 0 5419 18 10 8 14 0 8 0 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 2491 0 2490 6 4 2 3 0 8 1 mtagpl 96 56 0 46 1 0 1 1 0 8 0 mbufpl 256 29001 0 28887 19 4 15 18 0 8 3 bufpl 280 9712 0 3473 446 0 446 446 0 8 0 anonpl 24 352651 0 348839 120 73 47 58 0 187 13 amapchunkpl 152 79253 0 78790 59 28 31 36 0 158 8 amappl16 200 7270 0 7231 66 62 4 19 0 8 1 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 120 0 110 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 3483 0 3456 2 0 2 2 0 8 0 amappl11 160 88 0 78 1 0 1 1 0 8 0 amappl10 152 27 0 27 2 1 1 1 0 8 1 amappl9 144 245 0 245 1 1 0 1 0 8 0 amappl8 136 31 0 28 1 0 1 1 0 8 0 amappl7 128 130 0 120 1 0 1 1 0 8 0 amappl6 120 256 0 252 1 0 1 1 0 8 0 amappl5 112 188 0 180 1 0 1 1 0 8 0 amappl4 104 324 0 306 1 0 1 1 0 8 0 amappl3 96 16217 0 16119 4 0 4 4 0 8 0 amappl2 88 759 0 701 2 0 2 2 0 8 0 amappl1 80 14923 0 14414 13 1 12 13 0 8 0 amappl 88 23111 0 22958 5 0 5 5 0 92 0 dma32768 32768 2 0 2 2 2 0 1 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 dma512 512 1 0 1 1 0 1 1 0 8 1 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 257 0 257 3 2 1 1 0 8 1 dma64 64 7 0 7 2 2 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 67 0 7 2 0 2 2 0 8 0 uaddrrnd 24 2703 0 2676 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2703 0 2676 1 0 1 1 0 8 0 vmmpekpl 168 20958 0 20905 3 0 3 3 0 8 0 vmmpepl 168 168610 0 166959 114 34 80 94 0 357 1 vmsppl 360 2702 0 2676 4 1 3 4 0 8 0 rwobjpl 32 47115 0 40280 56 0 56 56 0 8 0 pdppl 4096 5412 0 5352 136 70 66 82 0 8 6 pvpl 32 1128542 0 1119172 218 107 111 132 0 265 17 pmappl 216 2702 0 2676 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 361 0 127 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806ab5fa80,fffffd806c4ad8a8,2,ffff80002a925470,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:620 closef(fffffd806eb3d100,ffff80002a9947b0) at closef+0x13c fdfree(ffff80002a9947b0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a9947b0,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80002a9947b0,ffff80002a9256b0,ffff80002a925600) at sys_exit+0x1a syscall(ffff80002a9256b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x723d5600dd10, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000012e1060,0,fffffd806c4ad8a8,2,ffff80002a925470,40) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806ab5fa80,fffffd806c4ad8a8,2,ffff80002a925470,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:620 closef(fffffd806eb3d100,ffff80002a9947b0) at closef+0x13c fdfree(ffff80002a9947b0) at fdfree+0x115 sys/kern/kern_descrip.c:1181 exit1(ffff80002a9947b0,0,0,1) at exit1+0x57f sys/kern/kern_exit.c:214 sys_exit(ffff80002a9947b0,ffff80002a9256b0,ffff80002a925600) at sys_exit+0x1a syscall(ffff80002a9256b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x723d5600dd10, count: -8