witness: lock_object uninitialized: 0xffff80000131c028 Starting stack trace... witness_checkorder(ffff80000131c028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff80000131c028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff80000131c018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000131c000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6458) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff8000371da6c0,ffff8000371da610) at sys_exit+0x1a syscall(ffff8000371da6c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371da6c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75ba363562e0, 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(ffff80000131c028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000131c018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000131c000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6458) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff8000371da6c0,ffff8000371da610) at sys_exit+0x1a syscall(ffff8000371da6c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371da6c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75ba363562e0, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff8000371da390 rbx 0 rdx 0 rcx 0xffff8000ffff22a8 rax 0xffff800029b7bff0 r8 0xffff8000371da330 r9 0x8080808080808080 r10 0x21163cf25b657bf2 r11 0x108ce4c5c2b7db2a r12 0 r13 0x1 r14 0xffff80000131c028 r15 0x3 rip 0xffffffff812ecd15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371da380 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=266431 pid=13679 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff22a8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff2530,0xffff8000ffff27c8 process=0xffff8000ffff6458 user=0xffff8000371d5000, vmspace=0xfffffd806bfba720 estcpu=36, cpticks=10, pctcpu=0.0, user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13779 456420 67506 0 2 0 syz-executor 13779 74412 67506 0 2 0x4000000 syz-executor 24605 115488 33069 0 2 0 syz-executor 24605 496205 33069 0 3 0x4000080 fsleep syz-executor 38095 222172 1103 0 2 0x2 syz-executor 6071 210998 97976 0 2 0 syz-executor 6071 122256 97976 0 3 0x4000080 rest syz-executor 34133 257012 45038 0 2 0 syz-executor 34133 205015 45038 0 2 0x4000000 syz-executor 34133 354142 45038 0 2 0x4000000 syz-executor 34133 489212 45038 0 3 0x4000080 fsleep syz-executor 18552 138692 16789 0 2 0 syz-executor 18552 470587 16789 0 3 0x4000080 kqpoll syz-executor 18552 159356 16789 0 3 0x4000080 fsleep syz-executor 81846 333343 15608 0 3 0x80 nanoslp syz-executor 81846 506588 15608 0 3 0x4000080 msgwait syz-executor 81846 309415 15608 0 3 0x4000080 fsleep syz-executor 6987 222827 0 0 3 0x14200 acct acct 24115 516378 0 0 3 0x14200 bored sosplice 15608 220884 1103 0 2 0x3 syz-executor 67506 493289 1103 0 3 0x82 nanoslp syz-executor 40053 201423 1103 0 2 0x3 syz-executor 45038 355322 1103 0 2 0x3 syz-executor 16789 324796 1103 0 2 0x2 syz-executor 33069 105395 1103 0 3 0x82 nanoslp syz-executor 97976 1519 1103 0 3 0x82 nanoslp syz-executor 1103 342041 46816 0 3 0x82 kqread syz-executor 46816 278675 73775 0 3 0x10008a sigsusp ksh 73775 349887 79485 0 3 0x98 kqread sshd-session 79485 112961 12370 0 3 0x92 kqread sshd-session 45334 442687 1 0 3 0x100083 ttyin getty 12370 204134 1 0 3 0x88 kqread sshd 26558 437973 30203 74 3 0x1100092 bpf pflogd 30203 266471 1 0 3 0x80 sbwait pflogd 2829 194290 62217 73 3 0x1100090 kqread syslogd 62217 193438 1 0 3 0x100082 sbwait syslogd 77115 255289 1 0 3 0x100080 kqread resolvd 26299 196612 51414 77 3 0x100092 kqread dhcpleased 61659 101739 51414 77 3 0x100092 kqread dhcpleased 51414 435978 1 0 3 0x80 kqread dhcpleased 22729 1294 0 0 3 0x14200 bored smr 64295 175615 0 0 2 0x14200 zerothread 27633 349372 0 0 3 0x14200 aiodoned aiodoned 69849 333224 0 0 3 0x14200 syncer update 51827 45728 0 0 3 0x14200 cleaner cleaner 62543 448590 0 0 2 0x14200 reaper 59836 14555 0 0 3 0x14200 pgdaemon pagedaemon 85830 335179 0 0 3 0x14200 bored viomb 57766 156933 0 0 3 0x40014200 acpi0 acpi0 4852 278363 0 0 3 0x40014200 idle1 47003 69643 0 0 3 0x14200 bored softnet3 4229 317594 0 0 3 0x14200 bored softnet2 31623 406604 0 0 3 0x14200 bored softnet1 57007 158609 0 0 3 0x14200 bored softnet0 83549 192165 0 0 3 0x14200 bored systqmp 12209 76518 0 0 3 0x14200 bored systq 22802 472329 0 0 3 0x14200 tmoslp softclockmp 56272 246411 0 0 7 0x40014200 softclock 51920 445857 0 0 3 0x40014200 idle0 1 173309 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 62543 (reaper) thread 0xffff800029fd8f38 (448590) exclusive rwlock kmmaplk r = 0 (0xffffffff8361ed68) #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 Process 56272 (softclock) thread 0xffff8000fffff6c8 (246411) shared rwlock timeout r = 0 (0xffffffff8346fa20) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 timeout_run+0xf1 sys/kern/kern_timeout.c:659 #2 softclock_thread+0x163 sys/kern/kern_timeout.c:811 #3 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10236 11383K 11512K 166960K 12401 0 pcb 18 16K 17K 166960K 198 0 rtable 204 6K 6K 166960K 556 0 pf 39 18K 18K 166960K 75 0 ifaddr 39 6K 7K 166960K 61 0 ifgroup 60 2K 2K 166960K 82 0 sysctl 1 0K 0K 166960K 1 0 counters 64 36K 36K 166960K 82 0 ioctlops 0 0K 4K 166960K 1588 0 iov 0 0K 16K 166960K 103 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1483 93K 94K 166960K 2098 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 4 9K 9K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 31 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 81K 166960K 738 0 sigio 0 0K 0K 166960K 75 0 proc 78 115K 127K 166960K 605 0 subproc 101 6K 6K 166960K 114 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 155 0 in_multi 84 6K 7K 166960K 142 0 ether_multi 1 0K 0K 166960K 6 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 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 580 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 244 65K 77K 166960K 8825 0 UVM aobj 21 2K 2K 166960K 21 0 pinsyscall 42 84K 102K 166960K 1867 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 70 0 NDP 13 0K 2K 166960K 41 0 temp 48 6821K 6963K 166960K 34256 0 kqueue 13 20K 28K 166960K 126 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 75 0 72 1 0 1 1 0 8 0 rtentry 112 129 0 36 4 0 4 4 0 8 0 unpcb 144 586 0 569 7 3 4 4 0 8 3 syncache 336 7 0 7 4 3 1 1 0 8 1 tcpcb 808 198 0 194 5 3 2 4 0 8 1 arp 120 19 0 4 1 0 1 1 0 8 0 inpcb 336 842 0 831 13 6 7 7 0 8 6 nd6 136 29 0 10 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 8 0 1 1 0 1 1 0 8 0 ppxss 1168 7 0 7 3 2 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 3 0 0 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 70 0 27 1 0 1 1 0 8 0 pfstkey 128 72 0 29 2 0 2 2 0 8 0 pfstate 376 71 0 28 6 0 6 6 0 8 0 pfrule 1344 23 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 567 0 159 30 2 28 30 0 8 0 art_table 32 569 0 159 4 0 4 4 0 8 0 art_node 16 126 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 2 1 1 1 0 8 1 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 18 0 0 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 2669 0 1173 95 0 95 95 0 8 0 ffsino 272 2669 0 1173 101 0 101 101 0 8 0 nchpl 144 3683 0 1998 63 0 63 63 0 8 0 uvmvnodes 80 3309 0 0 68 0 68 68 0 8 0 vnodes 216 3309 0 0 184 0 184 184 0 8 0 namei 1024 12857 0 12857 1 0 1 1 0 8 1 percpumem 16 55 0 9 1 0 1 1 0 8 0 kstatmem 264 42 0 18 2 0 2 2 0 8 0 scsiplug 72 3 0 3 3 3 0 1 0 8 0 scxspl 216 13520 0 13520 10 8 2 8 1 8 2 plimitpl 152 248 0 227 1 0 1 1 0 8 0 sigapl 424 1053 0 1002 8 1 7 7 0 8 0 futexpl 64 9547 0 9543 1 0 1 1 0 8 0 knotepl 120 317 0 0 10 0 10 10 0 8 0 kqueuepl 216 312 0 302 9 4 5 5 0 8 4 pipepl 320 158 0 131 3 0 3 3 0 8 0 fdescpl 496 1032 0 1002 5 0 5 5 0 8 0 filepl 152 6229 0 5986 20 2 18 18 0 8 8 lockfpl 104 279 0 277 1 0 1 1 0 8 0 lockfspl 48 103 0 101 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 45 0 28 1 0 1 1 0 8 0 ucredpl 104 822 0 809 1 0 1 1 0 8 0 zombiepl 144 1194 0 1193 1 0 1 1 0 8 0 processpl 1160 1053 0 1002 4 0 4 4 0 8 0 procpl 648 2099 0 2036 6 0 6 6 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 5 0 5 2 2 0 1 0 8 0 sockpl 664 1516 0 1484 17 6 11 11 0 8 7 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 145 0 0 19 1 18 19 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 223 0 0 14 0 14 14 0 8 0 bufpl 280 5610 0 103 394 0 394 394 0 8 0 anonpl 24 203456 0 199745 67 19 48 59 0 185 10 amapchunkpl 152 28465 0 27927 38 6 32 32 0 158 10 amappl16 200 5117 0 5090 26 19 7 20 0 8 3 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 124 0 112 1 0 1 1 0 8 0 amappl13 176 7 0 7 2 1 1 1 0 8 1 amappl12 168 1700 0 1669 3 1 2 2 0 8 0 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 76 0 76 1 1 0 1 0 8 0 amappl9 144 147 0 147 1 1 0 1 0 8 0 amappl8 136 35 0 32 1 0 1 1 0 8 0 amappl7 128 127 0 115 1 0 1 1 0 8 0 amappl6 120 168 0 167 1 0 1 1 0 8 0 amappl5 112 137 0 125 1 0 1 1 0 8 0 amappl4 104 336 0 315 1 0 1 1 0 8 0 amappl3 96 5281 0 5177 3 0 3 3 0 8 0 amappl2 88 1346 0 1262 4 1 3 3 0 8 0 amappl1 80 10420 0 9855 16 1 15 15 0 8 0 amappl 88 8381 0 8198 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 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 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 20 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1032 0 1001 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1032 0 1001 1 0 1 1 0 8 0 vmmpekpl 168 9898 0 9858 3 0 3 3 0 8 0 vmmpepl 168 71943 0 70066 110 14 96 101 0 357 7 vmsppl 448 1031 0 1001 5 1 4 4 0 8 0 rwobjpl 56 26485 0 22210 62 0 62 62 0 8 0 pdppl 4096 2071 0 2002 109 34 75 79 0 8 6 pvpl 32 17238 0 0 140 0 140 140 0 265 0 pmappl 248 1031 0 1001 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 414 0 55 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(ffffffff8348eff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x25 kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x25 sys/dev/kcov.c:153 __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff800029f9b4b0,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+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff800029f9b620,ffff800000079e00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge25_untramp() at Xintr_ioapic_edge25_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:149 __mp_acquire_count(ffffffff836256d0,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x2f2 sys/kern/kern_synch.c:425 rw_enter(ffffffff8343e4a0,1) at rw_enter+0x348 sys/kern/kern_rwlock.c:285 nd6_timer(0) at nd6_timer+0x51 sys/netinet6/nd6.c:272 timeout_run(ffffffff8362c5d8) at timeout_run+0x118 softclock_thread(ffff8000fffff6c8) at softclock_thread+0x163 sys/kern/kern_timeout.c:811 end trace frame: 0x0, count: -19 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(ffff80000131c028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000131c018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000131c000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff6458) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000ffff22a8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff22a8,ffff8000371da6c0,ffff8000371da610) at sys_exit+0x1a syscall(ffff8000371da6c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371da6c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75ba363562e0, count: -9