kernel: protection fault trap, code=0 Stopped at lf_advlock+0x223: addl $0x1,0x28(%rbx) ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace lf_advlock(ffff800000bf55a0,0,fffffd80671625e0,2,ffff80002ab3aa60,40) at lf_advlock+0x223 ls_ref sys/kern/vfs_lockf.c:140 [inline] lf_advlock(ffff800000bf55a0,0,fffffd80671625e0,2,ffff80002ab3aa60,40) at lf_advlock+0x223 sys/kern/vfs_lockf.c:280 VOP_ADVLOCK(fffffd80722cada0,fffffd80671625e0,2,ffff80002ab3aa60,40) at VOP_ADVLOCK+0x71 sys/kern/vfs_vops.c:628 closef(fffffd806950d4c8,ffff8000fffef7a0) at closef+0xe5 syscall(ffff80002ab3ab90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002ab3ab90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x330079f7060, count: -5 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002ab3a9b0 rbx 0xdeafbeaddeafbead rdx 0 rcx 0x5 rax 0xffff8000fffef7a0 r8 0xffff80002ab3aa60 r9 0x40 r10 0 r11 0x9b1b61f580bcf69c r12 0xffff800000bf55a0 r13 0x2 r14 0xffff80002ab3aa60 r15 0 rip 0xffffffff8222c083 lf_advlock+0x223 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002ab3a910 ss 0x10 lf_advlock+0x223: addl $0x1,0x28(%rbx) ddb{0}> show proc PROC (syz-executor.0) pid=350474 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=66, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffef500,0xffffffff82ab0ee0 process=0xffff8000fffea9a8 user=0xffff80002ab35000, vmspace=0xfffffd8079608b98 estcpu=32, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98908 241677 40874 32767 2 0x10 syz-executor.2 33782 517741 71931 32767 2 0x10 syz-executor.0 33782 292098 71931 32767 3 0x4000010 lockflk syz-executor.0 *33782 350474 71931 32767 7 0x4000010 syz-executor.0 71755 396416 54371 32767 7 0x10 syz-executor.1 71755 248488 54371 32767 3 0x4000090 lockf syz-executor.1 70777 341900 0 0 3 0x14200 bored sosplice 18639 480358 32569 32767 3 0x90 wait syz-executor.7 44250 179201 63476 32767 3 0x10 biowait syz-executor.4 11305 210732 86627 32767 3 0x90 nanoslp syz-executor.6 32569 179945 68866 0 3 0x82 wait syz-executor.7 41494 216551 28384 32767 3 0x90 piperd syz-executor.5 86627 25512 68866 0 3 0x82 wait syz-executor.6 63476 243153 68866 0 3 0x82 wait syz-executor.4 7270 522156 44199 32767 2 0x10 syz-executor.3 28384 24564 68866 0 3 0x82 wait syz-executor.5 40874 469692 66043 32767 3 0x90 nanoslp syz-executor.2 44199 429193 68866 0 3 0x82 wait syz-executor.3 54371 438013 88662 32767 3 0x90 nanoslp syz-executor.1 66043 145283 68866 0 3 0x82 wait syz-executor.2 88662 294064 68866 0 3 0x82 wait syz-executor.1 71931 315912 12700 32767 3 0x90 nanoslp syz-executor.0 12700 61888 68866 0 3 0x82 wait syz-executor.0 68866 361285 39983 0 3 0x82 thrsleep syz-fuzzer 68866 337683 39983 0 3 0x4000082 nanoslp syz-fuzzer 68866 19959 39983 0 3 0x4000082 thrsleep syz-fuzzer 68866 98647 39983 0 3 0x4000082 thrsleep syz-fuzzer 68866 344807 39983 0 3 0x4000082 thrsleep syz-fuzzer 68866 172690 39983 0 3 0x4000082 thrsleep syz-fuzzer 68866 285898 39983 0 3 0x4000082 thrsleep syz-fuzzer 68866 56341 39983 0 3 0x4000082 kqread syz-fuzzer 68866 25407 39983 0 3 0x4000082 thrsleep syz-fuzzer 39983 336162 48132 0 3 0x10008a sigsusp ksh 48132 432099 70600 0 3 0x9a kqread sshd 82270 127866 1 0 3 0x100083 ttyin getty 70600 376519 1 0 3 0x88 kqread sshd 6087 174937 25431 73 3 0x1100090 kqread syslogd 25431 267547 1 0 3 0x100082 netio syslogd 90657 418381 1 0 3 0x100080 kqread resolvd 94525 241794 97819 77 3 0x100092 kqread dhcpleased 8864 109526 97819 77 3 0x100092 kqread dhcpleased 97819 166631 1 0 3 0x80 kqread dhcpleased 92066 239033 0 0 3 0x14200 bored smr 53396 78616 0 0 2 0x14200 zerothread 54648 384940 0 0 3 0x14200 aiodoned aiodoned 54645 35911 0 0 3 0x14200 syncer update 66067 67153 0 0 3 0x14200 cleaner cleaner 5711 415596 0 0 3 0x14200 reaper reaper 8433 298701 0 0 3 0x14200 pgdaemon pagedaemon 98042 147003 0 0 3 0x14200 bored viomb 21307 457441 0 0 3 0x40014200 acpi0 acpi0 55779 129969 0 0 3 0x40014200 idle1 42454 326109 0 0 3 0x14200 bored softnet 76469 3065 0 0 3 0x14200 bored softnet 14837 88329 0 0 3 0x14200 bored softnet 74715 362407 0 0 3 0x14200 bored softnet 26710 453151 0 0 3 0x14200 bored systqmp 46740 423453 0 0 3 0x14200 bored systq 48968 193468 0 0 3 0x40014200 bored softclock 7057 60006 0 0 3 0x40014200 idle0 1 201129 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33782 (syz-executor.0) thread 0xffff8000fffef7a0 (350474) exclusive rwlock lockflk r = 0 (0xffffffff829c22c0) #0 witness_lock+0x44d #1 lf_advlock+0x195 sys/kern/vfs_lockf.c:262 #2 VOP_ADVLOCK+0x71 sys/kern/vfs_vops.c:628 #3 closef+0xe5 #4 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #5 Xsyscall+0x128 Process 44250 (syz-executor.4) thread 0xffff8000fffeda48 (179201) exclusive rrwlock inode r = 0 (0xfffffd806ac24e78) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 ufs_ihashins+0x42 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1347 #6 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #8 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 #9 domkdirat+0x121 sys/kern/vfs_syscalls.c:3116 #10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80662d41b0) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3101 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 Process 7270 (syz-executor.3) thread 0xffff8000fffed508 (522156) exclusive rrwlock inode r = 0 (0xfffffd806ac243d8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vget+0x1d3 sys/kern/vfs_subr.c:678 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318 #8 ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561 #11 namei+0x36a sys/kern/vfs_lookup.c:245 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1852 #13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806cb93098) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1852 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10180 6408K 6420K 78643K 11270 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 348 0 ifaddr 81 16K 16K 78643K 82 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 2K 78643K 33 0 iov 0 0K 12K 78643K 15 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1271 79K 79K 78643K 1308 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 49 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 121K 78643K 342 0 proc 56 78K 103K 78643K 451 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 2K 78643K 646 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 215 78K 82K 78643K 3524 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 14 0 NDP 11 0K 2K 78643K 27 0 temp 123 4730K 4794K 78643K 3959 0 kqueue 12 18K 22K 78643K 35 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 35 0 32 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 136 126 0 113 1 0 1 1 0 8 0 syncache 296 5 0 5 2 2 0 1 0 8 0 tcpqe 32 372 0 372 1 1 0 1 0 8 0 tcpcb 736 33 0 27 2 1 1 2 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 312 128 0 119 4 3 1 4 0 8 0 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 176 0 174 1 0 1 1 0 8 0 semapl 112 47 0 37 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1732 0 301 90 0 90 90 0 8 0 ffsino 272 1732 0 301 96 0 96 96 0 8 0 nchpl 144 2283 0 607 63 0 63 63 0 8 0 uvmvnodes 80 1845 0 0 38 0 38 38 0 8 0 vnodes 224 1845 0 0 109 0 109 109 0 8 0 namei 1024 8145 0 8144 2 1 1 2 0 8 0 percpumem 16 40 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 6922 0 6921 9 8 1 8 0 8 0 plimitpl 152 57 0 35 1 0 1 1 0 8 0 sigapl 424 620 0 568 7 0 7 7 0 8 0 futexpl 64 2015 0 2015 1 0 1 1 0 8 1 knotepl 120 108 0 0 5 1 4 5 0 8 0 kqueuepl 216 109 0 101 5 4 1 5 0 8 0 pipepl 336 141 0 113 3 0 3 3 0 8 0 fdescpl 496 602 0 568 7 2 5 6 0 8 0 filepl 152 3137 0 2891 12 2 10 12 0 8 0 lockfpl 104 195 0 190 1 0 1 1 0 8 0 lockfspl 48 49 0 45 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 7 1 0 1 1 0 8 0 ucredpl 96 463 0 445 1 0 1 1 0 8 0 zombiepl 144 570 0 568 1 0 1 1 0 8 0 processpl 1064 620 0 568 5 1 4 5 0 8 0 procpl 672 1100 0 1037 7 0 7 7 0 8 0 sosppl 168 1 0 0 1 0 1 1 0 8 0 sockpl 480 290 0 265 8 3 5 7 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 336 0 0 21 0 21 21 0 8 0 bufpl 288 3822 0 136 264 0 264 264 0 8 0 anonpl 24 95136 0 83781 77 3 74 74 0 186 1 amapchunkpl 152 8599 0 8038 27 1 26 26 0 158 0 amappl16 200 1040 0 717 18 0 18 18 0 8 0 amappl15 192 2 0 1 2 1 1 1 0 8 0 amappl14 184 64 0 56 1 0 1 1 0 8 0 amappl13 176 115 0 111 1 0 1 1 0 8 0 amappl12 168 5 0 4 1 0 1 1 0 8 0 amappl11 160 79 0 64 1 0 1 1 0 8 0 amappl10 152 53 0 47 1 0 1 1 0 8 0 amappl9 144 543 0 537 1 0 1 1 0 8 0 amappl8 136 655 0 607 2 0 2 2 0 8 0 amappl7 128 196 0 178 1 0 1 1 0 8 0 amappl6 120 236 0 218 2 1 1 2 0 8 0 amappl5 112 290 0 269 1 0 1 1 0 8 0 amappl4 104 773 0 751 2 1 1 2 0 8 0 amappl3 96 1144 0 1090 2 0 2 2 0 8 0 amappl2 88 889 0 820 3 1 2 3 0 8 0 amappl1 80 15970 0 15280 19 3 16 19 0 8 0 amappl 88 3101 0 2947 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 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 602 0 568 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 602 0 568 1 0 1 1 0 8 0 vmmpekpl 168 9431 0 9376 3 0 3 3 0 8 0 vmmpepl 168 59941 0 57412 126 2 124 124 0 357 4 vmsppl 368 601 0 568 4 0 4 4 0 8 0 rwobjpl 56 17419 0 14310 45 0 45 45 0 8 0 pdppl 4096 1211 0 1136 117 36 81 93 0 8 6 pvpl 32 309040 0 292645 252 21 231 252 0 265 92 pmappl 248 601 0 568 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 664 0 43 18 0 18 18 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace lf_advlock(ffff800000bf55a0,0,fffffd80671625e0,2,ffff80002ab3aa60,40) at lf_advlock+0x223 ls_ref sys/kern/vfs_lockf.c:140 [inline] lf_advlock(ffff800000bf55a0,0,fffffd80671625e0,2,ffff80002ab3aa60,40) at lf_advlock+0x223 sys/kern/vfs_lockf.c:280 VOP_ADVLOCK(fffffd80722cada0,fffffd80671625e0,2,ffff80002ab3aa60,40) at VOP_ADVLOCK+0x71 sys/kern/vfs_vops.c:628 closef(fffffd806950d4c8,ffff8000fffef7a0) at closef+0xe5 syscall(ffff80002ab3ab90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002ab3ab90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x330079f7060, count: -5 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020cd8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_switch(5,ffffffff829c5f40) at __sanitizer_cov_trace_switch+0x22 kd_curproc sys/dev/kcov.c:577 [inline] __sanitizer_cov_trace_switch(5,ffffffff829c5f40) at __sanitizer_cov_trace_switch+0x22 sys/dev/kcov.c:241 syscall(ffff80002ab40820) at syscall+0x166 sys/arch/amd64/amd64/trap.c:557 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9780, count: -6