witness: lock_object uninitialized: 0xffff800000daa028 Starting stack trace... witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000daa018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800022cc5a48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800022cc5a48,ffff800022b9dd30,ffff800022b9dd90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall( ffff800022b9de00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] ffff800022b9de00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, count: 249 End of stack trace. Stopped at db_enter+0x18: addq $0x8,%rsp 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+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000daa018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800022cc5a48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800022cc5a48,ffff800022b9dd30,ffff800022b9dd90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800022b9de00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b9de00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800022b9dad0 rbx 0x3 rdx 0 rcx 0 rax 0xffff800022cc5a48 r8 0xffff800022b9da70 r9 0x8080808080808080 r10 0x21522242479de364 r11 0x4b4e32ea4cdbba59 r12 0xffff800000daa001 r13 0xffff800000daa028 r14 0 r15 0 rip 0xffffffff8167b298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b9dac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=506432 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021291268,0xffff800022cc5518 process=0xffff8000211f10b0 user=0xffff800022b98000, vmspace=0xfffffd80797cb750 estcpu=36, cpticks=12, pctcpu=0.0 user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21495 249578 85073 0 2 0 syz-executor.2 21495 49293 85073 0 3 0x4000080 fsleep syz-executor.2 99053 338445 51189 0 2 0 syz-executor.0 99053 306281 51189 0 3 0x4000080 fsleep syz-executor.0 85073 340417 12196 0 2 0x482 syz-executor.2 96621 397825 12196 0 2 0x482 syz-executor.1 38037 425105 12196 0 2 0x482 syz-executor.3 51189 156440 12196 0 2 0x482 syz-executor.0 74223 35811 0 0 3 0x14280 nfsidl nfsio 40743 133368 0 0 3 0x14280 nfsidl nfsio 50741 252760 0 0 3 0x14280 nfsidl nfsio 34251 121431 0 0 3 0x14280 nfsidl nfsio 33927 297930 0 0 3 0x14280 nfsidl nfsio 45545 108038 0 0 3 0x14280 nfsidl nfsio 80957 523279 0 0 3 0x14280 nfsidl nfsio 75466 247765 0 0 3 0x14280 nfsidl nfsio 26835 9425 0 0 3 0x14280 nfsidl nfsio 18437 238819 0 0 3 0x14280 nfsidl nfsio 56568 468430 0 0 3 0x14280 nfsidl nfsio 73013 245455 0 0 3 0x14280 nfsidl nfsio 66213 235622 0 0 3 0x14280 nfsidl nfsio 27823 216241 0 0 3 0x14280 nfsidl nfsio 44295 475331 0 0 3 0x14280 nfsidl nfsio 97354 323447 0 0 3 0x14280 nfsidl nfsio 47598 194286 0 0 3 0x14280 nfsidl nfsio 87936 423046 0 0 3 0x14280 nfsidl nfsio 11385 224990 0 0 3 0x14280 nfsidl nfsio 18682 441232 0 0 3 0x14280 nfsidl nfsio 30153 314914 0 0 3 0x14200 bored sosplice 12196 459187 59388 0 3 0x82 kqread syz-fuzzer 12196 244208 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 473802 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 78693 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 80450 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 29812 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 376256 59388 0 3 0x4000082 thrsleep syz-fuzzer 12196 315048 59388 0 3 0x4000082 thrsleep syz-fuzzer 59388 338517 69951 0 3 0x10008a sigsusp ksh 69951 148738 55837 0 3 0x9a poll sshd 90314 352160 1 0 2 0x100083 getty 55837 390298 1 0 3 0x88 poll sshd 53045 296556 15781 74 3 0x100092 bpf pflogd 15781 494444 1 0 3 0x80 netio pflogd 35439 502167 90972 73 2 0x100090 syslogd 90972 498928 1 0 3 0x100082 netio syslogd 75945 478260 1 0 3 0x100080 kqread resolvd 29322 135461 95529 77 3 0x100092 kqread dhcpleased 5541 461644 95529 77 3 0x100092 kqread dhcpleased 95529 43875 1 0 3 0x80 kqread dhcpleased 15405 487580 0 0 3 0x14200 bored smr 59541 389637 0 0 2 0x14200 zerothread 16847 440127 0 0 3 0x14200 aiodoned aiodoned 9914 452147 0 0 2 0x14600 update 50772 461213 0 0 3 0x14200 cleaner cleaner 47319 138302 0 0 2 0x14200 reaper 2556 433078 0 0 3 0x14200 pgdaemon pagedaemon 44947 359086 0 0 3 0x14200 bored viomb 93618 270016 0 0 3 0x40014200 acpi0 acpi0 303 178119 0 0 7 0x40014200 idle1 4346 427789 0 0 3 0x14200 bored softnet 93505 337754 0 0 3 0x14200 bored systqmp 29552 124209 0 0 3 0x14200 bored systq 88018 231716 0 0 2 0x40014200 softclock 50917 51185 0 0 3 0x40014200 idle0 1 63195 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 47319 (reaper) thread 0xffff8000211497a0 (138302) exclusive rwlock kmmaplk r = 0 (0xffffffff828839c8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5458 #3 uvm_unmap+0x78 sys/uvm/uvm_map.c:2068 #4 uvm_uarea_free+0x35 sys/uvm/uvm_glue.c:287 #5 reaper+0x158 sys/kern/kern_exit.c:451 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 6557K 7725K 78643K 108723 0 pcb 13 18K 20K 78643K 2301 0 rtable 193 26K 28K 78643K 4376 0 ifaddr 82 22K 22K 78643K 1490 0 sysctl 3 1K 1K 78643K 5 0 counters 48 34K 35K 78643K 498 0 ioctlops 0 0K 4K 78643K 5148 0 iov 0 0K 28K 78643K 1401 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1501 94K 95K 78643K 24434 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 163 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1349 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 49K 78643K 17329 0 sigio 0 0K 0K 78643K 333 0 proc 78 111K 112K 78643K 3158 0 subproc 52 3K 3K 78643K 1159 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 634 0 in_multi 51 3K 3K 78643K 1470 0 ether_multi 1 0K 0K 78643K 195 0 mrt 1 0K 0K 78643K 107 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 259 1155K 1155K 78643K 259 0 exec 0 0K 2K 78643K 4187 0 pfkey data 0 0K 1K 78643K 44 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 464 751K 752K 78643K 212347 0 UVM aobj 131 9K 9K 78643K 140 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 904 0 NDP 9 0K 1K 78643K 430 0 temp 120 4238K 4335K 78643K 208620 0 kqueue 10 14K 26K 78643K 752 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 1506 0 1503 21 20 1 3 0 8 0 rtentry 112 1159 0 1104 2 0 2 2 0 8 0 unpcb 136 12347 0 12332 132 131 1 8 0 8 0 syncache 296 74 0 74 21 21 0 1 0 8 0 tcpqe 32 404 22 404 12 12 0 2 0 8 0 tcpcb 736 4566 0 4562 194 187 7 13 0 8 6 arp 120 186 0 176 1 0 1 1 0 8 0 inpcb 304 13562 0 13555 219 213 6 11 0 8 5 rttmr 72 35 0 35 13 13 0 1 0 8 0 ip6q 72 5 0 5 2 2 0 1 0 8 0 ip6af 40 15 0 15 2 2 0 1 0 8 0 nd6 48 293 0 282 1 0 1 1 0 8 0 pkpcb 40 46 0 46 10 10 0 1 0 8 0 kcovpl 48 83 0 79 1 0 1 1 0 8 0 ppxss 1248 48 0 48 14 14 0 1 0 8 0 pfstscr 40 227 0 227 9 9 0 1 0 8 0 pffrag 232 261 0 260 11 10 1 1 0 482 0 pffrnode 88 261 0 260 11 10 1 1 0 8 0 pffrent 40 3823 0 3822 12 11 1 1 0 8 0 pfosfp 40 1436 0 1010 5 0 5 5 0 8 0 pfosfpen 112 1436 0 716 21 0 21 21 0 8 0 pfrktable 1344 290 0 263 8 5 3 3 0 8 0 pftag 88 45 0 42 3 2 1 1 0 8 0 pfqueue 264 4 0 4 1 1 0 1 0 8 0 pfstitem 24 41 0 39 1 0 1 1 0 8 0 pfstkey 112 475 0 473 1 0 1 1 0 8 0 pfstate 320 251 0 249 3 2 1 3 0 8 0 pfsrctr 152 24 0 24 2 2 0 1 0 8 0 pfrule 1360 1610 0 1480 15 4 11 11 0 8 0 art_heap8 4096 4 0 3 4 3 1 2 0 8 0 art_heap4 256 5174 0 4902 44 27 17 19 0 8 0 art_table 32 5178 0 4905 6 3 3 3 0 8 0 art_node 16 1155 0 1106 1 0 1 1 0 8 0 sysvmsgpl 40 91 0 51 1 0 1 1 0 8 0 semapl 112 1344 0 1334 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 24226 0 22756 93 0 93 93 0 8 0 ffsino 272 24226 0 22756 99 0 99 99 0 8 0 nchpl 144 48164 0 46561 61 0 61 61 0 8 0 uvmvnodes 80 6466 0 0 132 0 132 132 0 8 0 vnodes 224 6466 0 0 381 0 381 381 0 8 0 namei 1024 189173 0 189173 7 6 1 2 0 8 1 percpumem 16 261 0 225 1 0 1 1 0 8 0 vcpupl 2048 185 0 0 24 0 24 24 0 8 0 vmpool 560 199 0 14 14 0 14 14 0 8 0 pfiaddrpl 120 160 0 96 4 2 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 144043 0 144043 19 18 1 8 0 8 1 plimitpl 152 2014 0 2003 1 0 1 1 0 8 0 sigapl 424 17351 0 17294 7 0 7 7 0 8 0 futexpl 64 164240 0 164238 9 8 1 1 0 8 0 knotepl 112 175 0 0 4 0 4 4 0 8 0 kqueuepl 216 3188 0 3171 86 83 3 5 0 8 2 pipepl 336 3644 0 3628 99 92 7 8 0 8 5 fdescpl 496 17316 0 17295 4 1 3 4 0 8 0 filepl 152 125391 0 125240 202 191 11 17 0 8 5 lockfpl 104 5011 0 5009 7 6 1 2 0 8 0 lockfspl 48 1404 0 1402 1 0 1 1 0 8 0 sessionpl 144 99 0 86 1 0 1 1 0 8 0 pgrppl 48 193 0 180 1 0 1 1 0 8 0 ucredpl 96 14821 0 14799 1 0 1 1 0 8 0 zombiepl 144 17638 0 17636 3 2 1 1 0 8 0 processpl 1064 17351 0 17293 4 0 4 4 0 8 0 procpl 672 45957 0 45889 15 8 7 8 0 8 0 srpgc 96 90 0 90 14 14 0 1 0 8 0 sosppl 168 122 0 122 26 26 0 1 0 8 0 sockpl 480 27472 0 27447 646 634 12 29 0 8 8 mcl64k 65536 24 0 0 3 1 2 3 0 8 0 mcl16k 16384 18 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 481 0 0 32 10 22 32 0 8 0 mtagpl 96 1130 0 0 14 1 13 14 0 8 0 mbufpl 256 9324 0 0 548 0 548 548 0 8 0 bufpl 288 35417 0 28950 463 0 463 463 0 8 0 anonpl 24 4878037 0 4860440 325 189 136 178 0 186 0 amapchunkpl 152 528053 0 527319 148 116 32 52 0 158 2 amappl16 200 47950 0 47154 201 158 43 54 0 8 0 amappl15 192 55 0 53 4 3 1 1 0 8 0 amappl14 184 57 0 56 1 0 1 1 0 8 0 amappl13 176 1417 0 1416 1 0 1 1 0 8 0 amappl12 168 3326 0 3320 1 0 1 1 0 8 0 amappl11 160 4029 0 4011 1 0 1 1 0 8 0 amappl10 152 4740 0 4733 1 0 1 1 0 8 0 amappl9 144 2369 0 2365 1 0 1 1 0 8 0 amappl8 136 3785 0 3672 5 0 5 5 0 8 0 amappl7 128 2184 0 2173 1 0 1 1 0 8 0 amappl6 120 2517 0 2499 1 0 1 1 0 8 0 amappl5 112 16207 0 16189 1 0 1 1 0 8 0 amappl4 104 8586 0 8553 1 0 1 1 0 8 0 amappl3 96 5270 0 5252 1 0 1 1 0 8 0 amappl2 88 4771 0 4723 2 0 2 2 0 8 0 amappl1 80 308344 0 307835 13 2 11 13 0 8 0 amappl 88 210391 0 210129 9 2 7 7 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 139 0 9 3 0 3 3 0 8 0 uaddrrnd 24 17515 0 17308 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17515 0 17308 2 0 2 2 0 8 0 vmmpekpl 168 119168 0 119111 4 1 3 3 0 8 0 vmmpepl 168 1602942 0 1600198 607 454 153 153 0 357 28 vmsppl 368 17514 0 17308 19 0 19 19 0 8 0 rwobjpl 56 376138 0 367768 149 30 119 119 0 8 0 pdppl 4096 35038 0 34801 335 96 239 239 0 8 2 pvpl 32 8233842 0 8214290 581 387 194 308 0 265 0 pmappl 248 17514 0 17308 13 0 13 13 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1995 0 430 45 0 45 45 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000daa028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000daa018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000daa000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800022cc5a48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800022cc5a48,ffff800022b9dd30,ffff800022b9dd90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800022b9de00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b9de00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d38ff0) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5