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(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8078e8c560,fffffd806c213e20,2,ffff80002e0f96d0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 closef(fffffd806a4f4618,ffff80002a787c90) at closef+0x13f sys/kern/kern_descrip.c:-1 syscall(ffff80002e0f97f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002e0f97f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad010629d70, count: -5 ddb> show registers rdi 0xffff800033914000 rsi 0x504 rbp 0xffff80002e0f9620 rbx 0 rdx 0xffff800033914000 rcx 0x503 rax 0xffffffff830a2d31 rw_assert_wrlock+0xa1 r8 0xffffffff82fed160 uvm_map_inentry_sp r9 0 r10 0 r11 0x24a1fe31866a571 r12 0xdeadbeefdeadbeef r13 0x2 r14 0xffff80002e0f96d0 r15 0x1 rip 0xffffffff81884661 lf_advlock+0x2f1 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002e0f9590 ss 0x10 lf_advlock+0x2f1: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=118497 pid=53257 tcnt=3 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7b7768 scnt=2 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003a52da10,0xffff80002a7b6a80 process=0xffff80003c9bd6a0 user=0xffff80002e0f4000, vmspace=0xfffffd806c247180 estcpu=28, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82122 372989 77539 0 2 0xc80 syz-executor 82122 358947 77539 0 3 0x4000080 fsleep syz-executor 82122 272128 77539 0 3 0x4000080 fsleep syz-executor 46344 448373 44972 -1 3 0x3010 suspend syz-executor 46344 333825 44972 -1 3 0x4081010 lockflk syz-executor 46344 509179 44972 -1 3 0x4081010 inode syz-executor 20186 210823 81156 60929 2 0x10 syz-executor 20186 118822 81156 60929 3 0x4000090 fsleep syz-executor 20186 81677 81156 60929 2 0x4000010 syz-executor 11631 261667 35531 0 2 0 syz-executor 11631 174380 35531 0 3 0x4000000 inode syz-executor 11631 16346 35531 0 2 0x4000000 syz-executor 17431 397318 66719 0 2 0 syz-executor 17431 479399 66719 0 3 0x4000000 inode syz-executor 17431 371829 66719 0 3 0x4000080 fsleep syz-executor 17431 432957 66719 0 3 0x4000000 inode syz-executor 17431 266234 66719 0 3 0x4000000 inode syz-executor *53257 118497 4556 0 7 0x4081000 syz-executor 53257 276589 4556 0 3 0x4081000 lockflk syz-executor 53257 369680 4556 0 3 0x4003000 suspend syz-executor 4556 110416 44476 0 3 0x82 wait syz-executor 35531 477425 44476 0 2 0xc82 syz-executor 92072 178223 1 0 3 0x100083 ttyopn getty 77539 27065 44476 0 2 0xc82 syz-executor 50761 221712 0 0 3 0x14200 acct acct 44972 517636 44476 0 2 0xc82 syz-executor 2590 401538 44476 0 2 0x2 syz-executor 1504 328507 44476 0 2 0xc82 syz-executor 81156 491319 44476 0 2 0xc82 syz-executor 66719 116425 44476 0 2 0xc82 syz-executor 44476 30439 77514 0 3 0x82 kqread syz-executor 77514 29203 98619 0 3 0x10008a sigsusp ksh 98619 207265 95142 0 3 0x98 kqread sshd-session 95142 197837 46951 0 3 0x92 kqread sshd-session 46951 391203 1 0 3 0x88 kqread sshd 78177 353782 43359 73 3 0x1100090 kqread syslogd 43359 443543 1 0 3 0x100082 sbwait syslogd 22613 492286 1 0 3 0x100080 kqread resolvd 42516 305643 60166 77 3 0x100092 kqread dhcpleased 60976 157248 60166 77 3 0x100092 kqread dhcpleased 60166 425225 1 0 3 0x80 kqread dhcpleased 58447 323190 0 0 3 0x14200 bored smr 80177 249946 0 0 2 0x14200 zerothread 40983 376667 0 0 3 0x14200 aiodoned aiodoned 69320 67266 0 0 3 0x14200 syncer update 62440 421548 0 0 3 0x14200 cleaner cleaner 51331 92004 0 0 2 0x14200 reaper 93678 524079 0 0 3 0x14200 pgdaemon pagedaemon 42724 115326 0 0 3 0x14200 bored viomb 99318 272783 0 0 3 0x40014200 acpi0 acpi0 32149 376011 0 0 3 0x14200 bored softnet0 18147 193090 0 0 3 0x14200 bored systqmp 98812 313315 0 0 3 0x14200 bored systq 59611 484552 0 0 3 0x40014200 tmoslp softclock 2417 488458 0 0 3 0x40014200 idle0 1 33262 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 10216 11140K 11729K 166960K 17630 0 pcb 17 16K 18K 166960K 978 0 rtable 277 15K 15K 166960K 863 0 pf 37 14K 67482K 166960K 415 0 ifaddr 40 7K 8K 166960K 191 0 ifgroup 58 2K 2K 166960K 371 0 sysctl 4 1K 9K 166960K 24 0 counters 34 18K 18K 166960K 198 0 ioctlops 0 0K 4K 166960K 946 0 iov 0 0K 24K 166960K 394 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1487 93K 94K 166960K 4705 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 42 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 331 0 dirhash 12 2K 2K 166960K 48 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 89K 166960K 2863 0 sigio 0 0K 0K 166960K 53 0 proc 60 59K 91K 166960K 874 0 subproc 72 4K 4K 166960K 109 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 421 0 in_multi 85 6K 7K 166960K 248 0 ether_multi 1 0K 0K 166960K 28 0 mrt 0 0K 0K 166960K 25 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 908 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 7 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 234 152K 182K 166960K 27184 0 UVM aobj 25 30K 30K 166960K 28 0 pinsyscall 37 74K 92K 166960K 4126 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 149 0 NDP 13 0K 2K 166960K 143 0 temp 82 8652K 8724K 166960K 84048 0 kqueue 13 20K 37K 166960K 544 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 401 0 398 3 2 1 3 0 8 0 rtentry 136 239 0 142 4 0 4 4 0 8 0 unpcb 144 2404 0 2387 6 5 1 6 0 8 0 syncache 336 22 0 22 2 1 1 1 0 8 1 tcpqe 32 17 0 17 2 1 1 1 0 8 1 tcpcb 736 1211 0 1204 10 6 4 8 0 8 2 arp 96 39 0 22 1 0 1 1 0 8 0 ipq 40 10 0 10 1 0 1 1 0 8 1 ipqe 40 46 0 46 1 0 1 1 0 8 1 inpcb 328 3408 0 3397 13 9 4 10 0 8 2 ip6q 72 180 0 179 1 0 1 1 0 8 0 ip6af 40 347 0 346 1 0 1 1 0 8 0 nd6 112 40 0 17 1 0 1 1 0 8 0 pkpcb 40 32 0 32 2 1 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1072 128 0 128 2 1 1 1 0 8 1 pppxif 1384 15 0 15 2 1 1 1 0 8 1 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfrktable 1344 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 8 0 2 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 1 1 0 1 1 0 8 0 pfstkey 128 8 0 5 1 0 1 1 0 8 0 pfstate 384 5 0 4 1 0 1 1 0 8 0 pfrule 1344 5 0 5 1 1 0 1 0 8 0 rttmr 136 8 0 8 2 1 1 1 0 8 1 art_heap8 4096 5 0 0 5 0 5 5 0 8 0 art_heap4 256 1130 0 729 36 10 26 31 0 8 0 art_table 40 1135 0 729 6 1 5 5 0 8 0 art_node 32 238 0 152 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 291 0 281 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 41 0 24 3 0 3 3 0 8 0 dino2pl 256 7001 0 5503 95 0 95 95 0 8 0 ffsino 256 7001 0 5503 95 0 95 95 0 8 0 nchpl 144 11004 0 9301 64 0 64 64 0 8 0 rtmask 32 23 0 23 1 1 0 1 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 40888 0 40883 6 2 4 4 0 8 3 vcpupl 3904 15 0 1 2 0 2 2 0 8 0 vmpool 800 16 0 2 2 0 2 2 0 8 0 kstatmem 264 238 0 212 4 1 3 3 0 8 1 scsiplug 72 13 0 13 2 1 1 1 0 8 1 scxspl 216 35760 0 35760 8 7 1 8 1 8 1 plimitpl 152 1139 0 1121 1 0 1 1 0 8 0 sigapl 424 3186 0 3143 8 2 6 8 0 8 0 knotepl 120 132236 0 132189 31 22 9 18 0 8 6 kqueuepl 184 943 0 934 4 2 2 3 0 8 1 pipepl 304 665 0 637 8 5 3 8 0 8 0 fdescpl 448 3147 0 3119 5 1 4 5 0 8 0 filepl 120 24967 0 24742 17 7 10 15 0 8 1 lockfpl 104 1878 0 1875 3 1 2 2 0 8 0 lockfspl 48 703 0 700 1 0 1 1 0 8 0 sessionpl 144 44 0 36 1 0 1 1 0 8 0 pgrppl 48 221 0 205 1 0 1 1 0 8 0 ucredpl 104 3987 0 3974 1 0 1 1 0 8 0 zombiepl 144 3367 0 3365 1 0 1 1 0 8 0 processpl 1152 3186 0 3143 5 0 5 5 0 8 0 procpl 664 7415 0 7357 7 1 6 7 0 8 0 sosppl 176 24 0 24 2 1 1 1 0 8 1 sockpl 552 6329 0 6298 15 10 5 13 0 8 2 mcl64k 65536 837 0 836 1 0 1 1 0 8 0 mcl16k 16384 4 0 4 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 38 0 38 1 1 0 1 0 8 0 mcl8k 8192 62 0 62 4 3 1 3 0 8 1 mcl4k 4096 6218 0 6165 12 4 8 12 0 8 0 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 4742 0 4741 10 8 2 10 0 8 1 mtagpl 96 21 0 18 1 0 1 1 0 8 0 mbufpl 256 40853 0 40741 50 39 11 45 0 8 1 bufpl 280 12261 0 6039 445 0 445 445 0 8 0 anonpl 24 454451 0 450500 71 22 49 57 0 187 14 amapchunkpl 152 97409 0 96901 55 18 37 37 0 158 10 amappl16 200 8251 0 8212 58 46 12 16 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 454 0 453 1 0 1 1 0 8 0 amappl12 168 3561 0 3524 2 0 2 2 0 8 0 amappl11 160 15 0 15 1 1 0 1 0 8 0 amappl10 152 66 0 56 1 0 1 1 0 8 0 amappl9 144 257 0 257 1 1 0 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 94 0 92 1 0 1 1 0 8 0 amappl6 120 332 0 320 1 0 1 1 0 8 0 amappl5 112 91 0 83 1 0 1 1 0 8 0 amappl4 104 484 0 460 1 0 1 1 0 8 0 amappl3 96 16542 0 16455 3 0 3 3 0 8 0 amappl2 88 3389 0 3317 2 0 2 2 0 8 0 amappl1 80 24455 0 23923 15 0 15 15 0 8 0 amappl 88 25818 0 25653 5 0 5 5 0 92 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 2 0 2 1 1 0 1 0 8 0 dma256 256 8 0 8 1 1 0 1 0 8 0 dma128 128 256 0 256 2 1 1 1 0 8 1 dma64 64 7 0 7 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 27 0 3 1 0 1 1 0 8 0 uaddrrnd 24 3147 0 3119 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3147 0 3119 1 0 1 1 0 8 0 vmmpekpl 168 26150 0 26092 3 0 3 3 0 8 0 vmmpepl 168 202785 0 201006 104 12 92 98 0 357 6 vmsppl 368 3146 0 3118 4 1 3 4 0 8 0 rwobjpl 40 56738 0 49924 73 0 73 73 0 8 0 pdppl 4096 6333 0 6254 149 66 83 84 0 8 4 pvpl 32 1334656 0 1325332 160 39 121 135 0 265 29 pmappl 216 3162 0 3120 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 494 0 146 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8078e8c560,fffffd806c213e20,2,ffff80002e0f96d0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 closef(fffffd806a4f4618,ffff80002a787c90) at closef+0x13f sys/kern/kern_descrip.c:-1 syscall(ffff80002e0f97f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002e0f97f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad010629d70, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff8000014746a0,0,fffffd806c213e20,2,ffff80002e0f96d0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd8078e8c560,fffffd806c213e20,2,ffff80002e0f96d0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 closef(fffffd806a4f4618,ffff80002a787c90) at closef+0x13f sys/kern/kern_descrip.c:-1 syscall(ffff80002e0f97f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002e0f97f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad010629d70, count: -5