witness: lock_object uninitialized: 0xffff8000013cc028 Starting stack trace... witness_checkorder(ffff8000013cc028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff8000013cc028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff8000013cc018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013cc000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffed6c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800029fe7980,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800029fe7980,ffff800030b8c810,ffff800030b8c760) at sys_exit+0x1a syscall(ffff800030b8c810) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030b8c810) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785e824be6b0, 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(ffff8000013cc028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000013cc018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013cc000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffed6c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800029fe7980,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800029fe7980,ffff800030b8c810,ffff800030b8c760) at sys_exit+0x1a syscall(ffff800030b8c810) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030b8c810) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785e824be6b0, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800030b8c4e0 rbx 0 rdx 0 rcx 0xffff800029fe7980 rax 0xffff800029b7bff0 r8 0xffff800030b8c480 r9 0x8080808080808080 r10 0x5948e6a2fdbf07e2 r11 0x9280195eadb529bd r12 0 r13 0x1 r14 0xffff8000013cc028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030b8c4d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=338829 pid=35455 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800029fe7980 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff800029fe6a50,0xffff8000ffffdbf8 process=0xffff8000fffed6c8 user=0xffff800030b87000, vmspace=0xfffffd806bb11aa8 estcpu=29, cpticks=10, pctcpu=0.0, user=0, sys=10, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34170 17679 38710 0 2 0 syz-executor 34170 411644 38710 0 3 0x4000080 bpf syz-executor 32723 10789 12070 0 2 0 syz-executor 6417 465222 47542 0 2 0 syz-executor 6417 497328 47542 0 3 0x4000080 fsleep syz-executor 6417 220821 47542 0 2 0x4000000 syz-executor 35901 428536 12701 0 7 0 syz-executor 35901 299821 12701 0 3 0x4000080 fsleep syz-executor 35901 16692 12701 0 2 0x4000000 syz-executor 28473 518728 53349 -1 2 0x10 syz-executor 28473 254022 53349 -1 3 0x4000090 fsleep syz-executor 28473 330186 53349 -1 3 0x4000090 fsleep syz-executor 66428 361210 46601 0 2 0 syz-executor 66428 339432 46601 0 3 0x4000080 fsleep syz-executor 66428 151679 46601 0 3 0x4000080 fsleep syz-executor 66428 249099 46601 0 3 0x4000080 fsleep syz-executor 72910 265633 1 0 3 0x100083 ttyin getty 27200 117861 0 0 3 0x14200 bored sosplice 50956 13315 13954 0 3 0x82 nanoslp syz-executor 47542 160522 13954 0 3 0x82 nanoslp syz-executor 12070 7680 13954 0 3 0x82 nanoslp syz-executor 46601 156962 13954 0 3 0x82 nanoslp syz-executor 38710 178775 13954 0 3 0x82 nanoslp syz-executor 53349 426766 13954 0 3 0x82 nanoslp syz-executor 12701 111988 13954 0 3 0x82 nanoslp syz-executor 88622 176973 13954 0 3 0x82 nanoslp syz-executor 13954 371028 67126 0 3 0x82 kqread syz-executor 67126 218437 46430 0 3 0x10008a sigsusp ksh 46430 222529 26496 0 3 0x98 kqread sshd-session 26496 317375 54044 0 3 0x92 kqread sshd-session 54044 175851 1 0 3 0x88 kqread sshd 51746 394879 28670 74 3 0x1100092 bpf pflogd 28670 485184 1 0 3 0x80 sbwait pflogd 28149 21542 74626 73 3 0x1100090 kqread syslogd 74626 463782 1 0 3 0x100082 sbwait syslogd 80222 327921 1 0 3 0x100080 kqread resolvd 99307 80640 43561 77 3 0x100092 kqread dhcpleased 85770 174604 43561 77 3 0x100092 kqread dhcpleased 43561 127763 1 0 3 0x80 kqread dhcpleased 6288 313084 0 0 3 0x14200 bored smr 68226 136687 0 0 3 0x14200 pgzero zerothread 53895 462662 0 0 3 0x14200 aiodoned aiodoned 27839 443891 0 0 3 0x14200 syncer update 40831 54736 0 0 3 0x14200 cleaner cleaner 55468 273124 0 0 2 0x14200 reaper 24463 196511 0 0 3 0x14200 pgdaemon pagedaemon 84827 54436 0 0 3 0x14200 bored viomb 30580 169846 0 0 3 0x40014200 acpi0 acpi0 64119 498528 0 0 3 0x40014200 idle1 10910 358192 0 0 3 0x14200 bored softnet3 62449 6458 0 0 3 0x14200 bored softnet2 39590 51843 0 0 3 0x14200 bored softnet1 56265 243316 0 0 3 0x14200 bored softnet0 63769 85867 0 0 3 0x14200 bored systqmp 45283 339534 0 0 3 0x14200 bored systq 51090 432484 0 0 3 0x14200 tmoslp softclockmp 49882 25524 0 0 3 0x40014200 tmoslp softclock 77452 144404 0 0 3 0x40014200 idle0 1 90533 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 6417 (syz-executor) thread 0xffff8000ffff3460 (220821) exclusive rwlock fdlock r = 0 (0xfffffd806c00a058) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 doopenat+0x173 #2 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #2 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #3 Xsyscall+0x128 Process 35901 (syz-executor) thread 0xffff8000ffffdbe8 (428536) shared rwlock vmmaplk r = 0 (0xfffffd806bb119e0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1819 #3 uvm_fault_check+0x49 sys/uvm/uvm_fault.c:672 #4 uvm_fault+0xf5 sys/uvm/uvm_fault.c:600 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 Process 55468 (reaper) thread 0xffff800029fd8f38 (273124) 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 10233 11193K 11513K 166960K 11962 0 pcb 19 13K 14K 166960K 139 0 rtable 188 7K 8K 166960K 415 0 pf 43 19K 19K 166960K 72 0 ifaddr 42 6K 7K 166960K 61 0 ifgroup 68 2K 2K 166960K 82 0 sysctl 3 0K 0K 166960K 3 0 counters 70 37K 37K 166960K 84 0 ioctlops 0 0K 4K 166960K 1540 0 iov 0 0K 24K 166960K 24 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1393 88K 88K 166960K 1861 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 21 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 683 0 sigio 0 0K 0K 166960K 17 0 proc 76 115K 128K 166960K 607 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 102 0 in_multi 86 6K 7K 166960K 124 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 449 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 247 73K 74K 166960K 8037 0 UVM aobj 18 2K 2K 166960K 19 0 pinsyscall 43 86K 102K 166960K 1761 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 41 0 NDP 15 0K 2K 166960K 40 0 temp 55 6822K 7070K 166960K 25977 0 kqueue 14 22K 30K 166960K 117 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 66 0 63 1 0 1 1 0 8 0 rtentry 112 123 0 42 4 0 4 4 0 8 0 unpcb 144 289 0 272 2 1 1 2 0 8 0 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 246 0 240 7 6 1 7 0 8 0 arp 120 21 0 9 1 0 1 1 0 8 0 inpcb 336 848 0 836 17 10 7 12 0 8 5 nd6 136 25 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 7 0 7 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 48 0 47 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 49 0 10 1 0 1 1 0 8 0 pfstkey 128 53 0 14 2 0 2 2 0 8 0 pfstate 376 50 0 12 5 0 5 5 0 8 0 pfrule 1344 27 0 21 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 508 0 118 29 2 27 29 0 8 0 art_table 32 510 0 118 4 0 4 4 0 8 0 art_node 16 121 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 19 0 9 1 0 1 1 0 8 0 shmpl 112 16 0 1 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 2622 0 1117 95 0 95 95 0 8 0 ffsino 272 2622 0 1117 101 0 101 101 0 8 0 nchpl 144 3677 0 3089 63 40 23 63 0 8 0 uvmvnodes 80 2989 0 0 61 0 61 61 0 8 0 vnodes 216 2989 0 0 167 0 167 167 0 8 0 namei 1024 11430 0 11430 2 1 1 2 0 8 1 percpumem 16 56 0 7 1 0 1 1 0 8 0 kstatmem 264 44 0 14 4 1 3 3 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 10843 0 10843 9 8 1 7 1 8 1 plimitpl 152 190 0 173 1 0 1 1 0 8 0 sigapl 424 984 0 933 7 1 6 7 0 8 0 futexpl 64 8426 0 8419 1 0 1 1 0 8 0 knotepl 120 526 0 0 16 0 16 16 0 8 0 kqueuepl 216 174 0 164 2 1 1 2 0 8 0 pipepl 320 158 0 131 3 0 3 3 0 8 0 fdescpl 496 965 0 934 5 0 5 5 0 8 0 filepl 152 5158 0 4901 17 4 13 15 0 8 1 lockfpl 104 281 0 278 2 1 1 2 0 8 0 lockfspl 48 125 0 122 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 38 0 21 1 0 1 1 0 8 0 ucredpl 104 1000 0 984 1 0 1 1 0 8 0 zombiepl 144 979 0 977 1 0 1 1 0 8 0 processpl 1160 984 0 933 5 1 4 5 0 8 0 procpl 648 1898 0 1833 7 1 6 7 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 3 0 3 2 2 0 1 0 8 0 sockpl 664 1213 0 1181 19 10 9 14 0 8 5 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 154 0 0 20 0 20 20 0 8 0 mcl2k 2048 24 0 0 3 0 3 3 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 300 0 0 19 0 19 19 0 8 0 bufpl 280 3214 0 105 223 0 223 223 0 8 0 anonpl 24 222413 0 218904 49 19 30 46 0 185 1 amapchunkpl 152 26554 0 26022 27 4 23 27 0 158 0 amappl16 200 6078 0 6046 27 21 6 15 0 8 4 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 126 0 113 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1611 0 1579 3 1 2 2 0 8 0 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 11 0 11 3 2 1 1 0 8 1 amappl9 144 128 0 128 1 1 0 1 0 8 0 amappl8 136 20 0 18 1 0 1 1 0 8 0 amappl7 128 111 0 99 1 0 1 1 0 8 0 amappl6 120 170 0 168 1 0 1 1 0 8 0 amappl5 112 141 0 130 1 0 1 1 0 8 0 amappl4 104 305 0 287 1 0 1 1 0 8 0 amappl3 96 4958 0 4855 3 0 3 3 0 8 0 amappl2 88 1243 0 1159 3 0 3 3 0 8 0 amappl1 80 9360 0 8785 15 1 14 14 0 8 0 amappl 88 7627 0 7442 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 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 18 0 1 1 0 1 1 0 8 0 uaddrrnd 24 965 0 933 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 965 0 933 1 0 1 1 0 8 0 vmmpekpl 168 9108 0 9072 3 0 3 3 0 8 0 vmmpepl 168 68474 0 66541 98 10 88 95 0 357 1 vmsppl 448 964 0 933 6 2 4 5 0 8 0 rwobjpl 56 25587 0 21633 59 3 56 56 0 8 0 pdppl 4096 1937 0 1866 105 34 71 85 0 8 0 pvpl 32 14223 0 0 115 0 115 115 0 265 0 pmappl 248 964 0 933 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 419 0 60 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(ffff800037213b60,ffff800000069c00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_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 intr_handler(ffff800037213cc0,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 __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 uvm_fault(fffffd806bb118e8,aeafdd01000,0,2) at uvm_fault+0x1e0 sys/uvm/uvm_fault.c:622 upageflttrap(ffff8000372141a0,aeafdd01000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff8000372141a0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x716ded153940, count: -17 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(ffff8000013cc028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000013cc018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000013cc000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffed6c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800029fe7980,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800029fe7980,ffff800030b8c810,ffff800030b8c760) at sys_exit+0x1a syscall(ffff800030b8c810) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030b8c810) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785e824be6b0, count: -9