login: 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(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806096b518,fffffd8060114018,8,ffff80003a52d5b8,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80003c98a7d8,ffff80003a52d700,ffff80003a52d650) at sys_flock+0x291 sys/kern/kern_descrip.c:-1 syscall(ffff80003a52d700) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d700) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x97131ed9180, count: -5 ddb> show registers rdi 0xffff800031508000 rsi 0xe5 rbp 0xffff80003a52d500 rbx 0 rdx 0xffff800031508000 rcx 0xe4 rax 0xffffffff81c85289 rw_assert_wrlock+0x89 r8 0xffffffffffffffff r9 0 r10 0xd5947fd9ebe3a221 r11 0x1c8d129a8f550a51 r12 0xdead4110dead4110 r13 0x8 r14 0xffff8000014de6a0 r15 0xffffffffffffffff rip 0xffffffff813acc3e lf_advlock+0x2ee cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003a52d470 ss 0x10 lf_advlock+0x2ee: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=25549 pid=80816 tcnt=2 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=0xffff80003c98aa68,0xffff80003c98b9d8 process=0xffff800035d14018 user=0xffff80003a528000, vmspace=0xfffffd806c2902e0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66626 186403 86069 0 2 0 syz-executor 66626 86616 86069 0 2 0x4000000 syz-executor 64124 508109 41656 0 2 0 syz-executor 64124 118258 41656 0 3 0x4000080 lockf syz-executor 64124 81062 41656 0 3 0x4000080 fsleep syz-executor 80816 401978 82729 0 2 0 syz-executor *80816 25549 82729 0 7 0x4000000 syz-executor 95054 477818 12225 0 2 0 syz-executor 95054 446449 12225 0 3 0x4000080 fsleep syz-executor 95054 440802 12225 0 3 0x4000080 fsleep syz-executor 95054 248263 12225 0 3 0x4000080 fsleep syz-executor 3702 68581 1 0 3 0x100083 ttyin getty 81599 416752 0 0 3 0x14280 nfsidl nfsio 87215 136750 0 0 3 0x14280 nfsidl nfsio 28461 14769 0 0 3 0x14280 nfsidl nfsio 53956 50166 0 0 3 0x14280 nfsidl nfsio 18139 315277 0 0 3 0x14280 nfsidl nfsio 40635 122383 0 0 3 0x14280 nfsidl nfsio 21995 478255 0 0 3 0x14280 nfsidl nfsio 67800 255678 0 0 3 0x14280 nfsidl nfsio 22525 455215 0 0 3 0x14280 nfsidl nfsio 10974 311249 0 0 3 0x14280 nfsidl nfsio 39713 412557 0 0 3 0x14280 nfsidl nfsio 16488 138561 0 0 3 0x14280 nfsidl nfsio 94672 100702 0 0 3 0x14280 nfsidl nfsio 11631 303698 0 0 3 0x14280 nfsidl nfsio 11660 246963 0 0 3 0x14280 nfsidl nfsio 70833 301038 0 0 3 0x14280 nfsidl nfsio 29551 103092 0 0 3 0x14280 nfsidl nfsio 81039 522163 0 0 3 0x14280 nfsidl nfsio 54655 344484 0 0 3 0x14280 nfsidl nfsio 81787 316002 0 0 3 0x14280 nfsidl nfsio 47512 383009 38470 0 2 0x2 syz-executor 70174 260545 0 0 3 0x14200 bored sosplice 12225 494645 38470 0 2 0xc82 syz-executor 86069 509807 38470 0 2 0xc82 syz-executor 41656 112107 38470 0 2 0xc82 syz-executor 82729 130884 38470 0 3 0x82 nanoslp syz-executor 24310 354655 38470 0 3 0x82 wait syz-executor 73304 146309 38470 0 2 0xc82 syz-executor 72310 237867 38470 0 2 0x2 syz-executor 38470 63980 94728 0 3 0x82 kqread syz-executor 94728 502834 90118 0 3 0x10008a sigsusp ksh 90118 80186 5866 0 3 0x98 kqread sshd-session 5866 74966 79304 0 3 0x92 kqread sshd-session 79304 101212 1 0 3 0x88 kqread sshd 54857 145134 65778 73 3 0x1100090 kqread syslogd 65778 132253 1 0 3 0x100082 sbwait syslogd 93583 240326 1 0 3 0x100080 kqread resolvd 38771 476227 27426 77 3 0x100092 kqread dhcpleased 75326 107795 27426 77 3 0x100092 kqread dhcpleased 27426 137885 1 0 3 0x80 kqread dhcpleased 96650 141084 0 0 3 0x14200 bored smr 76763 176193 0 0 2 0x14200 zerothread 32605 497978 0 0 3 0x14200 aiodoned aiodoned 40268 34151 0 0 3 0x14200 syncer update 2943 142281 0 0 3 0x14200 cleaner cleaner 90994 478809 0 0 3 0x14200 reaper reaper 26234 275783 0 0 3 0x14200 pgdaemon pagedaemon 1527 95 0 0 3 0x14200 bored viomb 393 71060 0 0 3 0x40014200 acpi0 acpi0 16934 486552 0 0 3 0x14200 bored softnet3 77569 52287 0 0 3 0x14200 bored softnet2 33439 248370 0 0 3 0x14200 bored softnet1 91856 197730 0 0 3 0x14200 bored softnet0 66081 283821 0 0 3 0x14200 bored systqmp 66114 437925 0 0 3 0x14200 bored systq 30551 496172 0 0 2 0x40014200 softclock 27324 78417 0 0 3 0x40014200 idle0 1 410878 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 10191 11176K 11639K 166960K 12244 0 pcb 19 16K 18K 166960K 284 0 rtable 220 12K 12K 166960K 607 0 pf 31 13K 16K 166960K 89 0 ifaddr 39 7K 7K 166960K 77 0 ifgroup 46 2K 2K 166960K 112 0 sysctl 4 1K 9K 166960K 10 0 counters 31 17K 17K 166960K 67 0 ioctlops 0 0K 4K 166960K 180 0 iov 0 0K 16K 166960K 163 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1492 94K 94K 166960K 2022 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 1K 166960K 46 0 dirhash 12 2K 3K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 110K 166960K 732 0 sigio 0 0K 0K 166960K 16 0 proc 60 59K 124K 166960K 575 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 91 0 in_multi 88 6K 7K 166960K 133 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 550 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 231 151K 161K 166960K 8282 0 UVM aobj 19 2K 2K 166960K 20 0 pinsyscall 38 76K 96K 166960K 1787 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 39 0 NDP 10 0K 1K 166960K 51 0 temp 56 8683K 8756K 166960K 27246 0 kqueue 13 20K 34K 166960K 145 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 83 0 79 1 0 1 1 0 8 0 rtentry 136 133 0 42 4 0 4 4 0 8 0 unpcb 144 405 0 390 2 1 1 2 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 157 0 152 3 0 3 3 0 8 2 arp 88 22 0 4 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 34 0 32 1 0 1 1 0 8 0 inpcb 328 863 0 853 13 6 7 7 0 8 5 ip6q 72 20 0 18 1 0 1 1 0 8 0 ip6af 40 38 0 36 1 0 1 1 0 8 0 nd6 104 29 0 7 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 28 0 28 2 1 1 1 0 8 1 pppxif 1384 1 0 1 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 68 0 66 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 4 1 1 0 1 0 8 0 pfstate 384 2 0 2 1 1 0 1 0 8 0 pfrule 1344 1 0 0 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 606 0 211 29 3 26 29 0 8 1 art_table 32 610 0 211 4 0 4 4 0 8 0 art_node 16 132 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 2 1 1 1 0 8 0 semapl 112 40 0 30 1 0 1 1 0 8 0 shmpl 112 17 0 1 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 2680 0 1189 95 0 95 95 0 8 0 ffsino 248 2680 0 1189 95 0 95 95 0 8 0 nchpl 144 3658 0 1973 63 0 63 63 0 8 0 rtmask 32 9 0 9 2 1 1 1 0 8 1 uvmvnodes 80 3200 0 0 66 0 66 66 0 8 0 vnodes 216 3201 0 0 178 0 178 178 0 8 0 namei 1024 12794 0 12792 2 1 1 2 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 66 0 46 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 12598 0 12598 9 1 8 8 1 8 8 plimitpl 152 138 0 120 1 0 1 1 0 8 0 sigapl 424 1025 0 959 9 1 8 8 0 8 0 knotepl 120 51959 0 51912 15 6 9 10 0 8 6 kqueuepl 184 212 0 202 1 0 1 1 0 8 0 pipepl 296 317 0 288 10 5 5 8 0 8 2 fdescpl 440 987 0 958 5 1 4 5 0 8 0 filepl 120 6220 0 5989 15 3 12 12 0 8 4 lockfpl 104 252 0 246 1 0 1 1 0 8 0 lockfspl 48 103 0 98 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 75 0 59 1 0 1 1 0 8 0 ucredpl 104 790 0 779 1 0 1 1 0 8 0 zombiepl 144 1228 0 1226 1 0 1 1 0 8 0 processpl 1160 1025 0 959 5 0 5 5 0 8 0 procpl 656 2050 0 1977 8 0 8 8 0 8 1 sosppl 168 6 0 6 2 1 1 1 0 8 1 sockpl 528 1379 0 1350 14 6 8 9 0 8 5 mcl64k 65536 75 0 75 2 1 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 3213 0 3162 13 5 8 13 0 8 0 mcl2k 2048 933 0 931 2 1 1 2 0 8 0 mtagpl 96 20 0 8 1 0 1 1 0 8 0 mbufpl 256 10301 0 10123 18 3 15 15 0 8 2 bufpl 280 3383 0 139 232 0 232 232 0 8 0 anonpl 24 164201 0 160273 69 20 49 49 0 187 17 amapchunkpl 152 27030 0 26505 32 3 29 29 0 158 6 amappl16 200 3123 0 3090 24 14 10 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 115 0 104 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1630 0 1602 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 21 0 21 1 1 0 1 0 8 0 amappl9 144 241 0 241 1 1 0 1 0 8 0 amappl8 136 29 0 27 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 180 0 177 1 0 1 1 0 8 0 amappl5 112 140 0 132 1 0 1 1 0 8 0 amappl4 104 294 0 277 1 0 1 1 0 8 0 amappl3 96 5277 0 5172 5 1 4 4 0 8 0 amappl2 88 644 0 588 2 0 2 2 0 8 0 amappl1 80 10802 0 10253 14 0 14 14 0 8 1 amappl 88 7488 0 7320 5 0 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 254 0 254 2 1 1 1 0 8 1 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 19 0 1 1 0 1 1 0 8 0 uaddrrnd 24 987 0 958 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 987 0 958 1 0 1 1 0 8 0 vmmpekpl 168 9973 0 9930 3 0 3 3 0 8 0 vmmpepl 168 70508 0 68669 99 5 94 94 0 357 7 vmsppl 360 986 0 958 4 1 3 4 0 8 0 rwobjpl 32 23253 0 19172 34 0 34 34 0 8 0 pdppl 4096 1980 0 1916 104 38 66 82 0 8 2 pvpl 32 458053 0 448832 131 20 111 111 0 265 23 pmappl 216 986 0 958 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 283 0 56 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806096b518,fffffd8060114018,8,ffff80003a52d5b8,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80003c98a7d8,ffff80003a52d700,ffff80003a52d650) at sys_flock+0x291 sys/kern/kern_descrip.c:-1 syscall(ffff80003a52d700) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d700) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x97131ed9180, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014de6a0,0,fffffd8060114018,8,ffff80003a52d5b8,30) at lf_advlock+0x2ee sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd806096b518,fffffd8060114018,8,ffff80003a52d5b8,30) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_flock(ffff80003c98a7d8,ffff80003a52d700,ffff80003a52d650) at sys_flock+0x291 sys/kern/kern_descrip.c:-1 syscall(ffff80003a52d700) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a52d700) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x97131ed9180, count: -5