witness: lock_object uninitialized: 0xffff8000012fb028 Starting stack trace... witness_checkorder(ffff8000012fb028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff8000012fb028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff8000012fb018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012fb000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800035fb3b08) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff6530,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800Stopped 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(ffff8000012fb028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012fb018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012fb000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800035fb3b08) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff6530,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff6530,ffff80002a0ba7b0,ffff80002a0ba700) at sys_exit+0x1a syscall(ffff80002a0ba7b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0ba7b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7052358d5460, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a0ba480 rbx 0 rdx 0 rcx 0xffff8000ffff6530 rax 0xffffffff834f2ff0 cpu_info_full_primary+0x1ff0 r8 0xffff80002a0ba420 r9 0x8080808080808080 r10 0x8117a7563607d4a6 r11 0x6894ba607b639c20 r12 0 r13 0x1 r14 0xffff8000012fb028 r15 0x3 rip 0xffffffff81ac00e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a0ba470 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=62146 pid=14179 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff6530 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff7bf8,0xffff8000ffff6030 process=0xffff800035fb3b08 user=0xffff80002a0b5000, vmspace=0xfffffd806bf40c60 estcpu=36, cpticks=8, pctcpu=0.0, user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77977 190311 50902 0 7 0 syz-executor 19716 174138 13537 0 2 0x1 syz-executor 19716 118856 13537 0 3 0x4000080 fsleep syz-executor 29394 68259 69908 60928 2 0x10 syz-executor 29394 507803 69908 60928 3 0x4000090 fsleep syz-executor 33963 311194 43754 0 2 0x10 syz-executor 33963 127941 43754 0 2 0x4000010 syz-executor 73389 321019 4271 0 2 0 syz-executor 73389 48995 4271 0 3 0x4000080 lockf syz-executor 73389 66807 4271 0 2 0x4000000 syz-executor 73389 194380 4271 0 3 0x4000080 fsleep syz-executor 73766 249134 11742 0 2 0x482 syz-executor 46352 59145 1 0 3 0x100083 ttyopn getty 69908 336283 11742 0 2 0x482 syz-executor 50902 466259 11742 0 2 0x482 syz-executor 38276 14533 0 0 3 0x14200 bored sosplice 4271 66580 11742 0 2 0x482 syz-executor 4290 316840 11742 0 2 0x3 syz-executor 43754 176430 11742 0 2 0x482 syz-executor 13537 202136 11742 0 2 0x482 syz-executor 11742 22682 65716 0 3 0x82 wait syz-executor 65716 70248 58026 0 3 0x10008a sigsusp ksh 58026 6166 23994 0 3 0x98 kqread sshd-session 23994 418206 55023 0 3 0x92 kqread sshd-session 55023 79734 1 0 3 0x88 kqread sshd 12932 105978 6514 74 3 0x1100092 bpf pflogd 6514 355448 1 0 3 0x80 sbwait pflogd 18476 459455 9845 73 2 0x1100090 syslogd 9845 286253 1 0 3 0x100082 sbwait syslogd 32357 178260 1 0 3 0x100080 kqread resolvd 83186 248638 68953 77 3 0x100092 kqread dhcpleased 56645 82255 68953 77 3 0x100092 kqread dhcpleased 68953 248688 1 0 3 0x80 kqread dhcpleased 36654 307966 0 0 3 0x14200 bored smr 38965 382965 0 0 2 0x14200 zerothread 83326 179651 0 0 3 0x14200 aiodoned aiodoned 12984 278909 0 0 3 0x14200 syncer update 94932 220348 0 0 3 0x14200 cleaner cleaner 72049 173303 0 0 2 0x14200 reaper 43762 425878 0 0 3 0x14200 pgdaemon pagedaemon 54838 384120 0 0 3 0x14200 bored viomb 454 296867 0 0 3 0x40014200 acpi0 acpi0 58352 149464 0 0 3 0x40014200 idle1 95143 445266 0 0 3 0x14200 bored softnet3 1320 251903 0 0 3 0x14200 bored softnet2 52469 314253 0 0 3 0x14200 bored softnet1 98538 405523 0 0 3 0x14200 bored softnet0 19420 171940 0 0 3 0x14200 bored systqmp 32899 184058 0 0 3 0x14200 bored systq 76259 202137 0 0 3 0x14200 tmoslp softclockmp 17652 193500 0 0 2 0x40014200 softclock 90822 104764 0 0 3 0x40014200 idle0 1 517638 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 73389 (syz-executor) thread 0xffff8000ffff6020 (66807) exclusive rwlock vmmaplk r = 0 (0xfffffd806bf40818) #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 sys_munmap+0x1cc sys/uvm/uvm_mmap.c:526 #3 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #3 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 Process 72049 (reaper) thread 0xffff800029fd8cb0 (173303) exclusive rwlock kmmaplk r = 0 (0xffffffff83641100) #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 10229 11200K 11516K 166960K 13710 0 pcb 17 18K 20K 166960K 425 0 rtable 203 6K 7K 166960K 732 0 pf 39 18K 22K 166960K 121 0 ifaddr 42 7K 8K 166960K 104 0 ifgroup 59 2K 2K 166960K 130 0 sysctl 4 1K 2K 166960K 9 0 counters 66 36K 37K 166960K 106 0 ioctlops 0 0K 4K 166960K 1602 0 iov 0 0K 16K 166960K 175 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1449 91K 92K 166960K 2928 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 35 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 158 0 dirhash 12 2K 3K 166960K 48 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 15 53K 93K 166960K 1864 0 sigio 0 0K 0K 166960K 40 0 proc 79 115K 152K 166960K 896 0 subproc 104 6K 6K 166960K 209 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 232 0 in_multi 87 6K 7K 166960K 236 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 775 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 233 73K 87K 166960K 18730 0 UVM aobj 57 5K 5K 166960K 63 0 pinsyscall 41 82K 104K 166960K 3154 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 99 0 NDP 15 0K 2K 166960K 69 0 temp 79 6828K 6956K 166960K 165166 0 kqueue 14 22K 32K 166960K 334 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 268 0 265 5 3 2 3 0 8 1 rtentry 112 235 0 144 4 0 4 4 0 8 0 unpcb 144 1680 0 1659 21 19 2 6 0 8 1 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 808 652 0 646 19 18 1 7 0 8 0 arp 120 39 0 22 1 0 1 1 0 8 0 inpcb 336 2454 0 2437 33 31 2 13 0 8 0 nd6 136 56 0 32 1 0 1 1 0 8 0 pkpcb 40 76 0 76 4 4 0 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1168 8 0 8 3 3 0 1 0 8 0 pffrag 232 12 0 7 1 0 1 1 0 482 0 pffrnode 88 12 0 7 1 0 1 1 0 8 0 pffrent 40 28 0 23 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 2 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 135 0 44 1 0 1 1 0 8 0 pfstkey 128 137 0 46 4 0 4 4 0 8 0 pfstate 376 134 0 45 10 0 10 10 0 8 0 pfrule 1344 28 0 22 2 1 1 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 967 0 529 35 5 30 31 0 8 0 art_table 32 970 0 529 4 0 4 4 0 8 0 art_node 16 227 0 146 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 8 1 0 1 1 0 8 0 semapl 112 156 0 146 1 0 1 1 0 8 0 shmpl 112 60 0 6 2 0 2 2 0 8 0 dirhash 1024 42 0 25 3 0 3 3 0 8 0 dino2pl 256 4637 0 3123 95 0 95 95 0 8 0 ffsino 272 4637 0 3123 102 0 102 102 0 8 0 nchpl 144 7142 0 5431 65 1 64 64 0 8 0 uvmvnodes 80 5683 0 0 116 0 116 116 0 8 0 vnodes 216 5683 0 0 316 0 316 316 0 8 0 namei 1024 25813 0 25813 3 2 1 1 0 8 1 percpumem 16 67 0 20 1 0 1 1 0 8 0 kstatmem 264 66 0 40 3 1 2 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 10 0 10 3 3 0 1 0 8 0 scxspl 216 22597 0 22597 17 16 1 8 1 8 1 plimitpl 152 606 0 589 1 0 1 1 0 8 0 sigapl 424 2172 0 2123 11 4 7 9 0 8 0 futexpl 64 27379 0 27376 1 0 1 1 0 8 0 knotepl 120 603 0 0 18 0 18 18 0 8 0 kqueuepl 216 649 0 639 10 9 1 5 0 8 0 pipepl 320 439 0 412 10 7 3 8 0 8 0 fdescpl 496 2131 0 2102 5 0 5 5 0 8 0 filepl 152 15054 0 14804 30 17 13 20 0 8 1 lockfpl 104 890 0 885 4 3 1 4 0 8 0 lockfspl 48 240 0 236 1 0 1 1 0 8 0 sessionpl 144 33 0 24 1 0 1 1 0 8 0 pgrppl 48 63 0 46 1 0 1 1 0 8 0 ucredpl 104 2463 0 2445 1 0 1 1 0 8 0 zombiepl 144 2164 0 2162 2 1 1 1 0 8 0 processpl 1160 2172 0 2123 7 2 5 6 0 8 0 procpl 648 4926 0 4870 10 3 7 8 0 8 0 srpgc 96 10 0 10 2 2 0 1 0 8 0 sosppl 168 12 0 12 5 5 0 1 0 8 0 sockpl 664 4502 0 4462 56 50 6 18 0 8 2 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 140 0 0 18 0 18 18 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 24 0 0 3 0 3 3 0 8 0 mtagpl 96 35 0 0 1 0 1 1 0 8 0 mbufpl 256 344 0 0 21 0 21 21 0 8 0 bufpl 280 8291 0 2117 442 0 442 442 0 8 0 anonpl 24 349211 0 330828 148 19 129 140 0 185 0 amapchunkpl 152 61180 0 60565 50 19 31 45 0 158 1 amappl16 200 9309 0 8509 66 14 52 59 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 187 0 175 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 2943 0 2913 4 2 2 3 0 8 0 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 158 0 158 1 1 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 123 0 111 1 0 1 1 0 8 0 amappl6 120 245 0 244 1 0 1 1 0 8 0 amappl5 112 186 0 173 1 0 1 1 0 8 0 amappl4 104 345 0 325 1 0 1 1 0 8 0 amappl3 96 11232 0 11148 3 0 3 3 0 8 0 amappl2 88 2433 0 2348 3 1 2 3 0 8 0 amappl1 80 13552 0 12981 15 2 13 14 0 8 0 amappl 88 18134 0 17962 6 1 5 5 0 92 0 dma65536 65536 2 0 2 1 0 1 1 0 8 1 dma16384 16384 1 0 1 1 0 1 1 0 8 1 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 254 0 254 2 2 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 72 0 72 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 62 0 6 2 0 2 2 0 8 0 uaddrrnd 24 2131 0 2101 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2131 0 2101 1 0 1 1 0 8 0 vmmpekpl 168 16509 0 16455 3 0 3 3 0 8 0 vmmpepl 168 141925 0 139335 189 47 142 150 0 357 13 vmsppl 448 2130 0 2101 6 2 4 5 0 8 0 rwobjpl 56 44078 0 36638 108 2 106 106 0 8 0 pdppl 4096 4269 0 4202 119 46 73 85 0 8 6 pvpl 32 30497 0 0 247 1 246 246 0 265 0 pmappl 248 2130 0 2101 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 474 0 111 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(ffff8000012fb028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012fb018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012fb000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800035fb3b08) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff6530,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff6530,ffff80002a0ba7b0,ffff80002a0ba700) at sys_exit+0x1a syscall(ffff80002a0ba7b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0ba7b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7052358d5460, count: -9 ddb{0}> machine ddbcpu 1 0ffff6530,ffff80S002a0ba7b0,ffff80002a0ba700) at sys_exit+0x1a tsyscall(ffff80002ao0ba7b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] tsyscall(ffff80002ao0ba7b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsypscall() at Xsyscpall+0x128 end oef kernel end dtrace frame: 0x7 052358d5460, counat: 249 End of stack trace. t 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(ffffffff835a0960) at __mp_lock+0x19e __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x19e sys/kern/kern_lock.c:144 syscall(ffff80002a0aae60) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a0aae60) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e88c0357700, count: -6