witness: lock_object uninitialized: 0xffff80000147f028 Starting stack trace... witness_checkorder(ffff80000147f028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff80000147f028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff80000147f018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000147f000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002d575238) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000371cf470,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit( ffff8000371cf470,ffff8000371e3090,ffff8000371e2fe0) at sys_exit+0x1a syscall(ffff8000371e3090) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e3090) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a88b5006a0, 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(ffff80000147f028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000147f018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000147f000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002d575238) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000371cf470,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000371cf470,ffff8000371e3090,ffff8000371e2fe0) at sys_exit+0x1a syscall(ffff8000371e3090) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e3090) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a88b5006a0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000371e2d60 rbx 0 rdx 0 rcx 0xffff8000371cf470 rax 0xffffffff834f2ff0 cpu_info_full_primary+0x1ff0 r8 0xffff8000371e2d00 r9 0x8080808080808080 r10 0x3e50d927e0d515e3 r11 0x4171e9322bc173c2 r12 0 r13 0x1 r14 0xffff80000147f028 r15 0x3 rip 0xffffffff81ac00e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371e2d50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=337745 pid=21110 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000371cf470 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000371cf6f8,0xffffffff836345a0 process=0xffff80002d575238 user=0xffff8000371de000, vmspace=0xfffffd806b019e20 estcpu=35, cpticks=7, pctcpu=0.2, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82718 469507 20232 0 2 0 syz-executor 82718 372579 20232 0 3 0x4000080 fsleep syz-executor 39268 499421 85417 0 2 0x2 ifconfig 85417 387283 76401 0 3 0x10008a sigsusp sh 38086 372135 83931 0 2 0 syz-executor 38086 494200 83931 0 3 0x4000080 fsleep syz-executor 69630 293623 87877 0 2 0x1 syz-executor 69630 68863 87877 0 3 0x4000080 fsleep syz-executor 69446 122397 72896 0 2 0 syz-executor 69446 129312 72896 0 7 0x4000000 syz-executor 69446 348146 72896 0 3 0x4000080 fsleep syz-executor 64604 217835 75968 0 2 0 syz-executor 64604 122019 75968 0 3 0x4000080 fsleep syz-executor 18127 129839 67691 0 2 0 syz-executor 18127 498834 67691 0 2 0x4000000 syz-executor 76401 481412 44297 0 3 0x82 wait syz-executor 75968 32348 44297 0 2 0x482 syz-executor 15999 167243 0 0 3 0x14200 acct acct 83931 150280 44297 0 2 0x482 syz-executor 3694 244540 1 0 2 0x100083 getty 60231 126504 0 0 3 0x14200 bored sosplice 87685 71513 23640 0 3 0x100082 sbwait ndp 23640 3287 1 0 3 0x10008a sigsusp sh 20232 445109 44297 0 2 0x482 syz-executor 87877 262640 44297 0 2 0x482 syz-executor 72896 311794 44297 0 2 0x482 syz-executor 31067 510238 44297 0 2 0x482 syz-executor 67691 335066 44297 0 2 0x482 syz-executor 44297 34851 58488 0 3 0x82 kqread syz-executor 58488 81069 76623 0 3 0x10008a sigsusp ksh 76623 192875 24554 0 3 0x98 kqread sshd-session 24554 119940 7828 0 3 0x92 kqread sshd-session 7828 257027 1 0 3 0x88 kqread sshd 26448 126465 79233 74 3 0x1100092 bpf pflogd 79233 373426 1 0 3 0x80 sbwait pflogd 56420 393052 67458 73 2 0x1100090 syslogd 67458 261538 1 0 3 0x100082 sbwait syslogd 73054 20373 1 0 3 0x100080 kqread resolvd 2567 261183 67957 77 3 0x100092 kqread dhcpleased 11065 225965 67957 77 3 0x100092 kqread dhcpleased 67957 388749 1 0 3 0x80 kqread dhcpleased 72684 473388 0 0 3 0x14200 bored smr 87388 175466 0 0 2 0x14200 zerothread 55909 437251 0 0 3 0x14200 aiodoned aiodoned 40093 223733 0 0 3 0x14200 syncer update 39998 391315 0 0 3 0x14200 cleaner cleaner 31076 264612 0 0 3 0x14200 reaper reaper 36191 469488 0 0 3 0x14200 pgdaemon pagedaemon 11484 75938 0 0 3 0x14200 bored viomb 4423 440119 0 0 3 0x40014200 acpi0 acpi0 58051 320948 0 0 3 0x40014200 idle1 17109 445264 0 0 3 0x14200 bored softnet3 11139 2264 0 0 3 0x14200 bored softnet2 65632 363328 0 0 3 0x14200 bored softnet1 15700 40179 0 0 2 0x14200 softnet0 59431 106981 0 0 3 0x14200 bored systqmp 68075 17427 0 0 3 0x14200 bored systq 71271 334238 0 0 2 0x14200 softclockmp 7765 363334 0 0 2 0x40014200 softclock 76112 177439 0 0 3 0x40014200 idle0 1 87827 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 38086 (syz-executor) thread 0xffff80003239d1e0 (372135) exclusive rwlock vmmaplk r = 0 (0xfffffd806b0199d8) #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 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1813 #3 uvm_fault_check+0x831 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #3 uvm_fault_check+0x831 sys/uvm/uvm_fault.c:712 #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 18127 (syz-executor) thread 0xffff80003239ccd0 (498834) exclusive rrwlock inode r = 0 (0xfffffd806ec8c4e0) #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 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:678 #6 cache_lookup+0x36e sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x218 sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 #10 namei+0x7aa sys/kern/vfs_lookup.c:250 #11 vn_open+0x13f sys/kern/vfs_vnops.c:140 #12 doopenat+0x31d sys/kern/vfs_syscalls.c:1123 #13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10231 11211K 12429K 166960K 13263 0 pcb 17 15K 16K 166960K 270 0 rtable 206 6K 7K 166960K 1001 0 pf 40 18K 23K 166960K 196 0 ifaddr 41 7K 8K 166960K 119 0 ifgroup 59 2K 2K 166960K 151 0 sysctl 4 1K 3K 166960K 6 0 counters 66 36K 36K 166960K 120 0 ioctlops 0 0K 4K 166960K 1662 0 iov 0 0K 16K 166960K 132 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1542 97K 97K 166960K 2680 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 21 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 118 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 20 73K 93K 166960K 1401 0 sigio 0 0K 0K 166960K 85 0 proc 78 115K 128K 166960K 989 0 subproc 117 7K 7K 166960K 273 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 214 0 in_multi 84 6K 7K 166960K 288 0 ether_multi 1 0K 0K 166960K 8 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 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 727 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 255 74K 88K 166960K 14506 0 UVM aobj 131 4K 4K 166960K 133 0 pinsyscall 47 94K 106K 166960K 2884 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 135 0 NDP 13 0K 2K 166960K 82 0 temp 78 6828K 6924K 166960K 52637 0 kqueue 14 22K 30K 166960K 205 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 132 0 128 1 0 1 1 0 8 0 rtentry 112 362 0 269 4 0 4 4 0 8 0 unpcb 144 1235 0 1218 18 15 3 6 0 8 2 syncache 336 14 0 14 7 6 1 1 0 8 1 tcpqe 32 5 0 5 4 4 0 1 0 8 0 tcpcb 808 535 0 526 18 16 2 8 0 8 1 arp 120 76 0 60 1 0 1 1 0 8 0 inpcb 336 1648 0 1631 28 23 5 17 0 8 3 nd6 136 67 0 41 1 0 1 1 0 8 0 pkpcb 40 8 0 8 4 4 0 1 0 8 0 kcovpl 48 21 0 12 1 0 1 1 0 8 0 ppxss 1168 11 0 11 5 5 0 1 0 8 0 pfstscr 40 3 0 3 1 1 0 1 0 8 0 pffrag 232 44 0 35 1 0 1 1 0 482 0 pffrnode 88 44 0 35 1 0 1 1 0 8 0 pffrent 40 127 0 118 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 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 28 0 19 1 0 1 1 0 8 0 pfstkey 128 34 0 25 1 0 1 1 0 8 0 pfstate 376 31 0 23 3 0 3 3 0 8 1 pfrule 1344 33 0 22 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1300 0 886 32 3 29 29 0 8 2 art_table 32 1302 0 886 4 0 4 4 0 8 0 art_node 16 360 0 276 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3605 0 2084 96 0 96 96 0 8 0 ffsino 272 3605 0 2084 102 0 102 102 0 8 0 nchpl 144 5347 0 3622 64 0 64 64 0 8 0 uvmvnodes 80 4620 0 0 95 0 95 95 0 8 0 vnodes 216 4620 0 0 257 0 257 257 0 8 0 namei 1024 20456 0 20456 5 4 1 2 0 8 1 percpumem 16 74 0 27 1 0 1 1 0 8 0 kstatmem 264 80 0 54 2 0 2 2 0 8 0 scsiplug 72 5 0 5 3 2 1 1 0 8 1 scxspl 216 18232 0 18232 13 12 1 8 1 8 1 plimitpl 152 276 0 258 1 0 1 1 0 8 0 sigapl 424 1700 0 1645 8 1 7 7 0 8 0 futexpl 64 16748 0 16743 1 0 1 1 0 8 0 knotepl 120 560 0 0 16 0 16 16 0 8 0 kqueuepl 216 398 0 388 7 6 1 5 0 8 0 pipepl 320 434 0 403 11 8 3 8 0 8 0 fdescpl 496 1678 0 1644 5 0 5 5 0 8 0 filepl 152 11311 0 11046 32 19 13 18 0 8 1 lockfpl 104 646 0 644 2 1 1 2 0 8 0 lockfspl 48 231 0 229 1 0 1 1 0 8 0 sessionpl 144 46 0 37 1 0 1 1 0 8 0 pgrppl 48 115 0 97 1 0 1 1 0 8 0 ucredpl 104 1449 0 1436 1 0 1 1 0 8 0 zombiepl 144 2165 0 2164 2 1 1 1 0 8 0 processpl 1160 1700 0 1645 5 0 5 5 0 8 0 procpl 648 3663 0 3601 8 2 6 7 0 8 0 srpgc 96 16 0 16 4 3 1 1 0 8 1 sosppl 168 12 0 12 5 4 1 1 0 8 1 sockpl 664 3044 0 3009 44 35 9 20 0 8 5 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 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 143 0 0 18 0 18 18 0 8 0 mcl2k 2048 60 0 0 7 1 6 7 0 8 0 mtagpl 96 27 0 0 1 0 1 1 0 8 0 mbufpl 256 366 0 0 22 0 22 22 0 8 0 bufpl 280 7050 0 876 442 0 442 442 0 8 0 anonpl 24 297678 0 291998 80 33 47 59 0 185 2 amapchunkpl 152 47980 0 47371 49 20 29 33 0 158 5 amappl16 200 7155 0 7095 24 16 8 16 0 8 0 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 198 0 185 1 0 1 1 0 8 0 amappl13 176 14 0 14 2 2 0 1 0 8 0 amappl12 168 2597 0 2560 4 1 3 3 0 8 0 amappl11 160 94 0 80 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 148 0 148 1 1 0 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 153 0 140 1 0 1 1 0 8 0 amappl6 120 355 0 350 1 0 1 1 0 8 0 amappl5 112 200 0 188 1 0 1 1 0 8 0 amappl4 104 458 0 435 1 0 1 1 0 8 0 amappl3 96 8563 0 8460 3 0 3 3 0 8 0 amappl2 88 2088 0 1998 3 0 3 3 0 8 0 amappl1 80 14685 0 14082 15 0 15 15 0 8 0 amappl 88 13898 0 13709 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 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 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 21 0 20 1 0 1 1 0 8 0 aobjpl 72 132 0 2 3 0 3 3 0 8 0 uaddrrnd 24 1678 0 1643 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1678 0 1643 1 0 1 1 0 8 0 vmmpekpl 168 16033 0 15987 3 0 3 3 0 8 0 vmmpepl 168 114415 0 112392 109 18 91 99 0 357 0 vmsppl 448 1677 0 1643 6 1 5 5 0 8 0 rwobjpl 56 39315 0 33526 83 1 82 82 0 8 0 pdppl 4096 3363 0 3286 133 56 77 85 0 8 0 pvpl 32 16825 0 0 137 1 136 136 0 265 0 pmappl 248 1677 0 1643 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 492 0 119 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(ffff80000147f028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000147f018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000147f000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80002d575238) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000371cf470,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000371cf470,ffff8000371e3090,ffff8000371e2fe0) at sys_exit+0x1a syscall(ffff8000371e3090) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e3090) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a88b5006a0, 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+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000363a9000) at syscall+0x2cc mi_syscall sys/sys/syscall_mi.h:155 [inline] syscall(ffff8000363a9000) at syscall+0x2cc sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x96844c90e10, count: -6