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(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805ffe23a0,fffffd806df42010,8,ffff80003c8f9ce0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_fcntl(ffff80003c90ad18,ffff80003c8f9e30,ffff80003c8f9d80) at sys_fcntl+0x13e5 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 syscall(ffff80003c8f9e30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f9e30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9358b4ad110, count: -5 ddb> show registers rdi 0xffff80002acb6000 rsi 0xad rbp 0xffff80003c8f9c00 rbx 0 rdx 0xffff80002acb6000 rcx 0xac rax 0xffffffff82988c61 rw_assert_wrlock+0xa1 r8 0xa0 r9 0 r10 0x38d5bbe72ea272ea r11 0x33c0158652bf5557 r12 0xdeadbeefdeadbeef r13 0x8 r14 0xffff80003c8f9ce0 r15 0x1 rip 0xffffffff813e5551 lf_advlock+0x2f1 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c8f9b70 ss 0x10 lf_advlock+0x2f1: incl 0x28(%r12) ddb> show proc PROC (syz-executor) tid=217077 pid=32369 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=0xffff80002a747c90,0xffff80003c90b788 process=0xffff8000ffff5220 user=0xffff80003c8f4000, vmspace=0xfffffd806cd1be70 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56816 364482 57227 0 2 0 syz-executor 56816 364236 57227 0 2 0x4000000 syz-executor 56816 124911 57227 0 3 0x4000080 fsleep syz-executor 10256 449331 75496 0 2 0 syz-executor 10256 30793 75496 0 3 0x4000080 fsleep syz-executor 10256 200942 75496 0 3 0x4000080 fsleep syz-executor 79433 250426 18585 0 2 0 syz-executor 79433 340888 18585 0 3 0x4000080 fsleep syz-executor 32369 263694 27701 0 2 0 syz-executor *32369 217077 27701 0 7 0x4000000 syz-executor 42484 505317 4239 0 2 0x2044 syz-executor 4239 180207 30055 0 3 0x82 ppwait syz-executor 82748 139790 0 0 3 0x14280 nfsidl nfsio 26213 233057 0 0 3 0x14280 nfsidl nfsio 54847 445193 0 0 3 0x14280 nfsidl nfsio 63463 104827 0 0 3 0x14280 nfsidl nfsio 28088 224009 0 0 3 0x14280 nfsidl nfsio 43622 220134 0 0 3 0x14280 nfsidl nfsio 65357 497044 0 0 3 0x14280 nfsidl nfsio 6641 453066 0 0 3 0x14280 nfsidl nfsio 51750 313535 0 0 3 0x14280 nfsidl nfsio 40882 7707 0 0 3 0x14280 nfsidl nfsio 17533 151987 0 0 3 0x14280 nfsidl nfsio 45676 125768 0 0 3 0x14280 nfsidl nfsio 75448 205686 0 0 3 0x14280 nfsidl nfsio 40281 71610 0 0 3 0x14280 nfsidl nfsio 24542 321341 0 0 3 0x14280 nfsidl nfsio 67939 227124 0 0 3 0x14280 nfsidl nfsio 14471 126016 0 0 3 0x14280 nfsidl nfsio 13665 456027 0 0 3 0x14280 nfsidl nfsio 85325 369124 0 0 3 0x14280 nfsidl nfsio 51683 236927 0 0 3 0x14280 nfsidl nfsio 57227 252905 30055 0 2 0xc82 syz-executor 80446 161527 30055 0 2 0x2 syz-executor 18585 371969 30055 0 3 0x82 nanoslp syz-executor 61549 277407 30055 0 2 0xc82 syz-executor 96376 219347 30055 0 2 0x2 syz-executor 27701 114704 30055 0 3 0x82 nanoslp syz-executor 75496 439706 30055 0 3 0x82 nanoslp syz-executor 30055 396801 97666 0 3 0x82 kqread syz-executor 97666 57463 46950 0 3 0x10008a sigsusp ksh 46950 332548 22485 0 3 0x98 kqread sshd-session 22485 68985 56255 0 3 0x92 kqread sshd-session 42008 38723 1 0 3 0x100083 ttyin getty 56255 85660 1 0 3 0x88 kqread sshd 83362 51150 22065 73 3 0x1100090 kqread syslogd 22065 478431 1 0 3 0x100082 sbwait syslogd 10371 261475 1 0 3 0x100080 kqread resolvd 79690 268481 90170 77 3 0x100092 kqread dhcpleased 66127 124702 90170 77 3 0x100092 kqread dhcpleased 90170 99726 1 0 3 0x80 kqread dhcpleased 73372 300806 0 0 3 0x14200 bored smr 25674 420024 0 0 2 0x14200 zerothread 72175 421575 0 0 3 0x14200 aiodoned aiodoned 73482 448744 0 0 3 0x14200 syncer update 31445 496988 0 0 3 0x14200 cleaner cleaner 92740 165052 0 0 3 0x14200 reaper reaper 49571 38947 0 0 3 0x14200 pgdaemon pagedaemon 44699 229504 0 0 3 0x14200 bored viomb 72774 202959 0 0 3 0x40014200 acpi0 acpi0 67671 508269 0 0 3 0x14200 bored softnet0 65055 357352 0 0 3 0x14200 bored systqmp 11981 475357 0 0 3 0x14200 bored systq 46575 236053 0 0 3 0x40014200 tmoslp softclock 61898 183568 0 0 3 0x40014200 idle0 1 500459 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 11036 12106K 13303K 166960K 13926 0 pcb 17 17K 20K 166960K 305 0 rtable 184 9K 9K 166960K 446 0 pf 26 12K 13K 166960K 78 0 ifaddr 34 6K 8K 166960K 78 0 ifgroup 42 1K 2K 166960K 108 0 sysctl 3 1K 9K 166960K 18 0 counters 31 17K 18K 166960K 130 0 ioctlops 0 0K 4K 166960K 343 0 iov 0 0K 16K 166960K 42 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1406 88K 89K 166960K 2244 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 22 20K 20K 166960K 45 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 97K 166960K 925 0 sigio 0 0K 0K 166960K 11 0 proc 60 59K 124K 166960K 594 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 69 0 in_multi 78 5K 7K 166960K 130 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 25 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 1 0K 1K 166960K 533 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 211 151K 172K 166960K 10211 0 UVM aobj 34 8K 10K 166960K 38 0 pinsyscall 37 74K 96K 166960K 2046 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 27 0 NDP 9 0K 2K 166960K 49 0 temp 70 9075K 9140K 166960K 42607 0 kqueue 13 20K 30K 166960K 170 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 87 0 84 1 0 1 1 0 8 0 rtentry 136 129 0 56 4 0 4 4 0 8 0 unpcb 144 536 0 519 4 2 2 3 0 8 1 syncache 336 7 0 7 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 394 0 389 13 6 7 7 0 8 6 arp 96 20 0 8 1 0 1 1 0 8 0 ipq 40 6 0 3 1 0 1 1 0 8 0 ipqe 40 10 0 7 1 0 1 1 0 8 0 inpcb 328 997 0 988 22 15 7 17 0 8 5 ip6q 72 3 0 0 1 0 1 1 0 8 0 ip6af 40 3 0 0 1 0 1 1 0 8 0 nd6 112 26 0 7 1 0 1 1 0 8 0 pkpcb 40 7 0 7 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 91 0 91 2 1 1 1 0 8 1 pppxif 1384 3 0 3 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 602 0 254 33 2 31 33 0 8 8 art_table 40 603 0 254 6 0 6 6 0 8 0 art_node 32 129 0 65 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 4 1 0 1 1 0 8 0 semupl 112 4 0 4 2 1 1 1 0 8 1 semapl 112 37 0 17 1 0 1 1 0 8 0 shmpl 112 31 0 3 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3139 0 1700 92 0 92 92 0 8 0 ffsino 256 3139 0 1700 92 0 92 92 0 8 0 nchpl 144 4506 0 2817 64 0 64 64 0 8 0 rtmask 32 5 0 5 2 1 1 1 0 8 1 vnodes 216 3747 0 0 209 0 209 209 0 8 0 namei 1024 15170 0 15167 5 2 3 3 0 8 2 vcpupl 3904 4 0 1 1 0 1 1 0 8 0 vmpool 808 4 0 1 1 0 1 1 0 8 0 kstatmem 264 64 0 46 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 16956 0 16956 9 7 2 8 1 8 2 plimitpl 152 266 0 249 1 0 1 1 0 8 0 sigapl 424 1243 0 1182 8 0 8 8 0 8 0 knotepl 120 42030 0 41983 39 29 10 19 0 8 7 kqueuepl 184 318 0 309 1 0 1 1 0 8 0 pipepl 304 207 0 180 5 0 5 5 0 8 2 fdescpl 448 1208 0 1180 5 1 4 5 0 8 0 filepl 120 7296 0 7083 19 9 10 17 0 8 2 lockfpl 104 351 0 349 1 0 1 1 0 8 0 lockfspl 48 159 0 157 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 1205 0 1194 1 0 1 1 0 8 0 zombiepl 144 1615 0 1614 1 0 1 1 0 8 0 processpl 1152 1243 0 1182 5 0 5 5 0 8 0 procpl 664 2603 0 2536 8 0 8 8 0 8 1 sockpl 552 1764 0 1735 21 14 7 17 0 8 4 mcl64k 65536 41 0 41 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 3564 0 3509 13 5 8 13 0 8 0 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 1073 0 1070 1 0 1 1 0 8 0 mtagpl 96 54 0 8 2 0 2 2 0 8 0 mbufpl 256 12310 0 12146 25 5 20 20 0 8 5 bufpl 280 5562 0 113 390 0 390 390 0 8 0 anonpl 24 205029 0 201866 55 10 45 45 0 187 15 amapchunkpl 152 34902 0 34466 41 10 31 31 0 158 9 amappl16 200 3539 0 3507 17 5 12 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 409 0 408 1 0 1 1 0 8 0 amappl13 176 124 0 114 1 0 1 1 0 8 0 amappl12 168 1469 0 1443 2 0 2 2 0 8 0 amappl11 160 10 0 10 1 1 0 1 0 8 0 amappl10 152 56 0 46 1 0 1 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 117 0 115 1 0 1 1 0 8 0 amappl7 128 152 0 140 1 0 1 1 0 8 0 amappl6 120 153 0 152 1 0 1 1 0 8 0 amappl5 112 103 0 94 1 0 1 1 0 8 0 amappl4 104 283 0 268 1 0 1 1 0 8 0 amappl3 96 6814 0 6715 4 0 4 4 0 8 0 amappl2 88 642 0 589 2 0 2 2 0 8 0 amappl1 80 14153 0 13612 17 0 17 17 0 8 4 amappl 88 9316 0 9168 5 0 5 5 0 92 0 uvmvnodes 80 140 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 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 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 37 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1208 0 1180 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1208 0 1180 1 0 1 1 0 8 0 vmmpekpl 168 11853 0 11811 3 0 3 3 0 8 0 vmmpepl 168 85088 0 83369 96 0 96 96 0 357 14 vmsppl 368 1207 0 1180 4 1 3 4 0 8 0 rwobjpl 40 25256 0 24244 13 0 13 13 0 8 0 pdppl 4096 2430 0 2365 107 38 69 82 0 8 4 pvpl 32 570335 0 561928 140 14 126 126 0 265 36 pmappl 216 1211 0 1181 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 404 0 65 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace lf_advlock(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805ffe23a0,fffffd806df42010,8,ffff80003c8f9ce0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_fcntl(ffff80003c90ad18,ffff80003c8f9e30,ffff80003c8f9d80) at sys_fcntl+0x13e5 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 syscall(ffff80003c8f9e30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f9e30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9358b4ad110, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace lf_advlock(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 ls_ref sys/kern/vfs_lockf.c:138 [inline] lf_advlock(ffff800001624060,0,fffffd806df42010,8,ffff80003c8f9ce0,40) at lf_advlock+0x2f1 sys/kern/vfs_lockf.c:278 VOP_ADVLOCK(fffffd805ffe23a0,fffffd806df42010,8,ffff80003c8f9ce0,40) at VOP_ADVLOCK+0x87 sys/kern/vfs_vops.c:623 sys_fcntl(ffff80003c90ad18,ffff80003c8f9e30,ffff80003c8f9d80) at sys_fcntl+0x13e5 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 syscall(ffff80003c8f9e30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8f9e30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9358b4ad110, count: -5