witness: lock_object uninitialized: 0xffff800001407028 Starting stack trace... witness_checkorder(ffff800001407028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001407028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001407018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001407000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6d68) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff80003659e060,ffff80003659dfb0) at sys_exit+0x1a syscall(ffff80003659e060) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003659e060) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7daeb5426c60, count: 249 End of stack trace. Stopped at db_enter+0x25: addq $0x8,%rsp ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff800001407028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001407018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001407000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6d68) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff80003659e060,ffff80003659dfb0) at sys_exit+0x1a syscall(ffff80003659e060) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003659e060) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7daeb5426c60, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003659dd30 rbx 0 rdx 0 rcx 0xffff8000ffff22a8 rax 0xffffffff8349fff0 cpu_info_full_primary+0x1ff0 r8 0xffff80003659dcd0 r9 0x8080808080808080 r10 0x501fd9ba07a56a80 r11 0xb9cfcc97672e6d94 r12 0 r13 0x1 r14 0xffff800001407028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003659dd20 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=192386 pid=56005 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff22a8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff2530,0xffff800032d83988 process=0xffff8000ffff6d68 user=0xffff800036599000, vmspace=0xfffffd806bf1f8e0 estcpu=35, cpticks=15, pctcpu=0.2, user=0, sys=9, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 69491 336304 29521 0 2 0 syz-executor 58842 175921 30009 0 2 0 syz-executor 58842 34877 30009 0 3 0x4000080 fsleep syz-executor 58842 521711 30009 0 2 0x4000000 syz-executor 44074 140084 46325 0 2 0x10 syz-executor 44074 55356 46325 0 7 0x4000010 syz-executor 44074 516151 46325 0 3 0x4000090 fsleep syz-executor 39777 291223 70062 0 2 0x480 syz-executor 39777 416540 70062 0 3 0x4000080 kqsel syz-executor 39777 347804 70062 0 3 0x4000080 sbwait syz-executor 39777 457944 70062 0 3 0x4000080 fsleep syz-executor 94929 416204 36718 0 2 0x2 syz-executor 64886 452497 1 0 3 0x80 nanoslp init 10651 229606 0 0 3 0x14200 bored sosplice 73129 438948 1173 0 3 0x100082 sbwait arp 1173 325085 23797 0 3 0x10008a sigsusp sh 30009 313482 36718 0 2 0x482 syz-executor 73838 87013 36718 0 2 0x482 syz-executor 46325 193197 36718 0 2 0x482 syz-executor 23797 28310 36718 0 3 0x82 wait syz-executor 29521 231345 36718 0 2 0x482 syz-executor 70062 312197 36718 0 2 0x482 syz-executor 26959 403453 36718 0 2 0x482 syz-executor 36718 41997 63847 0 3 0x82 kqread syz-executor 63847 118272 56199 0 3 0x10008a sigsusp ksh 56199 297966 81466 0 3 0x98 kqread sshd-session 81466 444493 8872 0 3 0x92 kqread sshd-session 8872 102885 1 0 3 0x88 kqread sshd 5677 309669 85211 74 3 0x1100092 bpf pflogd 85211 263294 1 0 3 0x80 sbwait pflogd 56655 342219 31913 73 2 0x1100090 syslogd 31913 63141 1 0 3 0x100082 sbwait syslogd 75644 210377 1 0 3 0x100080 kqread resolvd 39687 301824 52980 77 3 0x100092 kqread dhcpleased 6204 326261 52980 77 3 0x100092 kqread dhcpleased 52980 89409 1 0 3 0x80 kqread dhcpleased 32244 91736 0 0 2 0x14200 smr 80859 69487 0 0 2 0x14200 zerothread 66668 382451 0 0 3 0x14200 aiodoned aiodoned 52475 510633 0 0 2 0x14600 update 44227 510075 0 0 3 0x14200 cleaner cleaner 51494 200454 0 0 2 0x14200 reaper 50662 151359 0 0 3 0x14200 pgdaemon pagedaemon 99531 280643 0 0 3 0x14200 bored viomb 81771 105939 0 0 3 0x40014200 acpi0 acpi0 93336 126207 0 0 3 0x40014200 idle1 20908 166558 0 0 3 0x14200 bored softnet3 63385 440910 0 0 3 0x14200 bored softnet2 8252 11202 0 0 3 0x14200 bored softnet1 21671 266009 0 0 2 0x14200 softnet0 27070 353669 0 0 3 0x14200 bored systqmp 98766 125046 0 0 3 0x14200 bored systq 29619 380584 0 0 2 0x14200 softclockmp 62984 400719 0 0 2 0x40014200 softclock 86367 238560 0 0 3 0x40014200 idle0 1 219733 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 58842 (syz-executor) thread 0xffff800032d831e0 (521711) exclusive rwlock vmmaplk r = 0 (0xfffffd806bf1f2d8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1813 #3 uvm_fault_check+0x831 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #3 uvm_fault_check+0x831 sys/uvm/uvm_fault.c:712 #4 uvm_fault+0xf5 sys/uvm/uvm_fault.c:600 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 Process 94929 (syz-executor) thread 0xffff800032d82538 (416204) exclusive rrwlock inode r = 0 (0xfffffd80778bf918) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:169 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3099 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806bcf6c50) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3084 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10204 11202K 11937K 166960K 13017 0 pcb 17 14K 15K 166960K 204 0 rtable 168 5K 7K 166960K 479 0 pf 37 18K 21K 166960K 116 0 ifaddr 36 5K 7K 166960K 72 0 ifgroup 56 2K 2K 166960K 122 0 sysctl 3 0K 0K 166960K 3 0 counters 64 36K 36K 166960K 100 0 ioctlops 0 0K 4K 166960K 1629 0 iov 0 0K 28K 166960K 172 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1481 93K 94K 166960K 2426 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 80 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 1226 0 sigio 0 0K 0K 166960K 19 0 proc 67 103K 115K 166960K 653 0 subproc 104 6K 6K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 152 0 in_multi 73 5K 6K 166960K 126 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 1 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 599 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 244 73K 89K 166960K 13282 0 UVM aobj 70 7K 7K 166960K 72 0 pinsyscall 43 86K 106K 166960K 2347 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 69 0 NDP 12 0K 1K 166960K 46 0 temp 73 6826K 6914K 166960K 25684 0 kqueue 13 20K 26K 166960K 182 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 145 0 141 2 1 1 2 0 8 0 rtentry 112 151 0 76 3 0 3 3 0 8 0 unpcb 144 880 0 862 8 6 2 6 0 8 1 syncache 336 6 0 6 3 3 0 1 0 8 0 tcpcb 808 479 0 472 14 7 7 8 0 8 6 arp 120 28 0 13 1 0 1 1 0 8 0 inpcb 336 1481 0 1467 19 12 7 7 0 8 5 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 136 26 0 9 1 0 1 1 0 8 0 pkpcb 40 7 0 7 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1168 7 0 7 4 3 1 1 0 8 1 pffrag 232 6 0 1 1 0 1 1 0 482 0 pffrnode 88 6 0 1 1 0 1 1 0 8 0 pffrent 40 13 0 8 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 74 0 20 1 0 1 1 0 8 0 pfstkey 128 75 0 21 2 0 2 2 0 8 0 pfstate 376 74 0 21 6 0 6 6 0 8 0 pfrule 1344 24 0 18 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 582 0 245 27 1 26 27 0 8 1 art_table 32 585 0 245 4 0 4 4 0 8 0 art_node 16 147 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 13 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 77 0 67 1 0 1 1 0 8 0 shmpl 112 69 0 2 2 0 2 2 0 8 0 dirhash 1024 33 0 16 3 0 3 3 0 8 0 dino2pl 256 3558 0 2062 95 0 95 95 0 8 0 ffsino 272 3558 0 2062 101 0 101 101 0 8 0 nchpl 144 5256 0 3565 63 0 63 63 0 8 0 uvmvnodes 80 4355 0 0 89 0 89 89 0 8 0 vnodes 216 4355 0 0 242 0 242 242 0 8 0 namei 1024 18556 0 18554 2 1 1 2 0 8 0 percpumem 16 64 0 18 1 0 1 1 0 8 0 kstatmem 264 60 0 36 2 0 2 2 0 8 0 scsiplug 72 5 0 5 2 2 0 1 0 8 0 scxspl 216 15632 0 15632 11 10 1 8 1 8 1 plimitpl 152 263 0 247 1 0 1 1 0 8 0 sigapl 424 1533 0 1482 7 1 6 7 0 8 0 futexpl 64 16845 0 16842 1 0 1 1 0 8 0 knotepl 120 313 0 0 10 0 10 10 0 8 0 kqueuepl 216 407 0 396 7 3 4 5 0 8 3 pipepl 320 244 0 217 3 0 3 3 0 8 0 fdescpl 496 1514 0 1483 6 1 5 6 0 8 0 filepl 152 9599 0 9347 24 11 13 18 0 8 3 lockfpl 104 448 0 445 2 1 1 2 0 8 0 lockfspl 48 127 0 124 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 49 0 33 1 0 1 1 0 8 0 ucredpl 104 1316 0 1300 1 0 1 1 0 8 0 zombiepl 144 1697 0 1695 2 1 1 1 0 8 0 processpl 1160 1533 0 1482 5 0 5 5 0 8 0 procpl 648 3430 0 3371 7 1 6 7 0 8 0 srpgc 96 4 0 4 2 1 1 1 0 8 1 sosppl 168 6 0 6 4 4 0 1 0 8 0 sockpl 664 2531 0 2495 35 26 9 19 0 8 5 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 165 0 0 21 0 21 21 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 25 0 0 1 0 1 1 0 8 0 mbufpl 256 266 0 0 17 0 17 17 0 8 0 bufpl 280 4044 0 113 281 0 281 281 0 8 0 anonpl 24 283857 0 278747 159 64 95 95 0 185 47 amapchunkpl 152 44177 0 43600 56 29 27 38 0 158 1 amappl16 200 7691 0 7639 80 48 32 37 0 8 25 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 118 0 106 1 0 1 1 0 8 0 amappl13 176 14 0 14 2 2 0 1 0 8 0 amappl12 168 2180 0 2148 4 1 3 3 0 8 0 amappl11 160 56 0 42 1 0 1 1 0 8 0 amappl10 152 23 0 23 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 41 0 38 1 0 1 1 0 8 0 amappl7 128 107 0 95 1 0 1 1 0 8 0 amappl6 120 181 0 177 1 0 1 1 0 8 0 amappl5 112 141 0 128 1 0 1 1 0 8 0 amappl4 104 334 0 313 1 0 1 1 0 8 0 amappl3 96 8132 0 8033 3 0 3 3 0 8 0 amappl2 88 1813 0 1729 3 0 3 3 0 8 0 amappl1 80 11386 0 10828 15 1 14 14 0 8 0 amappl 88 12819 0 12636 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 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 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 71 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1514 0 1482 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1514 0 1482 1 0 1 1 0 8 0 vmmpekpl 168 13372 0 13327 3 0 3 3 0 8 0 vmmpepl 168 101666 0 99771 133 20 113 113 0 357 16 vmsppl 448 1513 0 1482 6 1 5 5 0 8 0 rwobjpl 56 34723 0 29328 89 4 85 85 0 8 0 pdppl 4096 3035 0 2964 115 42 73 87 0 8 2 pvpl 32 23464 0 0 189 0 189 189 0 265 0 pmappl 248 1513 0 1482 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 441 0 73 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff800001407028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001407018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001407000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6d68) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff80003659e060,ffff80003659dfb0) at sys_exit+0x1a syscall(ffff80003659e060) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003659e060) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7daeb5426c60, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 kd_curproc sys/dev/kcov.c:592 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 sys/dev/kcov.c:153 __mp_lock(ffffffff8359d330) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8359d330) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff8359d330,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 yield() at yield+0x6a sys/kern/sched_bsd.c:320 pool_get(ffffffff835923c0,1) at pool_get+0x242 sys/kern/subr_pool.c:589 namei(ffff8000371f1b28) at namei+0xdf sys/kern/vfs_lookup.c:145 vn_open(ffff8000371f1b28,81,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff800032d822b0,ffffff9c,20000040,80,0,ffff8000371f1cd0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff8000371f1d80) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371f1d80) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9241aeca180, count: -14