witness: lock_object uninitialized: 0xffff800001361028 Starting stack trace... witness_checkorder(ffff800001361028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001361028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001361018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001361000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff5b48) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a04e7b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a04e7b8,ffff8000351a66f0,ffff8000351a6640) at sys_exit+0x1a syscall(ffff8000351a66f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000351a66f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d22f40a9c40, 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(ffff800001361028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001361018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001361000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff5b48) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a04e7b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a04e7b8,ffff8000351a66f0,ffff8000351a6640) at sys_exit+0x1a syscall(ffff8000351a66f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000351a66f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d22f40a9c40, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000351a63c0 rbx 0 rdx 0 rcx 0xffff80002a04e7b8 rax 0xffffffff8348eff0 cpu_info_full_primary+0x1ff0 r8 0xffff8000351a6360 r9 0x8080808080808080 r10 0x5f449c405dfa942f r11 0xc5e7b86032e4e24 r12 0 r13 0x1 r14 0xffff800001361028 r15 0x3 rip 0xffffffff812ecd15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000351a63b0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=77550 pid=66312 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a04e7b8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a04f970,0xffff8000371cc548 process=0xffff8000ffff5b48 user=0xffff8000351a1000, vmspace=0xfffffd806bf43720 estcpu=31, cpticks=20, pctcpu=0.5, user=0, sys=7, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53944 52825 67073 0 2 0 syz-executor 53944 490346 67073 0 7 0x4000000 syz-executor 53944 271098 67073 0 3 0x4000080 fsleep syz-executor 15955 309488 9199 0 2 0 syz-executor 15955 124107 9199 0 3 0x4000080 fsleep syz-executor 15955 448554 9199 0 2 0x4000000 syz-executor 41702 485424 0 0 3 0x14200 acct acct 5043 488295 88394 0 2 0x3000 syz-executor 52070 122061 17717 0 3 0 vmmaplk syz-executor 52070 370900 17717 0 2 0x4000000 syz-executor 52070 226030 17717 0 3 0x4000080 fsleep syz-executor 52070 81581 17717 0 3 0x4000080 fsleep syz-executor 32310 313169 0 0 3 0x14200 bored sosplice 91743 458952 99805 0 2 0x482 syz-executor 19239 52859 99805 0 2 0x482 syz-executor 43029 147735 99805 0 2 0x482 syz-executor 40841 273863 99805 0 2 0x482 syz-executor 17717 349144 99805 0 2 0x482 syz-executor 67073 241580 99805 0 2 0x482 syz-executor 9199 383355 99805 0 2 0x482 syz-executor 88394 165295 99805 0 2 0x482 syz-executor 99805 394502 57652 0 3 0x82 kqread syz-executor 57652 506691 28562 0 3 0x10008a sigsusp ksh 28562 30032 66331 0 3 0x98 kqread sshd-session 66331 349855 91169 0 3 0x92 kqread sshd-session 44905 9974 1 0 2 0x100083 getty 91169 50724 1 0 3 0x88 kqread sshd 59030 154238 67977 74 3 0x1100092 bpf pflogd 67977 255964 1 0 3 0x80 sbwait pflogd 69827 514954 95673 73 2 0x1100090 syslogd 95673 101885 1 0 3 0x100082 sbwait syslogd 50614 348626 1 0 3 0x100080 kqread resolvd 86015 278618 90598 77 3 0x100092 kqread dhcpleased 1044 117818 90598 77 3 0x100092 kqread dhcpleased 90598 480793 1 0 3 0x80 kqread dhcpleased 62705 55605 0 0 3 0x14200 bored smr 36328 371125 0 0 3 0x14200 pgzero zerothread 54769 452406 0 0 3 0x14200 aiodoned aiodoned 95756 149444 0 0 3 0x14200 syncer update 46733 204955 0 0 3 0x14200 cleaner cleaner 17285 157591 0 0 3 0x14200 reaper reaper 55024 363787 0 0 3 0x14200 pgdaemon pagedaemon 99677 132024 0 0 3 0x14200 bored viomb 97946 20550 0 0 3 0x40014200 acpi0 acpi0 43564 128081 0 0 3 0x40014200 idle1 22635 487535 0 0 3 0x14200 bored softnet3 88522 369685 0 0 3 0x14200 bored softnet2 33703 396595 0 0 3 0x14200 bored softnet1 8835 62998 0 0 2 0x14200 softnet0 98079 152117 0 0 3 0x14200 bored systqmp 74042 105694 0 0 3 0x14200 bored systq 81855 228822 0 0 3 0x14200 tmoslp softclockmp 46180 229523 0 0 2 0x40014200 softclock 21235 467864 0 0 3 0x40014200 idle0 1 45070 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52070 (syz-executor) thread 0xffff8000371cccd0 (370900) exclusive rwlock vmmaplk r = 0 (0xfffffd806bf43498) #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 kpageflttrap+0x2d0 sys/arch/amd64/amd64/trap.c:279 #6 kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 #7 alltraps_kern_meltdown+0x7b #8 _copyin+0x57 #9 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #9 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10193 11124K 11704K 166960K 11686 0 pcb 19 12K 12K 166960K 93 0 rtable 211 6K 7K 166960K 371 0 pf 38 18K 18K 166960K 57 0 ifaddr 43 7K 7K 166960K 54 0 ifgroup 60 2K 2K 166960K 68 0 sysctl 1 0K 0K 166960K 1 0 counters 66 36K 36K 166960K 74 0 ioctlops 0 0K 4K 166960K 1499 0 iov 0 0K 12K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1458 92K 92K 166960K 1674 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 16 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 89K 166960K 396 0 sigio 0 0K 0K 166960K 39 0 proc 78 115K 128K 166960K 563 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 30 0 in_multi 98 7K 7K 166960K 108 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 419 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 73K 90K 166960K 5277 0 UVM aobj 14 6K 6K 166960K 15 0 pinsyscall 43 86K 102K 166960K 1488 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 10 0 NDP 13 0K 2K 166960K 33 0 temp 41 6819K 7070K 166960K 12428 0 kqueue 13 20K 26K 166960K 57 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 49 0 46 1 0 1 1 0 8 0 rtentry 112 119 0 21 4 0 4 4 0 8 0 unpcb 144 280 0 263 6 5 1 6 0 8 0 syncache 336 8 0 8 1 1 0 1 0 8 0 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 808 152 0 144 8 6 2 8 0 8 0 arp 120 21 0 3 1 0 1 1 0 8 0 inpcb 336 370 0 353 8 6 2 8 0 8 0 nd6 136 26 0 1 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 4 0 4 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 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 41 0 0 1 0 1 1 0 8 0 pfstkey 128 41 0 0 2 0 2 2 0 8 0 pfstate 376 40 0 0 4 0 4 4 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 491 0 79 29 1 28 29 0 8 0 art_table 32 492 0 79 4 0 4 4 0 8 0 art_node 16 118 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2026 0 526 95 0 95 95 0 8 0 ffsino 272 2026 0 526 101 0 101 101 0 8 0 nchpl 144 2585 0 892 63 0 63 63 0 8 0 uvmvnodes 80 2351 0 0 48 0 48 48 0 8 0 vnodes 216 2351 0 0 131 0 131 131 0 8 0 namei 1024 8535 0 8535 3 2 1 2 0 8 1 percpumem 16 51 0 4 1 0 1 1 0 8 0 kstatmem 264 34 0 8 2 0 2 2 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 7779 0 7779 10 9 1 8 1 8 1 plimitpl 152 120 0 102 1 0 1 1 0 8 0 sigapl 424 703 0 651 8 2 6 7 0 8 0 futexpl 64 4022 0 4018 1 0 1 1 0 8 0 knotepl 120 353 0 0 11 0 11 11 0 8 0 kqueuepl 216 75 0 65 1 0 1 1 0 8 0 pipepl 320 130 0 102 3 0 3 3 0 8 0 fdescpl 496 681 0 650 5 0 5 5 0 8 0 filepl 152 3605 0 3348 20 9 11 20 0 8 0 lockfpl 104 98 0 94 1 0 1 1 0 8 0 lockfspl 48 44 0 40 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 34 0 17 1 0 1 1 0 8 0 ucredpl 104 303 0 290 1 0 1 1 0 8 0 zombiepl 144 662 0 655 1 0 1 1 0 8 0 processpl 1160 703 0 651 5 1 4 5 0 8 0 procpl 648 1131 0 1069 6 0 6 6 0 8 0 srpgc 96 4 0 4 1 1 0 1 0 8 0 sockpl 664 702 0 666 14 10 4 14 0 8 0 mcl64k 65536 2 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 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 139 0 0 18 0 18 18 0 8 0 mcl2k 2048 20 0 0 3 0 3 3 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 144 0 0 9 0 9 9 0 8 0 bufpl 280 3733 0 94 260 0 260 260 0 8 0 anonpl 24 170652 0 163318 64 2 62 62 0 185 0 amapchunkpl 152 17486 0 16897 30 7 23 30 0 158 0 amappl16 200 4419 0 4190 28 15 13 16 0 8 0 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 118 0 106 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1354 0 1322 3 1 2 2 0 8 0 amappl11 160 85 0 71 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 125 0 125 1 1 0 1 0 8 0 amappl8 136 89 0 87 1 0 1 1 0 8 0 amappl7 128 108 0 96 1 0 1 1 0 8 0 amappl6 120 164 0 163 1 0 1 1 0 8 0 amappl5 112 150 0 138 1 0 1 1 0 8 0 amappl4 104 319 0 299 1 0 1 1 0 8 0 amappl3 96 3227 0 3120 3 0 3 3 0 8 0 amappl2 88 1000 0 916 3 0 3 3 0 8 0 amappl1 80 9240 0 8665 16 1 15 16 0 8 0 amappl 88 4867 0 4674 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 7 0 7 2 2 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 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 681 0 649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 681 0 649 1 0 1 1 0 8 0 vmmpekpl 168 7251 0 7219 2 0 2 2 0 8 0 vmmpepl 168 51205 0 49065 106 3 103 106 0 357 1 vmsppl 448 680 0 649 6 2 4 5 0 8 0 rwobjpl 56 20892 0 17369 53 1 52 53 0 8 0 pdppl 4096 1369 0 1298 119 46 73 83 0 8 2 pvpl 32 17583 0 0 142 0 142 142 0 265 0 pmappl 248 680 0 649 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 411 0 67 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(ffff800001361028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001361018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001361000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff5b48) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a04e7b8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a04e7b8,ffff8000351a66f0,ffff8000351a6640) at sys_exit+0x1a syscall(ffff8000351a66f0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000351a66f0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d22f40a9c40, 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(ffffffff836256d0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff836256d0) at __mp_lock+0x199 sys/kern/kern_lock.c:144 syscall(ffff8000371e52a0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e52a0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79948517c40, count: -6