witness: lock_object uninitialized: 0xffff800001439028 Starting stack trace... witness_checkorder(ffff800001439028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001439028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001439018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001439000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff27b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff27b8,ffff800035fa4120,ffff800035fa4070) at sys_exit+0x1a syscall(ffff800035fa4120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035fa4120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792e8ccdd690, 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(ffff800001439028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001439018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001439000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff27b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff27b8,ffff800035fa4120,ffff800035fa4070) at sys_exit+0x1a syscall(ffff800035fa4120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035fa4120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792e8ccdd690, count: -9 ddb{0}> show registers rdi 0 rsi 0x4000000000000000 rbp 0xffff800035fa3df0 rbx 0 rdx 0 rcx 0xffff8000ffff27b8 rax 0xffffffff8349fff0 cpu_info_full_primary+0x1ff0 r8 0xffff800035fa3d90 r9 0x8080808080808080 r10 0xffff800035fa3ce0 r11 0x8620dfe511f66f85 r12 0 r13 0x1 r14 0xffff800001439028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800035fa3de0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=130736 pid=61517 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff27b8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff3bf8,0xffff8000ffff2f60 process=0xffff8000ffff7b00 user=0xffff800035f9f000, vmspace=0xfffffd806c791e18 estcpu=36, cpticks=11, pctcpu=0.0, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3803 392836 96325 0 2 0 syz-executor 3803 1505 96325 0 3 0x4000080 fsleep syz-executor 60733 243545 94532 0 2 0 syz-executor 60733 49205 94532 0 3 0x4000080 fsleep syz-executor 60733 335256 94532 0 2 0x4000000 syz-executor 83292 394640 32801 0 2 0x2 syz-executor 31320 459066 0 0 3 0x14200 acct acct 20109 161873 1 0 3 0x82 nanoslp getty 15336 58543 0 0 3 0x14200 bored sosplice 24186 67934 32801 0 3 0x82 piperd syz-executor 94532 123063 32801 0 2 0x482 syz-executor 40611 437994 32801 0 7 0x2 syz-executor 54583 158475 32801 0 3 0x82 piperd syz-executor 88187 460595 32801 0 3 0x82 piperd syz-executor 24869 420917 32801 0 3 0x82 piperd syz-executor 96325 217248 32801 0 2 0x482 syz-executor 32801 442117 31931 0 2 0x2 syz-executor 31931 249718 51381 0 3 0x10008a sigsusp ksh 51381 261481 10369 0 3 0x98 kqread sshd-session 10369 188880 1067 0 3 0x92 kqread sshd-session 1067 215836 1 0 3 0x88 kqread sshd 69656 225144 38525 74 3 0x1100092 bpf pflogd 38525 158291 1 0 3 0x80 sbwait pflogd 5155 335373 39158 73 2 0x1100090 syslogd 39158 478539 1 0 3 0x100082 sbwait syslogd 46905 133126 1 0 3 0x100080 kqread resolvd 19888 492924 62344 77 3 0x100092 kqread dhcpleased 58608 261587 62344 77 3 0x100092 kqread dhcpleased 62344 481634 1 0 3 0x80 kqread dhcpleased 23408 368804 0 0 2 0x14200 smr 81423 119220 0 0 2 0x14200 zerothread 66630 437049 0 0 3 0x14200 aiodoned aiodoned 62729 2082 0 0 3 0x14200 syncer update 96974 453120 0 0 3 0x14200 cleaner cleaner 86420 248200 0 0 2 0x14200 reaper 60770 510017 0 0 3 0x14200 pgdaemon pagedaemon 95439 355784 0 0 3 0x14200 bored viomb 88649 511107 0 0 3 0x40014200 acpi0 acpi0 98658 479681 0 0 3 0x40014200 idle1 39446 96642 0 0 3 0x14200 bored softnet3 7217 508670 0 0 3 0x14200 bored softnet2 83628 504971 0 0 3 0x14200 bored softnet1 10819 439934 0 0 2 0x14200 softnet0 48468 33581 0 0 3 0x14200 bored systqmp 6540 173824 0 0 3 0x14200 bored systq 31155 193651 0 0 2 0x14200 softclockmp 65213 34744 0 0 2 0x40014200 softclock 97770 181440 0 0 3 0x40014200 idle0 1 455056 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 86420 (reaper) thread 0xffff800029fd96d0 (248200) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10244 11333K 11777K 166960K 13271 0 pcb 17 16K 18K 166960K 376 0 rtable 190 5K 6K 166960K 506 0 pf 37 18K 21K 166960K 113 0 ifaddr 39 6K 7K 166960K 83 0 ifgroup 56 2K 2K 166960K 108 0 sysctl 3 0K 0K 166960K 3 0 counters 64 36K 36K 166960K 104 0 ioctlops 0 0K 4K 166960K 1606 0 iov 0 0K 12K 166960K 144 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1455 91K 92K 166960K 2715 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 30 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 58 0 dirhash 12 2K 2K 166960K 48 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 12 41K 93K 166960K 1329 0 sigio 0 0K 0K 166960K 30 0 proc 78 115K 128K 166960K 693 0 subproc 104 6K 6K 166960K 118 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 278 0 in_multi 83 6K 7K 166960K 171 0 ether_multi 1 0K 0K 166960K 9 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 645 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 204 71K 87K 166960K 14444 0 UVM aobj 37 2K 2K 166960K 42 0 pinsyscall 38 76K 104K 166960K 2472 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 45 0 NDP 12 0K 2K 166960K 51 0 temp 80 6828K 6924K 166960K 37378 0 kqueue 13 20K 28K 166960K 237 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 95 0 92 1 0 1 1 0 8 0 rtentry 112 159 0 73 4 0 4 4 0 8 0 unpcb 144 1420 0 1403 11 7 4 6 0 8 3 syncache 336 11 0 11 5 4 1 1 0 8 1 tcpqe 32 16 0 16 2 1 1 1 0 8 1 tcpcb 808 441 0 432 10 5 5 7 0 8 3 arp 120 29 0 14 1 0 1 1 0 8 0 inpcb 336 1782 0 1772 12 7 5 7 0 8 3 nd6 136 33 0 10 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1168 16 0 16 1 1 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pffrag 232 10 0 3 1 0 1 1 0 482 0 pffrnode 88 9 0 3 1 0 1 1 0 8 0 pffrent 40 24 0 17 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 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 80 0 33 1 0 1 1 0 8 0 pfstkey 128 82 0 35 2 0 2 2 0 8 0 pfstate 376 80 0 34 6 0 6 6 0 8 0 pfrule 1344 24 0 17 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 763 0 392 30 3 27 29 0 8 1 art_table 32 766 0 392 4 0 4 4 0 8 0 art_node 16 158 0 88 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 51 0 41 1 0 1 1 0 8 0 shmpl 112 39 0 5 1 0 1 1 0 8 0 dirhash 1024 41 0 24 3 0 3 3 0 8 0 dino2pl 256 4111 0 2614 95 0 95 95 0 8 0 ffsino 272 4111 0 2614 101 0 101 101 0 8 0 nchpl 144 6024 0 4343 63 0 63 63 0 8 0 uvmvnodes 80 4824 0 0 99 0 99 99 0 8 0 vnodes 216 4824 0 0 268 0 268 268 0 8 0 namei 1024 21007 0 21007 3 2 1 2 0 8 1 percpumem 16 66 0 20 1 0 1 1 0 8 0 kstatmem 264 64 0 40 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 16313 0 16313 11 10 1 8 1 8 1 plimitpl 152 417 0 400 1 0 1 1 0 8 0 sigapl 424 1641 0 1594 8 1 7 7 0 8 0 futexpl 64 19341 0 19339 1 0 1 1 0 8 0 knotepl 120 546 0 0 17 0 17 17 0 8 0 kqueuepl 216 391 0 382 3 2 1 3 0 8 0 pipepl 320 325 0 298 10 7 3 8 0 8 0 fdescpl 496 1617 0 1591 5 0 5 5 0 8 0 filepl 152 12223 0 11984 23 10 13 19 0 8 1 lockfpl 104 565 0 563 1 0 1 1 0 8 0 lockfspl 48 174 0 172 1 0 1 1 0 8 0 sessionpl 144 32 0 24 1 0 1 1 0 8 0 pgrppl 48 88 0 72 1 0 1 1 0 8 0 ucredpl 104 3002 0 2988 1 0 1 1 0 8 0 zombiepl 144 1785 0 1784 1 0 1 1 0 8 0 processpl 1160 1641 0 1594 5 1 4 5 0 8 0 procpl 648 3773 0 3721 7 1 6 7 0 8 0 srpgc 96 7 0 7 2 2 0 1 0 8 0 sosppl 168 6 0 6 2 2 0 1 0 8 0 sockpl 664 3320 0 3290 34 24 10 20 0 8 6 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 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 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 137 0 0 18 1 17 18 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 43 0 0 6 0 6 6 0 8 0 mtagpl 96 50 0 0 2 0 2 2 0 8 0 mbufpl 256 1129 0 0 71 0 71 71 0 8 0 bufpl 280 4306 0 103 301 0 301 301 0 8 0 anonpl 24 317400 0 314036 57 15 42 54 0 185 6 amapchunkpl 152 48039 0 47637 36 13 23 32 0 158 1 amappl16 200 8467 0 8442 41 36 5 19 0 8 2 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 141 0 129 1 0 1 1 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 2287 0 2260 4 1 3 3 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 10 0 10 2 2 0 1 0 8 0 amappl9 144 140 0 139 1 0 1 1 0 8 0 amappl8 136 38 0 34 1 0 1 1 0 8 0 amappl7 128 140 0 127 1 0 1 1 0 8 0 amappl6 120 195 0 193 1 0 1 1 0 8 0 amappl5 112 185 0 173 1 0 1 1 0 8 0 amappl4 104 359 0 339 1 0 1 1 0 8 0 amappl3 96 8758 0 8680 3 0 3 3 0 8 0 amappl2 88 1984 0 1903 4 1 3 3 0 8 0 amappl1 80 13212 0 12656 15 1 14 15 0 8 0 amappl 88 13924 0 13782 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 257 0 257 4 3 1 1 0 8 1 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 41 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1617 0 1590 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1617 0 1590 1 0 1 1 0 8 0 vmmpekpl 168 15676 0 15631 3 0 3 3 0 8 0 vmmpepl 168 109981 0 108325 107 10 97 103 0 357 11 vmsppl 448 1616 0 1590 6 2 4 5 0 8 0 rwobjpl 56 38573 0 32809 82 0 82 82 0 8 0 pdppl 4096 3241 0 3180 119 48 71 85 0 8 10 pvpl 32 15668 0 0 127 1 126 126 0 265 0 pmappl 248 1616 0 1590 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 490 0 75 13 0 13 13 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(ffff800001439028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001439018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001439000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff27b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff27b8,ffff800035fa4120,ffff800035fa4070) at sys_exit+0x1a syscall(ffff800035fa4120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035fa4120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792e8ccdd690, 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 __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 syscall(ffff80002a132a60) at syscall+0xa11 mi_syscall_return sys/sys/syscall_mi.h:206 [inline] syscall(ffff80002a132a60) at syscall+0xa11 sys/arch/amd64/amd64/trap.c:598 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792e8ccdd660, count: -6