witness: lock_object uninitialized: 0xffff8000012d7028 Starting stack trace... witness_checkorder(ffff8000012d7028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff8000012d7028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff8000012d7018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012d7000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002a130d98) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a008f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a008f60,ffff80002a212970,ffff80002a2128c0) at sys_exit+0x1a syscall(ffff80002a212970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a212970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x724b918a3140, 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(ffff8000012d7028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012d7018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012d7000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002a130d98) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a008f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a008f60,ffff80002a212970,ffff80002a2128c0) at sys_exit+0x1a syscall(ffff80002a212970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a212970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x724b918a3140, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a212640 rbx 0 rdx 0x3fd rcx 0 rax 0x14 r8 0xffff80002a2125e0 r9 0x8080808080808080 r10 0x872862e0a759ebfb r11 0x4723f6fcb1949ece r12 0 r13 0x1 r14 0xffff8000012d7028 r15 0x3 rip 0xffffffff826da0a5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a212630 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.2) tid=322234 pid=49172 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=75, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a008f60 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a08fc18,0xffff80002a008ce8 process=0xffff80002a130d98 user=0xffff80002a20d000, vmspace=0xfffffd806b7c1570 estcpu=25, cpticks=14, pctcpu=0.6, user=0, sys=7, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 59912 286134 93187 0 2 0x100002 sh 89359 317541 67298 0 2 0 syz-executor.0 89359 295015 67298 0 3 0x4000080 fsleep syz-executor.0 32804 145447 40874 0 7 0x100002 sh 39870 207547 92150 0 2 0 syz-executor.5 39870 89113 92150 0 2 0x4000000 syz-executor.5 10558 231390 8603 0 2 0x101004 sh 8603 129299 9743 0 3 0x10008a sigsusp sh 9743 272925 16934 0 3 0x82 wait syz-executor.4 40874 98113 16934 0 3 0x82 wait syz-executor.6 92150 472679 16934 0 3 0x82 nanoslp syz-executor.5 93187 30212 16934 0 3 0x82 wait syz-executor.7 67298 150457 16934 0 3 0x82 nanoslp syz-executor.0 4916 478492 16934 0 3 0x82 nanoslp syz-executor.2 63653 61098 16934 0 2 0x2 syz-executor.3 92385 294935 16934 0 2 0x2 syz-executor.1 16934 79120 51510 0 3 0x82 thrsleep syz-execprog 16934 179651 51510 0 3 0x4000082 thrsleep syz-execprog 16934 283534 51510 0 3 0x4000082 wait syz-execprog 16934 424736 51510 0 3 0x4000082 wait syz-execprog 16934 356801 51510 0 3 0x4000082 wait syz-execprog 16934 156094 51510 0 3 0x4000082 wait syz-execprog 16934 424782 51510 0 3 0x4000082 kqread syz-execprog 16934 346758 51510 0 3 0x4000082 thrsleep syz-execprog 16934 516767 51510 0 3 0x4000082 wait syz-execprog 16934 447899 51510 0 3 0x4000082 wait syz-execprog 16934 441266 51510 0 3 0x4000082 thrsleep syz-execprog 16934 194870 51510 0 3 0x4000082 thrsleep syz-execprog 16934 402313 51510 0 3 0x4000082 wait syz-execprog 16934 441690 51510 0 3 0x4000082 wait syz-execprog 16934 513283 51510 0 3 0x4000082 thrsleep syz-execprog 16934 518062 51510 0 3 0x4000082 thrsleep syz-execprog 51510 241450 17029 0 3 0x10008a sigsusp ksh 17029 267313 17065 0 3 0x98 kqread sshd-session 17065 68508 22050 0 3 0x92 kqread sshd-session 74932 49241 1 0 3 0x100083 ttyin getty 22050 389766 1 0 3 0x88 kqread sshd 5119 227161 29274 74 3 0x1100092 bpf pflogd 29274 90385 1 0 3 0x80 sbwait pflogd 37068 291909 42932 73 3 0x1100090 kqread syslogd 42932 461502 1 0 3 0x100082 sbwait syslogd 53842 84234 1 0 3 0x100080 kqread resolvd 35875 74629 44877 77 3 0x100092 kqread dhcpleased 52686 211410 44877 77 3 0x100092 kqread dhcpleased 44877 315585 1 0 3 0x80 kqread dhcpleased 87739 98647 0 0 3 0x14200 bored smr 97160 248148 0 0 3 0x14200 pgzero zerothread 59601 357522 0 0 3 0x14200 aiodoned aiodoned 75434 114189 0 0 3 0x14200 syncer update 10413 327596 0 0 3 0x14200 cleaner cleaner 35707 251107 0 0 2 0x14200 reaper 30229 353342 0 0 3 0x14200 pgdaemon pagedaemon 37609 263228 0 0 3 0x14200 bored viomb 29736 489859 0 0 3 0x40014200 acpi0 acpi0 92746 332476 0 0 3 0x40014200 idle1 68354 294462 0 0 3 0x14200 bored softnet3 54067 57809 0 0 3 0x14200 bored softnet2 23897 448905 0 0 3 0x14200 bored softnet1 33085 46410 0 0 3 0x14200 bored softnet0 90841 259688 0 0 3 0x14200 bored systqmp 76201 98017 0 0 3 0x14200 bored systq 50501 24867 0 0 3 0x14200 tmoslp softclockmp 31736 144025 0 0 3 0x40014200 tmoslp softclock 19500 127832 0 0 3 0x40014200 idle0 1 435543 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 59912 (sh) thread 0xffff80002a08e7d8 (286134) exclusive rwlock vmmaplk r = 0 (0xfffffd806add7820) #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_map_protect+0xe1 sys/uvm/uvm_map.c:3057 #3 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 Process 63653 (syz-executor.3) thread 0xffff80002a091700 (61098) exclusive rwlock vmmaplk r = 0 (0xfffffd807eb762b8) #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 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3811 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 92385 (syz-executor.1) thread 0xffff80002a090ce0 (294935) exclusive rwlock vmmaplk r = 0 (0xfffffd806b7c14a8) #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 uvmspace_fork+0x12b sys/uvm/uvm_map.c:3820 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd807eb76b78) #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 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3811 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 35707 (reaper) thread 0xffff800029fb96d0 (251107) exclusive rwlock kmmaplk r = 0 (0xffffffff8359f278) #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 10183 11113K 11113K 166960K 11264 0 pcb 17 12K 12K 166960K 17 0 rtable 186 5K 5K 166960K 306 0 pf 34 17K 18K 166960K 48 0 ifaddr 37 6K 6K 166960K 43 0 ifgroup 55 2K 2K 166960K 60 0 counters 64 36K 36K 166960K 66 0 ioctlops 0 0K 4K 166960K 1481 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1262 79K 80K 166960K 1281 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 89K 166960K 144 0 proc 71 115K 127K 166960K 540 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 69 5K 5K 166960K 80 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 1 0K 1K 166960K 408 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 256 75K 75K 166960K 4284 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 45 90K 112K 166960K 1476 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 22 1K 1K 166960K 25 0 temp 2 6868K 6933K 166960K 4756 0 kqueue 13 20K 20K 166960K 46 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 29 0 26 1 0 1 1 0 8 0 rtentry 112 98 0 12 3 0 3 3 0 8 0 unpcb 144 69 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 2 2 0 1 0 8 0 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 120 17 0 2 1 0 1 1 0 8 0 inpcb 336 70 0 64 1 0 1 1 0 8 0 nd6 136 18 0 3 2 1 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 21 0 4 1 0 1 1 0 8 0 pfstkey 128 21 0 4 1 0 1 1 0 8 0 pfstate 376 21 0 4 2 0 2 2 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 378 0 48 24 3 21 21 0 8 0 art_table 32 379 0 48 4 1 3 3 0 8 0 art_node 16 97 0 18 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1616 0 91 96 0 96 96 0 8 0 ffsino 272 1616 0 91 102 0 102 102 0 8 0 nchpl 144 1908 0 123 67 0 67 67 0 8 0 uvmvnodes 80 1630 0 0 34 0 34 34 0 8 0 vnodes 216 1630 0 0 91 0 91 91 0 8 0 namei 1024 7594 0 7592 5 4 1 2 0 8 0 percpumem 16 47 0 1 1 0 1 1 0 8 0 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scxspl 216 8481 0 8481 10 9 1 8 1 8 1 plimitpl 152 59 0 42 1 0 1 1 0 8 0 sigapl 424 499 0 448 10 3 7 7 0 8 0 futexpl 64 12 0 11 2 1 1 1 0 8 0 knotepl 120 135 0 0 4 0 4 4 0 8 0 kqueuepl 216 42 0 33 1 0 1 1 0 8 0 pipepl 320 187 0 159 5 2 3 3 0 8 0 fdescpl 496 481 0 449 6 1 5 5 0 8 0 filepl 152 2130 0 1994 7 1 6 6 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 35 0 18 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 116 0 103 1 0 1 1 0 8 0 zombiepl 144 450 0 449 2 1 1 1 0 8 0 processpl 1160 499 0 448 6 1 5 5 0 8 0 procpl 648 531 0 462 9 3 6 6 0 8 0 sockpl 664 168 0 142 4 1 3 3 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 186 0 0 21 0 21 21 0 8 0 mcl2k 2048 12 0 0 2 0 2 2 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 187 0 0 11 0 11 11 0 8 0 bufpl 280 4347 0 150 300 0 300 300 0 8 0 anonpl 24 340660 0 336364 64 35 29 52 0 185 0 amapchunkpl 152 16575 0 15989 41 17 24 27 0 158 0 amappl16 200 10128 0 10067 8 4 4 5 0 8 0 amappl15 192 26 0 26 2 2 0 1 0 8 0 amappl14 184 224 0 211 3 1 2 2 0 8 0 amappl13 176 24 0 24 2 2 0 1 0 8 0 amappl12 168 1191 0 1158 5 2 3 3 0 8 1 amappl11 160 83 0 69 1 0 1 1 0 8 0 amappl10 152 124 0 113 2 1 1 1 0 8 0 amappl9 144 398 0 397 3 2 1 1 0 8 0 amappl8 136 198 0 166 3 1 2 2 0 8 0 amappl7 128 224 0 202 3 1 2 2 0 8 0 amappl6 120 316 0 310 3 2 1 2 0 8 0 amappl5 112 197 0 186 1 0 1 1 0 8 0 amappl4 104 509 0 489 2 1 1 2 0 8 0 amappl3 96 3778 0 3697 6 3 3 3 0 8 0 amappl2 88 1246 0 1159 6 2 4 4 0 8 0 amappl1 80 14601 0 14001 36 22 14 24 0 8 0 amappl 88 3540 0 3372 6 2 4 4 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 480 0 448 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 480 0 448 1 0 1 1 0 8 0 vmmpekpl 168 11062 0 11020 2 0 2 2 0 8 0 vmmpepl 168 68304 0 66472 138 52 86 122 0 357 1 vmsppl 448 480 0 448 8 3 5 5 0 8 1 rwobjpl 56 31733 0 29065 57 12 45 47 0 8 0 pdppl 4096 969 0 896 129 46 83 83 0 8 10 pvpl 32 46294 0 0 376 2 374 374 0 265 0 pmappl 248 480 0 448 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 410 0 60 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8353aff0) 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(ffffffff83656338) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83656338) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002a17a720,ffff800000069c00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __mp_lock(ffffffff83656338) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83656338) 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 __mp_lock(ffffffff83656338) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83656338) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80002a17aa40) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a17aa40) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d20820a5c10, count: -12 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(ffff8000012d7028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012d7018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012d7000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002a130d98) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a008f60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a008f60,ffff80002a212970,ffff80002a2128c0) at sys_exit+0x1a syscall(ffff80002a212970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a212970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x724b918a3140, count: -9