witness: lock_object uninitialized: 0xffff80000139a028 Starting stack trace... witness_checkorder(ffff80000139a028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff80000139a028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff80000139a018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000139a000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80003378f680) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1647d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1647d8,ffff80003728de90,ffff80003728dde0) at sys_exit+0x1a syscall(ffff80003728de90) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003728de90) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ef602c6ee40, 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(ffff80000139a028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000139a018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000139a000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80003378f680) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1647d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1647d8,ffff80003728de90,ffff80003728dde0) at sys_exit+0x1a syscall(ffff80003728de90) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003728de90) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ef602c6ee40, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003728db60 rbx 0 rdx 0 rcx 0xffff80002a1647d8 rax 0xffff800029b7bff0 r8 0xffff80003728db00 r9 0x8080808080808080 r10 0xf2459241f98f753e r11 0xaf0f030457f6e8de r12 0 r13 0x1 r14 0xffff80000139a028 r15 0x3 rip 0xffffffff81ac00e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003728db50 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=403113 pid=86880 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a1647d8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003378b468,0xffff80003378a548 process=0xffff80003378f680 user=0xffff800037288000, vmspace=0xfffffd806b140568 estcpu=36, cpticks=11, pctcpu=0.0, user=0, sys=9, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5193 89782 89176 0 2 0 syz-executor 5193 205885 89176 0 3 0x4000080 fsleep syz-executor 5193 205880 89176 0 2 0x4000000 syz-executor 4253 52705 82177 0 7 0 syz-executor 4253 134717 82177 0 2 0x4000000 syz-executor 74186 178662 3526 0 2 0 syz-executor 74186 253916 3526 0 3 0x4000080 fsleep syz-executor 13817 31966 66835 0 3 0x80 nanoslp syz-executor 13817 156737 66835 0 3 0x4000080 lockf syz-executor 13817 478851 66835 0 3 0x4000080 fsleep syz-executor 72842 412504 22086 0 3 0x80 nanoslp syz-executor 72842 347117 22086 0 3 0x4000080 sbwait syz-executor 72842 225069 22086 0 3 0x4000080 fsleep syz-executor 72842 513390 22086 0 3 0x4000080 fsleep syz-executor 55449 99341 54378 0 3 0x80 nanoslp syz-executor 55449 486728 54378 0 3 0x4000080 kqsel syz-executor 7379 194124 95954 0 3 0x80 nanoslp syz-executor 7379 93801 95954 0 3 0x4000080 kqread syz-executor 7379 127112 95954 0 3 0x4000080 fsleep syz-executor 32651 488172 1 0 3 0x100083 ttyin getty 66835 476514 77597 0 3 0x82 nanoslp syz-executor 3526 380650 77597 0 3 0x82 nanoslp syz-executor 53062 233496 0 0 3 0x14200 bored sosplice 12744 188113 77597 0 3 0x82 nanoslp syz-executor 22086 486121 77597 0 3 0x82 nanoslp syz-executor 82177 404695 77597 0 3 0x82 nanoslp syz-executor 89176 48167 77597 0 3 0x82 nanoslp syz-executor 95954 426509 77597 0 3 0x82 nanoslp syz-executor 54378 424227 77597 0 3 0x82 nanoslp syz-executor 77597 197388 4753 0 3 0x82 kqread syz-executor 4753 428318 40084 0 3 0x10008a sigsusp ksh 40084 218023 44008 0 3 0x98 kqread sshd-session 44008 88177 31741 0 3 0x92 kqread sshd-session 31741 43173 1 0 3 0x88 kqread sshd 47459 327447 74146 74 3 0x1100092 bpf pflogd 74146 521304 1 0 3 0x80 sbwait pflogd 96958 15058 12422 73 3 0x1100090 kqread syslogd 12422 283037 1 0 3 0x100082 sbwait syslogd 84052 126619 1 0 3 0x100080 kqread resolvd 11554 96106 3961 77 3 0x100092 kqread dhcpleased 47800 171065 3961 77 3 0x100092 kqread dhcpleased 3961 266201 1 0 3 0x80 kqread dhcpleased 84814 371510 0 0 3 0x14200 bored smr 57047 304579 0 0 3 0x14200 pgzero zerothread 19788 296044 0 0 3 0x14200 aiodoned aiodoned 51549 212481 0 0 3 0x14200 syncer update 65627 205567 0 0 3 0x14200 cleaner cleaner 69711 157411 0 0 3 0x14200 reaper reaper 95434 488546 0 0 3 0x14200 pgdaemon pagedaemon 33195 503212 0 0 3 0x14200 bored viomb 32097 224325 0 0 3 0x40014200 acpi0 acpi0 24957 17666 0 0 3 0x40014200 idle1 66280 142563 0 0 3 0x14200 bored softnet3 81655 457478 0 0 3 0x14200 bored softnet2 49438 290648 0 0 3 0x14200 bored softnet1 93099 233677 0 0 3 0x14200 bored softnet0 53660 403900 0 0 3 0x14200 bored systqmp 56074 412658 0 0 3 0x14200 bored systq 61329 331763 0 0 3 0x14200 tmoslp softclockmp 110 350648 0 0 3 0x40014200 tmoslp softclock 61568 20108 0 0 3 0x40014200 idle0 1 444824 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 5193 (syz-executor) thread 0xffff80003378a028 (205880) exclusive rwlock vmmaplk r = 0 (0xfffffd806b140f20) #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 4253 (syz-executor) thread 0xffff80002a165480 (134717) exclusive rwlock vmmaplk r = 0 (0xfffffd806b140820) #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_map_protect+0xe1 sys/uvm/uvm_map.c:3057 #3 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 Process 74186 (syz-executor) thread 0xffff80002a164550 (178662) exclusive rwlock vmmaplk r = 0 (0xfffffd806b140d60) #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_map_protect+0xe1 sys/uvm/uvm_map.c:3057 #3 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:585 #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10212 11137K 11583K 166960K 13289 0 pcb 17 16K 18K 166960K 414 0 rtable 160 6K 7K 166960K 535 0 pf 35 17K 20K 166960K 82 0 ifaddr 34 5K 7K 166960K 71 0 ifgroup 54 2K 2K 166960K 94 0 sysctl 2 0K 0K 166960K 6 0 counters 62 36K 36K 166960K 86 0 ioctlops 0 0K 4K 166960K 1660 0 iov 0 0K 18K 166960K 84 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1455 91K 92K 166960K 2603 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 42 0 dirhash 12 2K 3K 166960K 39 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 1385 0 sigio 0 0K 0K 166960K 91 0 proc 78 115K 128K 166960K 703 0 subproc 104 6K 6K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 173 0 in_multi 72 5K 7K 166960K 176 0 ether_multi 2 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 169 758K 758K 166960K 169 0 exec 0 0K 1K 166960K 619 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 264 83K 88K 166960K 14726 0 UVM aobj 97 4K 4K 166960K 99 0 pinsyscall 43 86K 110K 166960K 2535 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 88 0 NDP 11 0K 2K 166960K 44 0 temp 77 6828K 7084K 166960K 68143 0 kqueue 13 20K 30K 166960K 205 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 284 0 281 4 2 2 3 0 8 1 rtentry 112 157 0 89 4 0 4 4 0 8 0 unpcb 144 1426 0 1407 15 9 6 6 0 8 5 syncache 336 8 0 8 2 2 0 1 0 8 0 tcpcb 808 421 0 417 11 10 1 8 0 8 0 arp 120 25 0 14 1 0 1 1 0 8 0 inpcb 336 1744 0 1729 23 18 5 10 0 8 3 nd6 136 33 0 17 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 2 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1168 6 0 6 2 1 1 1 0 8 1 pffrag 232 13 0 5 1 0 1 1 0 482 0 pffrnode 88 13 0 5 1 0 1 1 0 8 0 pffrent 40 174 0 166 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 85 0 28 1 0 1 1 0 8 0 pfstkey 128 88 0 31 3 0 3 3 0 8 0 pfstate 376 87 0 30 7 0 7 7 0 8 0 pfrule 1344 27 0 20 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 677 0 341 31 6 25 29 0 8 0 art_table 32 680 0 341 4 0 4 4 0 8 0 art_node 16 153 0 93 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 38 0 28 1 0 1 1 0 8 0 shmpl 112 96 0 2 3 0 3 3 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3998 0 2498 95 0 95 95 0 8 0 ffsino 272 3998 0 2498 101 0 101 101 0 8 0 nchpl 144 5979 0 4288 64 0 64 64 0 8 0 uvmvnodes 80 4806 0 0 99 0 99 99 0 8 0 vnodes 216 4806 0 0 267 0 267 267 0 8 0 namei 1024 20976 0 20976 3 2 1 1 0 8 1 percpumem 16 57 0 12 1 0 1 1 0 8 0 kstatmem 264 46 0 24 2 0 2 2 0 8 0 scsiplug 72 8 0 8 3 2 1 1 0 8 1 scxspl 216 17195 0 17195 13 12 1 8 1 8 1 plimitpl 152 358 0 341 1 0 1 1 0 8 0 sigapl 424 1709 0 1658 11 3 8 9 0 8 0 futexpl 64 19023 0 19017 1 0 1 1 0 8 0 knotepl 120 562 0 0 18 0 18 18 0 8 0 kqueuepl 216 392 0 381 3 2 1 3 0 8 0 pipepl 320 257 0 229 6 3 3 6 0 8 0 fdescpl 496 1667 0 1636 6 1 5 6 0 8 0 filepl 152 11683 0 11434 24 8 16 18 0 8 3 lockfpl 104 571 0 567 2 1 1 2 0 8 0 lockfspl 48 196 0 193 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 51 0 34 1 0 1 1 0 8 0 ucredpl 104 2125 0 2111 1 0 1 1 0 8 0 zombiepl 144 1930 0 1929 3 2 1 1 0 8 0 processpl 1160 1709 0 1658 7 2 5 6 0 8 0 procpl 648 3840 0 3777 9 1 8 8 0 8 0 srpgc 96 10 0 10 4 3 1 1 0 8 1 sosppl 168 4 0 4 2 2 0 1 0 8 0 sockpl 664 3545 0 3508 43 31 12 17 0 8 8 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 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 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 151 0 0 19 0 19 19 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 20 0 0 3 0 3 3 0 8 0 mtagpl 96 48 0 0 2 0 2 2 0 8 0 mbufpl 256 1175 0 0 73 0 73 73 0 8 0 bufpl 280 5679 0 106 399 0 399 399 0 8 0 anonpl 24 255978 0 246885 112 44 68 68 0 185 13 amapchunkpl 152 47604 0 46795 43 11 32 32 0 158 0 amappl16 200 5935 0 5799 48 32 16 20 0 8 8 amappl15 192 32 0 32 1 1 0 1 0 8 0 amappl14 184 131 0 119 1 0 1 1 0 8 0 amappl13 176 5 0 5 2 2 0 1 0 8 0 amappl12 168 2344 0 2312 4 2 2 3 0 8 0 amappl11 160 60 0 46 1 0 1 1 0 8 0 amappl10 152 27 0 27 1 1 0 1 0 8 0 amappl9 144 170 0 169 1 0 1 1 0 8 0 amappl8 136 21 0 18 1 0 1 1 0 8 0 amappl7 128 116 0 104 1 0 1 1 0 8 0 amappl6 120 186 0 185 1 0 1 1 0 8 0 amappl5 112 186 0 174 1 0 1 1 0 8 0 amappl4 104 343 0 325 1 0 1 1 0 8 0 amappl3 96 9019 0 8914 3 0 3 3 0 8 0 amappl2 88 1999 0 1912 3 0 3 3 0 8 0 amappl1 80 12600 0 12029 16 2 14 15 0 8 0 amappl 88 14209 0 14009 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 dma32768 32768 1 0 1 1 1 0 1 0 8 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 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 258 0 258 4 3 1 1 0 8 1 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 98 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1667 0 1635 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1667 0 1635 1 0 1 1 0 8 0 vmmpekpl 168 14341 0 14294 3 0 3 3 0 8 0 vmmpepl 168 108860 0 106808 124 23 101 104 0 357 5 vmsppl 448 1666 0 1635 6 2 4 5 0 8 0 rwobjpl 56 35806 0 29831 89 2 87 87 0 8 0 pdppl 4096 3341 0 3270 109 38 71 87 0 8 0 pvpl 32 18128 0 0 149 2 147 147 0 265 0 pmappl 248 1666 0 1635 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 493 0 83 13 1 12 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff834f2ff0) 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+0x1a kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1a sys/dev/kcov.c:153 __mp_lock(ffffffff835a0960) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff800034f9acf0,ffff800000069c00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __mp_lock(ffffffff835a0960) at __mp_lock+0x19e __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x19e sys/kern/kern_lock.c:144 intr_handler(ffff800034f9ae50,ffff800000079e00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge25_untramp() at Xintr_ioapic_edge25_untramp+0x18f __mp_lock(ffffffff835a0960) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a0960) at __mp_lock+0x199 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: 0x6f913ca93c80, count: -13 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(ffff80000139a028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff80000139a018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000139a000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff80003378f680) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1647d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1647d8,ffff80003728de90,ffff80003728dde0) at sys_exit+0x1a syscall(ffff80003728de90) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003728de90) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ef602c6ee40, count: -9