witness: lock_object uninitialized: 0xffff8000013a6028 Starting stack trace... witness_checkorder(ffff8000013a6028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff8000013a6028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff8000013a6018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013a6000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000359ab660) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff71d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff71d8,ffff80002a0f6e10,ffff80002a0f6d60) at sys_exit+0x1a syscall(ffff80002a0f6e10) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0f6e10) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ee5ef1b7d00, count: 249 End of stack trace. Stopped at db_enter+0x25: 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+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff8000013a6028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000013a6018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013a6000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000359ab660) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff71d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff71d8,ffff80002a0f6e10,ffff80002a0f6d60) at sys_exit+0x1a syscall(ffff80002a0f6e10) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0f6e10) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ee5ef1b7d00, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a0f6ae0 rbx 0 rdx 0 rcx 0xffff8000ffff71d8 rax 0xffff800029b7bff0 r8 0xffff80002a0f6a80 r9 0x8080808080808080 r10 0xe0b101886a656716 r11 0xfde7c76c97e80f7c r12 0 r13 0x1 r14 0xffff8000013a6028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a0f6ad0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=509873 pid=88717 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff71d8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff6f50,0xffff8000ffff76f8 process=0xffff8000359ab660 user=0xffff80002a0f1000, vmspace=0xfffffd80675db568 estcpu=36, cpticks=8, pctcpu=0.0, user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48353 395015 55200 0 3 0x80 fsleep syz-executor 48353 479821 55200 0 3 0x4000080 kqread syz-executor 52355 255138 55256 0 3 0x80 fsleep syz-executor 52355 74857 55256 0 3 0x4000080 piperd syz-executor 80207 72200 34277 0 3 0x80 fsleep syz-executor 80207 462236 34277 0 3 0x4000080 sbwait syz-executor 36010 299182 49313 0 3 0x80 fsleep syz-executor 36010 300093 49313 0 3 0x4000080 pipewr syz-executor 43506 301282 96774 0 3 0x80 fsleep syz-executor 43506 96360 96774 0 3 0x4000080 netacc syz-executor 63072 476459 17347 0 3 0x80 fsleep syz-executor 63072 53898 17347 0 3 0x4000080 fifor syz-executor 96774 369409 99523 0 3 0x82 nanoslp syz-executor 49313 491605 99523 0 3 0x82 nanoslp syz-executor 34277 356256 99523 0 3 0x82 nanoslp syz-executor 55256 266016 99523 0 3 0x82 nanoslp syz-executor 79044 470366 99523 0 3 0x82 nanoslp syz-executor 89991 187762 1 0 3 0x100083 ttyin getty 76425 166234 0 0 3 0x14200 bored sosplice 16020 464421 37540 0 3 0x100082 sbwait arp 37540 215995 1 0 3 0x10008a sigsusp sh 17347 164659 99523 0 3 0x82 nanoslp syz-executor 90048 266541 99523 0 3 0x82 nanoslp syz-executor 55200 368754 99523 0 3 0x82 nanoslp syz-executor 99523 258558 33399 0 3 0x82 kqread syz-executor 33399 482337 87879 0 3 0x10008a sigsusp ksh 87879 352105 20338 0 3 0x98 kqread sshd-session 20338 425950 66152 0 3 0x92 kqread sshd-session 66152 474171 1 0 3 0x88 kqread sshd 45375 393308 97575 74 3 0x1100092 bpf pflogd 97575 461086 1 0 3 0x80 sbwait pflogd 23588 433708 22802 73 3 0x1100090 kqread syslogd 22802 4663 1 0 3 0x100082 sbwait syslogd 98944 176393 1 0 3 0x100080 kqread resolvd 51386 278921 52537 77 3 0x100092 kqread dhcpleased 27308 355878 52537 77 3 0x100092 kqread dhcpleased 52537 114530 1 0 3 0x80 kqread dhcpleased 3146 302521 0 0 3 0x14200 bored smr 72364 473259 0 0 3 0x14200 pgzero zerothread 94343 34265 0 0 3 0x14200 aiodoned aiodoned 12161 311275 0 0 3 0x14200 syncer update 29613 393430 0 0 3 0x14200 cleaner cleaner 33382 309134 0 0 2 0x14200 reaper 73663 176897 0 0 3 0x14200 pgdaemon pagedaemon 30220 97196 0 0 3 0x14200 bored viomb 51666 199790 0 0 3 0x40014200 acpi0 acpi0 37883 306571 0 0 3 0x40014200 idle1 64694 447749 0 0 3 0x14200 bored softnet3 87441 181999 0 0 3 0x14200 bored softnet2 64085 335099 0 0 3 0x14200 bored softnet1 4044 219872 0 0 3 0x14200 bored softnet0 1781 498104 0 0 3 0x14200 bored systqmp 49507 495586 0 0 3 0x14200 bored systq 41006 126243 0 0 3 0x14200 tmoslp softclockmp 32471 269940 0 0 3 0x40014200 tmoslp softclock 5683 371763 0 0 7 0x40014200 idle0 1 155653 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 33382 (reaper) thread 0xffff800029fd8008 (309134) exclusive rwlock kmmaplk r = 0 (0xffffffff83630f90) #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 uvm_unmap+0x81 sys/uvm/uvm_map.c:1792 #3 km_free+0x87 sys/uvm/uvm_km.c:833 #4 uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:284 #5 reaper+0x1fe sys/kern/kern_exit.c:466 #6 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10236 11322K 11729K 166960K 13521 0 pcb 18 12K 12K 166960K 294 0 rtable 177 5K 6K 166960K 922 0 pf 35 17K 18K 166960K 92 0 ifaddr 42 7K 8K 166960K 101 0 ifgroup 56 2K 2K 166960K 122 0 sysctl 3 0K 0K 166960K 5 0 counters 64 36K 36K 166960K 108 0 ioctlops 0 0K 4K 166960K 1677 0 iov 0 0K 20K 166960K 273 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1434 90K 90K 166960K 2733 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 29 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 154 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 19 69K 97K 166960K 1849 0 sigio 0 0K 0K 166960K 27 0 proc 74 115K 140K 166960K 889 0 subproc 117 7K 7K 166960K 182 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 183 0 in_multi 78 5K 6K 166960K 231 0 ether_multi 1 0K 0K 166960K 13 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 757 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 261 74K 90K 166960K 19072 0 UVM aobj 127 8K 8K 166960K 131 0 pinsyscall 46 92K 106K 166960K 3144 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 101 0 NDP 12 0K 1K 166960K 66 0 temp 77 6828K 6900K 166960K 55799 0 kqueue 14 22K 31K 166960K 333 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 202 0 198 2 1 1 2 0 8 0 rtentry 112 337 0 257 3 0 3 3 0 8 0 unpcb 144 1687 0 1666 14 13 1 4 0 8 0 syncache 336 11 0 11 4 4 0 1 0 8 0 tcpqe 32 2 0 2 2 2 0 1 0 8 0 tcpcb 808 679 0 671 18 16 2 7 0 8 0 arp 120 76 0 58 1 0 1 1 0 8 0 ipq 40 3 0 3 3 3 0 1 0 8 0 ipqe 40 9 0 9 3 3 0 1 0 8 0 inpcb 336 2301 0 2288 24 22 2 12 0 8 0 nd6 136 48 0 32 1 0 1 1 0 8 0 pkpcb 40 7 0 7 3 3 0 1 0 8 0 kcovpl 48 14 0 5 1 0 1 1 0 8 0 ppxss 1168 13 0 13 6 6 0 1 0 8 0 pffrag 232 12 0 4 1 0 1 1 0 482 0 pffrnode 88 12 0 4 1 0 1 1 0 8 0 pffrent 40 17 0 9 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 103 0 42 1 0 1 1 0 8 0 pfstkey 128 103 0 42 3 0 3 3 0 8 0 pfstate 376 103 0 42 7 0 7 7 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 956 0 586 32 7 25 27 0 8 0 art_table 32 958 0 586 4 0 4 4 0 8 0 art_node 16 291 0 225 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 146 0 136 1 0 1 1 0 8 0 shmpl 112 128 0 4 4 0 4 4 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 4639 0 3128 95 0 95 95 0 8 0 ffsino 272 4639 0 3128 102 0 102 102 0 8 0 nchpl 144 7205 0 5499 64 0 64 64 0 8 0 uvmvnodes 80 5457 0 0 112 0 112 112 0 8 0 vnodes 216 5457 0 0 304 0 304 304 0 8 0 namei 1024 25536 0 25536 4 3 1 2 0 8 1 percpumem 16 68 0 22 1 0 1 1 0 8 0 kstatmem 264 68 0 44 2 0 2 2 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 6 0 6 5 5 0 1 0 8 0 scxspl 216 20502 0 20502 16 15 1 8 1 8 1 plimitpl 152 493 0 475 1 0 1 1 0 8 0 sigapl 424 2178 0 2125 10 2 8 9 0 8 0 futexpl 64 27149 0 27143 1 0 1 1 0 8 0 knotepl 120 538 0 0 17 0 17 17 0 8 0 kqueuepl 216 563 0 553 5 4 1 5 0 8 0 pipepl 320 361 0 329 3 0 3 3 0 8 0 fdescpl 496 2137 0 2104 6 1 5 6 0 8 0 filepl 152 14694 0 14420 26 14 12 17 0 8 0 lockfpl 104 648 0 646 2 1 1 2 0 8 0 lockfspl 48 229 0 227 1 0 1 1 0 8 0 sessionpl 144 36 0 27 1 0 1 1 0 8 0 pgrppl 48 80 0 62 1 0 1 1 0 8 0 ucredpl 104 2783 0 2770 1 0 1 1 0 8 0 zombiepl 144 2372 0 2370 2 1 1 1 0 8 0 processpl 1160 2178 0 2125 6 1 5 6 0 8 0 procpl 648 5002 0 4940 9 3 6 8 0 8 0 srpgc 96 11 0 11 4 4 0 1 0 8 0 sosppl 168 12 0 12 3 3 0 1 0 8 0 sockpl 664 4230 0 4192 32 28 4 14 0 8 0 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 146 0 0 19 0 19 19 0 8 0 mcl2k 2048 44 0 0 5 0 5 5 0 8 0 mtagpl 96 37 0 0 1 0 1 1 0 8 0 mbufpl 256 297 0 0 18 0 18 18 0 8 0 bufpl 280 5386 0 106 378 0 378 378 0 8 0 anonpl 24 305782 0 299405 105 51 54 64 0 185 0 amapchunkpl 152 61480 0 60845 50 22 28 32 0 158 0 amappl16 200 7295 0 7187 45 34 11 19 0 8 0 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 142 0 129 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2898 0 2863 4 2 2 3 0 8 0 amappl11 160 80 0 66 1 0 1 1 0 8 0 amappl10 152 13 0 13 2 2 0 1 0 8 0 amappl9 144 173 0 172 2 1 1 1 0 8 0 amappl8 136 21 0 18 2 1 1 1 0 8 0 amappl7 128 129 0 116 1 0 1 1 0 8 0 amappl6 120 247 0 244 1 0 1 1 0 8 0 amappl5 112 165 0 151 1 0 1 1 0 8 0 amappl4 104 366 0 344 1 0 1 1 0 8 0 amappl3 96 11504 0 11397 4 0 4 4 0 8 0 amappl2 88 2498 0 2409 3 0 3 3 0 8 0 amappl1 80 14893 0 14292 15 0 15 15 0 8 0 amappl 88 18483 0 18287 6 1 5 6 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 8 0 8 2 2 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 130 0 4 3 0 3 3 0 8 0 uaddrrnd 24 2137 0 2103 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2137 0 2103 1 0 1 1 0 8 0 vmmpekpl 168 18072 0 18016 3 0 3 3 0 8 0 vmmpepl 168 137333 0 135232 118 23 95 103 0 357 0 vmsppl 448 2136 0 2103 6 1 5 5 0 8 0 rwobjpl 56 43495 0 36828 95 1 94 94 0 8 0 pdppl 4096 4281 0 4206 121 46 75 87 0 8 0 pvpl 32 17860 0 0 145 1 144 144 0 265 0 pmappl 248 2136 0 2103 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 468 0 110 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8349fff0) 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 __mp_lock(ffffffff8359d330) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8359d330) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff800029f95230,ffff800000069c00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c 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 intr_handler(ffff800029f953a0,ffff800000079e00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge25_untramp() at Xintr_ioapic_edge25_untramp+0x18f __mp_lock(ffffffff8359d330) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8359d330) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffffffff8349fff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -15 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff8000013a6028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000013a6018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013a6000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000359ab660) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff71d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff71d8,ffff80002a0f6e10,ffff80002a0f6d60) at sys_exit+0x1a syscall(ffff80002a0f6e10) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0f6e10) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ee5ef1b7d00, count: -9