witness: lock_object uninitialized: 0xffff800000bdb028 Starting stack trace... witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000bdb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211e4860) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff80002128c2b0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff80002128c2b0,ffff800027b24f80,ffff800027b24fe0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b25050) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b25050) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3d60, count: 249 End of stack trace. Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000bdb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211e4860) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff80002128c2b0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff80002128c2b0,ffff800027b24f80,ffff800027b24fe0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b25050) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b25050) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3d60, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800027b24d20 rbx 0x3 rdx 0 rcx 0 rax 0xffff80002128c2b0 r8 0xffff800027b24cc0 r9 0x8080808080808080 r10 0x3315a89c954b3a36 r11 0x11f87dd74d985ee1 r12 0xffff800000bdb001 r13 0xffff800000bdb028 r14 0 r15 0 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800027b24d10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=379780 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002128c010,0xffff80002123ca98 process=0xffff8000211e4860 user=0xffff800027b20000, vmspace=0xfffffd806ef12008 estcpu=36, cpticks=10, pctcpu=0.0 user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64985 54321 97707 0 2 0 syz-executor.0 79969 481273 23917 0 2 0 syz-executor.2 20543 183348 20745 0 2 0 syz-executor.3 20543 354052 20745 0 3 0x4000000 vmmaplk syz-executor.3 20543 396968 20745 0 3 0x4000000 vmmaplk syz-executor.3 20543 109838 20745 0 3 0x4000080 fsleep syz-executor.3 20543 364262 20745 0 2 0x4000000 syz-executor.3 62570 767 0 0 3 0x14200 acct acct 97707 6705 59458 0 3 0x82 nanoslp syz-executor.0 42262 14544 59458 0 3 0x82 nanoslp syz-executor.1 23917 9881 59458 0 3 0x82 nanoslp syz-executor.2 83815 417423 0 0 3 0x14200 bored sosplice 20745 478633 59458 0 3 0x82 nanoslp syz-executor.3 59458 329828 31416 0 3 0x82 thrsleep syz-fuzzer 59458 111569 31416 0 3 0x4000082 thrsleep syz-fuzzer 59458 249197 31416 0 3 0x4000082 thrsleep syz-fuzzer 59458 120449 31416 0 3 0x4000082 thrsleep syz-fuzzer 59458 472244 31416 0 3 0x4000082 thrsleep syz-fuzzer 59458 26122 31416 0 3 0x4000082 thrsleep syz-fuzzer 59458 493059 31416 0 3 0x4000082 kqread syz-fuzzer 59458 351120 31416 0 3 0x4000082 thrsleep syz-fuzzer 31416 9051 50761 0 3 0x10008a sigsusp ksh 50761 181500 55897 0 3 0x9a poll sshd 92884 46394 1 0 3 0x100083 ttyopn getty 55897 340527 1 0 3 0x88 poll sshd 66235 359852 82538 74 3 0x100092 bpf pflogd 82538 34945 1 0 3 0x80 netio pflogd 28049 221739 66098 73 3 0x100090 kqread syslogd 66098 92630 1 0 3 0x100082 netio syslogd 58749 422950 1 0 3 0x100080 kqread resolvd 5816 448064 65856 77 3 0x100092 kqread dhcpleased 52411 480891 65856 77 3 0x100092 kqread dhcpleased 65856 189875 1 0 3 0x80 kqread dhcpleased 68884 246381 0 0 3 0x14200 bored smr 54212 204109 0 0 2 0x14200 zerothread 15418 14028 0 0 3 0x14200 aiodoned aiodoned 75483 495890 0 0 3 0x14200 syncer update 82818 308255 0 0 3 0x14200 cleaner cleaner 49187 256948 0 0 7 0x14200 reaper 14795 188364 0 0 3 0x14200 pgdaemon pagedaemon 27283 301856 0 0 3 0x14200 bored viomb 91952 316536 0 0 3 0x40014200 acpi0 acpi0 12656 443314 0 0 3 0x40014200 idle1 6710 455883 0 0 3 0x14200 bored softnet 4955 184256 0 0 3 0x14200 bored systqmp 85934 514519 0 0 3 0x14200 bored systq 49778 223130 0 0 3 0x40014200 bored softclock 51596 240295 0 0 3 0x40014200 idle0 1 103363 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 20543 (syz-executor.3) thread 0xffff80002123da48 (364262) exclusive rwlock vmmaplk r = 0 (0xfffffd806ef12ba0) #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 uvmfault_lookup+0xb9 sys/uvm/uvm_fault.c:1740 #4 uvm_fault_check+0x603 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #4 uvm_fault_check+0x603 sys/uvm/uvm_fault.c:714 #5 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #6 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #7 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #8 recall_trap+0x8 Process 49187 (reaper) thread 0xffff800021148d20 (256948) exclusive rwlock kmmaplk r = 0 (0xffffffff8298b1a0) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10167 6529K 6723K 78643K 12997 0 pcb 13 12K 14K 78643K 268 0 rtable 156 6K 7K 78643K 517 0 ifaddr 61 14K 14K 78643K 165 0 counters 48 34K 35K 78643K 80 0 ioctlops 0 0K 4K 78643K 1540 0 iov 0 0K 16K 78643K 178 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1293 81K 81K 78643K 2315 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 13 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 219 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 9 29K 49K 78643K 1901 0 sigio 0 0K 0K 78643K 3 0 proc 80 111K 111K 78643K 657 0 subproc 52 3K 3K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 44 0 in_multi 51 3K 3K 78643K 199 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 2K 78643K 780 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 302 132K 134K 78643K 25832 0 UVM aobj 12 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 62 0 NDP 8 0K 1K 78643K 51 0 temp 98 4199K 4295K 78643K 20415 0 kqueue 10 14K 18K 78643K 74 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 78 0 75 1 0 1 1 0 8 0 rtentry 112 161 0 97 2 0 2 2 0 8 0 unpcb 136 1474 0 1459 19 14 5 9 0 8 4 syncache 296 13 0 13 4 4 0 1 0 8 0 tcpqe 32 142 0 142 2 2 0 1 0 8 0 tcpcb 736 561 0 557 23 15 8 8 0 8 7 arp 120 22 0 12 1 0 1 1 0 8 0 inpcb 304 1681 0 1674 31 25 6 9 0 8 5 nd6 48 41 0 31 1 0 1 1 0 8 0 kcovpl 48 10 0 6 1 0 1 1 0 8 0 pffrag 232 9 0 8 3 2 1 1 0 482 0 pffrnode 88 9 0 8 3 2 1 1 0 8 0 pffrent 40 184 0 183 3 2 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 pfrktable 1344 10 0 7 1 0 1 1 0 8 0 pfstitem 24 75 0 44 1 0 1 1 0 8 0 pfstkey 112 75 0 44 1 0 1 1 0 8 0 pfstate 320 75 0 44 3 0 3 3 0 8 0 pfrule 1360 37 0 29 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 709 0 446 20 2 18 18 0 8 0 art_table 32 710 0 446 3 0 3 3 0 8 0 art_node 16 160 0 102 1 0 1 1 0 8 0 sysvmsgpl 40 41 0 1 1 0 1 1 0 8 0 semapl 112 217 0 207 1 0 1 1 0 8 0 shmpl 112 12 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4471 0 3055 89 0 89 89 0 8 0 ffsino 272 4471 0 3055 96 1 95 95 0 8 0 nchpl 144 7597 0 5991 61 0 61 61 0 8 0 uvmvnodes 80 5004 0 0 103 0 103 103 0 8 0 vnodes 224 5004 0 0 295 0 295 295 0 8 0 namei 1024 27187 0 27187 3 2 1 1 0 8 1 percpumem 16 52 0 16 1 0 1 1 0 8 0 vcpupl 2048 5 0 0 1 0 1 1 0 8 0 vmpool 560 10 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 0 1 0 1 1 0 8 0 scxspl 216 24029 0 24029 10 9 1 8 0 8 1 plimitpl 152 74 0 63 1 0 1 1 0 8 0 sigapl 424 2123 0 2084 5 0 5 5 0 8 0 futexpl 64 17193 0 17192 3 2 1 1 0 8 0 knotepl 112 85 0 0 3 0 3 3 0 8 0 kqueuepl 216 609 0 603 13 12 1 5 0 8 0 pipepl 336 246 0 230 4 2 2 4 0 8 0 fdescpl 496 2107 0 2085 4 1 3 4 0 8 0 filepl 152 15347 0 15196 39 27 12 16 0 8 6 lockfpl 104 1166 0 1163 2 1 1 2 0 8 0 lockfspl 48 523 0 520 1 0 1 1 0 8 0 sessionpl 144 26 0 13 1 0 1 1 0 8 0 pgrppl 48 33 0 20 1 0 1 1 0 8 0 ucredpl 96 3319 0 3306 1 0 1 1 0 8 0 zombiepl 144 3184 0 3183 1 0 1 1 0 8 0 processpl 1064 2123 0 2084 3 0 3 3 0 8 0 procpl 672 5729 0 5676 6 1 5 5 0 8 0 srpgc 96 6 0 6 2 2 0 1 0 8 0 sosppl 168 14 0 14 3 3 0 1 0 8 0 sockpl 480 3233 0 3208 97 85 12 34 0 8 8 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 23 0 0 3 1 2 3 0 8 0 mcl4k 4096 17 0 0 3 1 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 20 1 19 20 0 8 0 mtagpl 96 95 0 0 3 0 3 3 0 8 0 mbufpl 256 582 0 0 32 0 32 32 0 8 0 bufpl 288 7918 0 1574 454 0 454 454 0 8 0 anonpl 24 590972 0 572344 191 76 115 183 0 186 0 amapchunkpl 152 65512 0 64684 76 36 40 61 0 158 7 amappl16 200 4782 0 4220 36 5 31 31 0 8 1 amappl15 192 232 0 229 2 1 1 1 0 8 0 amappl14 184 10 0 9 3 2 1 1 0 8 0 amappl13 176 268 0 267 1 0 1 1 0 8 0 amappl12 168 17 0 12 1 0 1 1 0 8 0 amappl11 160 49 0 34 1 0 1 1 0 8 0 amappl10 152 57 0 50 1 0 1 1 0 8 0 amappl9 144 1086 0 1080 1 0 1 1 0 8 0 amappl8 136 1246 0 1192 2 0 2 2 0 8 0 amappl7 128 853 0 841 1 0 1 1 0 8 0 amappl6 120 803 0 781 1 0 1 1 0 8 0 amappl5 112 1974 0 1952 1 0 1 1 0 8 0 amappl4 104 766 0 744 1 0 1 1 0 8 0 amappl3 96 253 0 237 1 0 1 1 0 8 0 amappl2 88 663 0 621 3 2 1 2 0 8 0 amappl1 80 41917 0 41408 14 3 11 13 0 8 0 amappl 88 25347 0 25128 7 1 6 6 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 14 0 3 1 0 1 1 0 8 0 uaddrrnd 24 2117 0 2089 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2117 0 2089 1 0 1 1 0 8 0 vmmpekpl 168 19027 0 18988 2 0 2 2 0 8 0 vmmpepl 168 195579 0 193421 164 68 96 112 0 357 0 vmsppl 368 2116 0 2089 3 0 3 3 0 8 0 rwobjpl 56 54167 0 47714 94 2 92 92 0 8 0 pdppl 4096 4242 0 4183 87 28 59 62 0 8 0 pvpl 32 1081952 0 1059861 316 107 209 303 0 265 27 pmappl 248 2116 0 2089 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 850 0 56 23 0 23 23 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff827f3ff0) 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_pc() at __sanitizer_cov_trace_pc+0x40 sys/dev/kcov.c:149 __mp_acquire_count(ffffffff82993700,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x3d3 sys/kern/sched_bsd.c:416 yield() at yield+0x5a sys/kern/sched_bsd.c:291 pool_get(ffffffff829ccac8,1) at pool_get+0x199 sys/kern/subr_pool.c:591 uvm_mapent_alloc(ffffffff8298b188,0) at uvm_mapent_alloc+0x2fe sys/uvm/uvm_map.c:1773 uvm_unmap_remove(ffffffff8298b188,ffff800027af6000,ffff800027afc000,ffff800021185330,0,1) at uvm_unmap_remove+0x2d7 uvm_map_clip_end sys/uvm/uvm_map.c:4815 [inline] uvm_unmap_remove(ffffffff8298b188,ffff800027af6000,ffff800027afc000,ffff800021185330,0,1) at uvm_unmap_remove+0x2d7 sys/uvm/uvm_map.c:2243 uvm_unmap(ffffffff8298b188,ffff800027af6000,ffff800027afc000) at uvm_unmap+0x92 vm_map_unlock_ln sys/uvm/uvm_map.c:5494 [inline] uvm_unmap(ffffffff8298b188,ffff800027af6000,ffff800027afc000) at uvm_unmap+0x92 sys/uvm/uvm_map.c:2069 uvm_uarea_free(ffff80002123c548) at uvm_uarea_free+0x35 sys/uvm/uvm_glue.c:287 reaper(ffff800021148d20) at reaper+0x158 sys/kern/kern_exit.c:451 end trace frame: 0x0, count: -13 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000bdb028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000bdb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000bdb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211e4860) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff80002128c2b0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff80002128c2b0,ffff800027b24f80,ffff800027b24fe0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b25050) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b25050) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3d60, count: -9