witness: lock_object uninitialized: 0xffff800001309028 Starting stack trace... witness_checkorder(ffff800001309028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001309028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001309018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001309000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff16c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000fffee538,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000fffee538,ffff80002e97c7f0,ffff80002e97c740) at sys_exit+0x1a syscall(ffff80002e97c7f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002e97c7f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70d621b2b2b0, count: 249 End of stack trace. Stopped at db_enter+0x25: addq $0x8,%rsp 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(ffff800001309028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001309018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001309000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff16c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000fffee538,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000fffee538,ffff80002e97c7f0,ffff80002e97c740) at sys_exit+0x1a syscall(ffff80002e97c7f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002e97c7f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70d621b2b2b0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002e97c4c0 rbx 0 rdx 0 rcx 0xffff8000fffee538 rax 0xffffffff834f2ff0 cpu_info_full_primary+0x1ff0 r8 0xffff80002e97c460 r9 0x8080808080808080 r10 0x8468b5a0e93d9c2d r11 0x5a2a9b456acd6c8a r12 0 r13 0x1 r14 0xffff800001309028 r15 0x3 rip 0xffffffff81ac00e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002e97c4b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=151731 pid=99158 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=75, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000fffee538 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff800029fd91c0,0xffff80002a04fc08 process=0xffff8000ffff16c8 user=0xffff80002e977000, vmspace=0xfffffd80647523a8 estcpu=25, cpticks=11, pctcpu=0.2, user=0, sys=10, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47400 456599 28566 0 2 0 syz-executor 47400 387633 28566 0 2 0x4000000 syz-executor 43402 266303 44230 60928 7 0x10 syz-executor 43402 335184 44230 60928 2 0x4000010 syz-executor 43402 415710 44230 60928 3 0x4000090 fsleep syz-executor 28191 108194 21663 0 2 0 syz-executor 28191 69506 21663 0 3 0x4000080 fsleep syz-executor 51962 177161 45094 0 2 0 syz-executor 51962 316544 45094 0 2 0x4000000 syz-executor 29783 256855 84728 0 3 0 futex syz-executor 29783 441979 84728 0 3 0x4000080 fsleep syz-executor 29783 102059 84728 0 3 0x4000080 fsleep syz-executor 21295 502074 80921 60929 4 0x82014 syz-executor 21295 245896 80921 60929 2 0x4002014 syz-executor 21295 455073 80921 60929 4 0x4082014 syz-executor 21295 506651 80921 60929 4 0x4082014 syz-executor 74339 66496 63160 0 2 0 syz-executor 74339 80559 63160 0 3 0x4000080 fsleep syz-executor 74339 71287 63160 0 3 0x4000080 fsleep syz-executor 74339 500486 63160 0 3 0x4000080 fsleep syz-executor 28566 172826 73467 0 2 0x482 syz-executor 84728 350246 73467 0 2 0x482 syz-executor 97444 285226 73467 0 2 0x482 syz-executor 45094 386864 73467 0 2 0x482 syz-executor 21663 267854 73467 0 2 0x2 syz-executor 80921 9344 73467 0 2 0x482 syz-executor 44230 76628 73467 0 2 0x2 syz-executor 63160 428259 73467 0 2 0x482 syz-executor 73467 408061 65848 0 3 0x82 kqread syz-executor 65848 53064 40223 0 3 0x10008a sigsusp ksh 40223 120662 98089 0 3 0x98 kqread sshd-session 98089 476319 35506 0 3 0x92 kqread sshd-session 90295 342970 1 0 2 0x100083 getty 35506 399005 1 0 3 0x88 kqread sshd 7654 386800 90621 74 3 0x1100092 bpf pflogd 90621 100698 1 0 3 0x80 sbwait pflogd 98641 428804 7139 73 2 0x1100090 syslogd 7139 62292 1 0 3 0x100082 sbwait syslogd 10276 119014 1 0 3 0x100080 kqread resolvd 53837 26004 16067 77 3 0x100092 kqread dhcpleased 46863 114174 16067 77 3 0x100092 kqread dhcpleased 16067 449289 1 0 3 0x80 kqread dhcpleased 30811 65368 0 0 3 0x14200 bored smr 26564 162441 0 0 3 0x14200 pgzero zerothread 63562 92052 0 0 3 0x14200 aiodoned aiodoned 11760 366089 0 0 3 0x14200 syncer update 36865 386431 0 0 3 0x14200 cleaner cleaner 81103 492579 0 0 3 0x14200 reaper reaper 8759 123864 0 0 3 0x14200 pgdaemon pagedaemon 31079 119219 0 0 3 0x14200 bored viomb 17671 519906 0 0 3 0x40014200 acpi0 acpi0 65052 234814 0 0 3 0x40014200 idle1 7614 222873 0 0 3 0x14200 bored softnet3 54870 471416 0 0 3 0x14200 bored softnet2 68601 231131 0 0 3 0x14200 bored softnet1 41980 112578 0 0 2 0x14200 softnet0 94765 191922 0 0 3 0x14200 bored systqmp 95344 141519 0 0 3 0x14200 bored systq 92749 320972 0 0 3 0x14200 tmoslp softclockmp 1938 180633 0 0 2 0x40014200 softclock 66500 177486 0 0 3 0x40014200 idle0 1 92729 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 43402 (syz-executor) thread 0xffff8000fffef1e0 (335184) exclusive rwlock futex r = 0 (0xffffffff834f4610) #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 sys_futex+0x69 sys/kern/sys_futex.c:98 #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10191 11177K 11306K 166960K 11342 0 pcb 18 12K 12K 166960K 34 0 rtable 236 6K 6K 166960K 394 0 pf 36 18K 22K 166960K 53 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 55 2K 2K 166960K 55 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 4K 166960K 1555 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1368 86K 86K 166960K 1429 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 8 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 89K 166960K 213 0 proc 77 127K 140K 166960K 540 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 11 0 in_multi 99 7K 7K 166960K 104 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 1 0K 1K 166960K 380 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 257 73K 73K 166960K 3611 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 43 86K 103K 166960K 1340 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 12 0K 2K 166960K 28 0 temp 41 6819K 6883K 166960K 4383 0 kqueue 14 20K 22K 166960K 32 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 43 0 40 1 0 1 1 0 8 0 rtentry 112 112 0 1 4 0 4 4 0 8 0 unpcb 144 66 0 47 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpcb 808 28 0 24 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 336 128 0 117 2 0 2 2 0 8 0 nd6 136 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 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 3 0 3 1 1 0 1 0 8 0 pfstitem 24 23 0 0 1 0 1 1 0 8 0 pfstkey 128 27 0 4 1 0 1 1 0 8 0 pfstate 376 25 0 2 3 0 3 3 0 8 0 pfrule 1344 24 0 17 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 455 0 0 29 0 29 29 0 8 0 art_table 32 456 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 6 0 2 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1680 0 168 95 0 95 95 0 8 0 ffsino 272 1680 0 168 102 0 102 102 0 8 0 nchpl 144 1975 0 286 63 0 63 63 0 8 0 uvmvnodes 80 1831 0 0 38 0 38 38 0 8 0 vnodes 216 1831 0 0 102 0 102 102 0 8 0 namei 1024 6170 0 6168 4 3 1 2 0 8 0 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 5714 0 5714 3 2 1 2 1 8 1 plimitpl 152 34 0 16 1 0 1 1 0 8 0 sigapl 424 527 0 477 7 1 6 7 0 8 0 futexpl 64 1167 0 1159 1 0 1 1 0 8 0 knotepl 120 313 0 0 10 0 10 10 0 8 0 kqueuepl 216 31 0 20 1 0 1 1 0 8 0 pipepl 320 116 0 89 3 0 3 3 0 8 0 fdescpl 496 509 0 478 5 0 5 5 0 8 0 filepl 152 1950 0 1691 12 1 11 11 0 8 0 lockfpl 104 31 0 29 1 0 1 1 0 8 0 lockfspl 48 15 0 13 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 16 1 0 1 1 0 8 0 ucredpl 104 124 0 108 1 0 1 1 0 8 0 zombiepl 144 482 0 481 1 0 1 1 0 8 0 processpl 1160 527 0 477 5 1 4 5 0 8 0 procpl 648 673 0 610 6 0 6 6 0 8 0 sockpl 664 241 0 208 5 1 4 4 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 133 0 0 17 0 17 17 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 214 0 0 13 0 13 13 0 8 0 bufpl 280 2311 0 96 159 0 159 159 0 8 0 anonpl 24 142881 0 139308 46 22 24 46 0 185 0 amapchunkpl 152 11383 0 10818 22 0 22 22 0 158 0 amappl16 200 3722 0 3698 14 12 2 14 0 8 0 amappl15 192 37 0 37 1 1 0 1 0 8 0 amappl14 184 120 0 107 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1175 0 1143 4 2 2 3 0 8 0 amappl11 160 59 0 44 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 169 0 169 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 120 0 108 1 0 1 1 0 8 0 amappl6 120 171 0 170 1 0 1 1 0 8 0 amappl5 112 140 0 127 1 0 1 1 0 8 0 amappl4 104 346 0 326 1 0 1 1 0 8 0 amappl3 96 2044 0 1935 3 0 3 3 0 8 0 amappl2 88 805 0 721 3 0 3 3 0 8 0 amappl1 80 8567 0 7995 14 0 14 14 0 8 0 amappl 88 3208 0 3014 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 509 0 477 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 509 0 477 1 0 1 1 0 8 0 vmmpekpl 168 5988 0 5956 2 0 2 2 0 8 0 vmmpepl 168 40333 0 38407 93 6 87 93 0 357 1 vmsppl 448 508 0 477 6 2 4 5 0 8 0 rwobjpl 56 17669 0 14876 41 0 41 41 0 8 0 pdppl 4096 1025 0 954 107 36 71 85 0 8 0 pvpl 32 13533 0 0 111 1 110 110 0 265 0 pmappl 248 508 0 477 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 389 0 44 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(ffff800001309028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001309018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001309000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff16c8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000fffee538,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000fffee538,ffff80002e97c7f0,ffff80002e97c740) at sys_exit+0x1a syscall(ffff80002e97c7f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002e97c7f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70d621b2b2b0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at 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+0x190 __mp_lock_spin sys/kern/kern_lock.c:114 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x190 sys/kern/kern_lock.c:144 dorefreshcreds(ffff8000ffff0930,ffff80002a04f1d8) at dorefreshcreds+0x31 sys/kern/kern_prot.c:1177 syscall(ffff800034b94b40) at syscall+0x1c7 refreshcreds sys/sys/proc.h:589 [inline] syscall(ffff800034b94b40) at syscall+0x1c7 mi_syscall sys/sys/syscall_mi.h:140 [inline] syscall(ffff800034b94b40) at syscall+0x1c7 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78c35ff710c0, count: -7