witness: lock_object uninitialized: 0xffff800001399028 Starting stack trace... witness_checkorder(ffff800001399028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001399028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001399018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001399000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800037278da0) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800037276558,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800037276558,ffff800033789ce0,ffff800033789c30) at sys_exit+0x1a syscall(ffff800033789ce0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800033789ce0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792bc7704ad0, 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(ffff800001399028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001399018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001399000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800037278da0) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800037276558,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800037276558,ffff800033789ce0,ffff800033789c30) at sys_exit+0x1a syscall(ffff800033789ce0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800033789ce0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792bc7704ad0, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff8000337899b0 rbx 0 rdx 0 rcx 0xffff800037276558 rax 0xffff800029b7bff0 r8 0xffff800033789950 r9 0x8080808080808080 r10 0x392116b29279ca20 r11 0x7726c29e05f9e1 r12 0 r13 0x1 r14 0xffff800001399028 r15 0x3 rip 0xffffffff82b713d5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000337899a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=510619 pid=22359 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800037276558 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff800035d9c2b0,0xffff8000372779a8 process=0xffff800037278da0 user=0xffff800033784000, vmspace=0xfffffd806b854568 estcpu=36, cpticks=16, pctcpu=0.0, user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55720 439468 73286 0 2 0 syz-executor 20949 356696 2226 0 2 0 syz-executor 20949 219539 2226 0 3 0x4000080 fsleep syz-executor 33660 147208 890 0 7 0 syz-executor 33660 155543 890 0 3 0x4000080 netcon syz-executor 33660 461176 890 0 2 0x4000000 syz-executor 15305 144812 30315 0 3 0x1000080 nanoslp syz-executor 15305 156364 30315 0 3 0x5000080 kqsel syz-executor 15305 314679 30315 0 3 0x5000080 fsleep syz-executor 15305 126664 30315 0 2 0x5000000 syz-executor 80796 110516 37276 0 2 0 syz-executor 80796 307047 37276 0 2 0x4000000 syz-executor 36042 107969 64108 0 2 0 syz-executor 36042 160984 64108 0 2 0x4000000 syz-executor 36042 391895 64108 0 3 0x4000080 fsleep syz-executor 23511 483053 68291 0 2 0x10 syz-executor 23511 7597 68291 0 3 0x4000090 kqread syz-executor 23511 355023 68291 0 2 0x4000010 syz-executor 80757 303656 1 0 3 0x100083 ttyin getty 38729 483938 0 0 3 0x14200 bored sosplice 73286 350157 5965 0 3 0x82 nanoslp syz-executor 64108 348212 5965 0 3 0x82 nanoslp syz-executor 2226 375291 5965 0 3 0x82 nanoslp syz-executor 890 191644 5965 0 3 0x82 nanoslp syz-executor 68291 40707 5965 0 3 0x82 nanoslp syz-executor 30315 86470 5965 0 3 0x82 nanoslp syz-executor 22400 16620 5965 0 3 0x82 nanoslp syz-executor 37276 143148 5965 0 3 0x82 nanoslp syz-executor 5965 202926 17922 0 3 0x82 kqread syz-executor 17922 223147 87572 0 3 0x10008a sigsusp ksh 87572 478504 50668 0 3 0x98 kqread sshd-session 50668 166186 34346 0 3 0x92 kqread sshd-session 34346 358071 1 0 3 0x88 kqread sshd 95470 369567 76942 74 3 0x1100092 bpf pflogd 76942 67061 1 0 3 0x80 sbwait pflogd 91069 504849 46702 73 3 0x1100090 kqread syslogd 46702 329281 1 0 3 0x100082 sbwait syslogd 55769 182419 1 0 3 0x100080 kqread resolvd 3312 41757 54725 77 3 0x100092 kqread dhcpleased 73798 229946 54725 77 3 0x100092 kqread dhcpleased 54725 431217 1 0 3 0x80 kqread dhcpleased 93466 394733 0 0 3 0x14200 bored smr 28623 427386 0 0 3 0x14200 pgzero zerothread 32987 257841 0 0 3 0x14200 aiodoned aiodoned 56727 285619 0 0 3 0x14200 syncer update 43758 358019 0 0 3 0x14200 cleaner cleaner 1928 418279 0 0 3 0x14200 reaper reaper 36135 228031 0 0 3 0x14200 pgdaemon pagedaemon 45667 104260 0 0 3 0x14200 bored viomb 20319 278756 0 0 3 0x40014200 acpi0 acpi0 5074 25029 0 0 3 0x40014200 idle1 774 255762 0 0 3 0x14200 bored softnet3 39919 292310 0 0 3 0x14200 bored softnet2 76935 396562 0 0 3 0x14200 bored softnet1 59521 1404 0 0 3 0x14200 bored softnet0 54095 110012 0 0 3 0x14200 bored systqmp 34736 514026 0 0 3 0x14200 bored systq 39243 244614 0 0 3 0x14200 tmoslp softclockmp 28547 432705 0 0 3 0x40014200 tmoslp softclock 78512 398593 0 0 3 0x40014200 idle0 1 413142 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 11129K 11567K 166960K 13468 0 pcb 17 16K 18K 166960K 398 0 rtable 186 5K 7K 166960K 484 0 pf 38 18K 274K 166960K 112 0 ifaddr 38 6K 8K 166960K 74 0 ifgroup 58 2K 2K 166960K 113 0 sysctl 3 0K 1K 166960K 8 0 counters 64 36K 36K 166960K 100 0 ioctlops 0 0K 4K 166960K 1657 0 iov 0 0K 24K 166960K 97 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1489 94K 94K 166960K 2684 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 43 0 VM map 2 1K 1K 166960K 2 0 sem 21 16K 26K 166960K 40 0 dirhash 12 2K 3K 166960K 57 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 1490 0 sigio 0 0K 0K 166960K 31 0 proc 81 127K 128K 166960K 687 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 266 0 in_multi 78 6K 7K 166960K 176 0 ether_multi 1 0K 0K 166960K 10 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 163 731K 731K 166960K 163 0 exec 0 0K 1K 166960K 635 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 73K 88K 166960K 16523 0 UVM aobj 13 2K 2K 166960K 14 0 pinsyscall 43 86K 106K 166960K 2602 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 150 0 NDP 12 0K 2K 166960K 49 0 temp 78 6828K 6955K 166960K 47037 0 kqueue 14 22K 30K 166960K 248 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 191 0 188 3 2 1 3 0 8 0 rtentry 112 153 0 69 4 0 4 4 0 8 0 unpcb 144 1193 0 1175 11 7 4 5 0 8 3 syncache 336 8 0 8 5 5 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 669 0 660 15 13 2 8 0 8 0 arp 120 27 0 7 1 0 1 1 0 8 0 inpcb 336 2363 0 2351 15 10 5 10 0 8 3 nd6 136 35 0 14 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 12 0 12 3 3 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 15 0 7 1 0 1 1 0 482 0 pffrnode 88 14 0 6 1 0 1 1 0 8 0 pffrent 40 22 0 14 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 2 1 1 0 1 0 8 0 pfstitem 24 109 0 43 1 0 1 1 0 8 0 pfstkey 128 111 0 45 3 0 3 3 0 8 0 pfstate 376 109 0 44 7 0 7 7 0 8 0 pfrule 1344 25 0 20 2 0 2 2 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 630 0 241 33 6 27 33 0 8 0 art_table 32 632 0 241 5 0 5 5 0 8 0 art_node 16 152 0 76 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 9 3 2 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 31 0 12 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 47 0 30 3 0 3 3 0 8 0 dino2pl 256 4158 0 2657 95 0 95 95 0 8 0 ffsino 272 4158 0 2657 102 0 102 102 0 8 0 nchpl 144 6367 0 4678 63 0 63 63 0 8 0 uvmvnodes 80 5091 0 0 104 0 104 104 0 8 0 vnodes 216 5091 0 0 283 0 283 283 0 8 0 namei 1024 23306 0 23306 4 3 1 2 0 8 1 percpumem 16 64 0 18 1 0 1 1 0 8 0 kstatmem 264 60 0 36 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 2 0 1 0 8 0 scxspl 216 20116 0 20116 21 18 3 8 1 8 3 plimitpl 152 512 0 494 1 0 1 1 0 8 0 sigapl 424 1821 0 1770 11 4 7 9 0 8 0 futexpl 64 22446 0 22443 1 0 1 1 0 8 0 knotepl 120 614 0 0 18 0 18 18 0 8 0 kqueuepl 216 486 0 474 5 4 1 5 0 8 0 pipepl 320 303 0 275 8 5 3 8 0 8 0 fdescpl 496 1780 0 1749 5 0 5 5 0 8 0 filepl 152 12997 0 12746 23 9 14 17 0 8 3 lockfpl 104 647 0 643 2 1 1 2 0 8 0 lockfspl 48 219 0 215 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 51 0 34 1 0 1 1 0 8 0 ucredpl 104 1968 0 1952 1 0 1 1 0 8 0 zombiepl 144 2577 0 2576 2 1 1 1 0 8 0 processpl 1160 1821 0 1770 7 3 4 6 0 8 0 procpl 648 4345 0 4283 10 3 7 8 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 8 0 8 4 3 1 1 0 8 1 sockpl 664 3815 0 3783 20 9 11 14 0 8 7 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 134 0 0 17 0 17 17 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 69 0 0 9 0 9 9 0 8 0 mtagpl 96 14 0 0 1 0 1 1 0 8 0 mbufpl 256 600 0 0 36 0 36 36 0 8 0 bufpl 280 6743 0 569 442 0 442 442 0 8 0 anonpl 24 276822 0 272716 83 33 50 50 0 185 16 amapchunkpl 152 53967 0 53390 48 16 32 32 0 158 8 amappl16 200 6398 0 6363 43 33 10 15 0 8 8 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 128 0 115 1 0 1 1 0 8 0 amappl13 176 27 0 27 1 1 0 1 0 8 0 amappl12 168 2437 0 2405 4 1 3 3 0 8 0 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 161 0 160 2 1 1 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 116 0 103 1 0 1 1 0 8 0 amappl6 120 163 0 161 1 0 1 1 0 8 0 amappl5 112 143 0 130 1 0 1 1 0 8 0 amappl4 104 340 0 320 1 0 1 1 0 8 0 amappl3 96 9941 0 9834 4 1 3 4 0 8 0 amappl2 88 2099 0 2013 4 1 3 3 0 8 0 amappl1 80 12877 0 12305 16 2 14 14 0 8 0 amappl 88 16007 0 15814 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 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 7 0 7 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 13 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1780 0 1748 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1780 0 1748 1 0 1 1 0 8 0 vmmpekpl 168 16293 0 16257 3 0 3 3 0 8 0 vmmpepl 168 115579 0 113631 112 16 96 96 0 357 6 vmsppl 448 1779 0 1748 6 2 4 5 0 8 0 rwobjpl 56 38324 0 32250 90 2 88 88 0 8 1 pdppl 4096 3567 0 3496 111 40 71 85 0 8 0 pvpl 32 15391 0 0 125 1 124 124 0 265 0 pmappl 248 1779 0 1748 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 463 0 85 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff834ffff0) 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(ffffffff8363b2e0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8363b2e0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff800035d9b620,ffff800000069c00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __mp_lock(ffffffff8363b2e0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8363b2e0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff800035d9b780,ffff800000079e00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge25_untramp() at Xintr_ioapic_edge25_untramp+0x18f __mp_lock(ffffffff8363b2e0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8363b2e0) 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 end of kernel end trace frame: 0x7e7d5aab54b0, 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(ffff800001399028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001399018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001399000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800037278da0) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800037276558,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800037276558,ffff800033789ce0,ffff800033789c30) at sys_exit+0x1a syscall(ffff800033789ce0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800033789ce0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x792bc7704ad0, count: -9