login: witness: lock_object uninitialized: 0xffff800001329028 Starting stack trace... witness_checkorder(ffff800001329028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001329028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001329018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001329000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800030382a40,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800030382a40,ffff8000371cec30,ffff8000371ceb80) at sys_exit+0x1a syscall(ffff8000371cec30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371cec30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x708a3229fa50, 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(ffff800001329028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001329018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001329000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800030382a40,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800030382a40,ffff8000371cec30,ffff8000371ceb80) at sys_exit+0x1a syscall(ffff8000371cec30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371cec30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x708a3229fa50, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000371ce900 rbx 0 rdx 0 rcx 0xffff800030382a40 rax 0xffffffff8349fff0 cpu_info_full_primary+0x1ff0 r8 0xffff8000371ce8a0 r9 0x8080808080808080 r10 0x1b0cbcb42757a3e1 r11 0x240148d89a385809 r12 0 r13 0x1 r14 0xffff800001329028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371ce8f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=486718 pid=26460 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800030382a40 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000303836e8,0xffff8000303807d0 process=0xffff8000ffff7b00 user=0xffff8000371c9000, vmspace=0xfffffd806bdcb8e8 estcpu=36, cpticks=13, pctcpu=0.0, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87820 504082 9284 0 7 0 syz-executor 46 510463 65609 0 2 0 syz-executor 46 99551 65609 0 2 0x4000000 syz-executor 78038 293617 35481 0 2 0 syz-executor 78038 307914 35481 0 3 0x4000080 sbwait syz-executor 7152 272632 27399 0 2 0 syz-executor 7152 419764 27399 0 3 0x4000080 msgwait syz-executor 69839 137152 1 0 2 0x100083 getty 56463 398346 0 0 3 0x14200 acct acct 36543 226687 0 0 3 0x14200 bored sosplice 35481 468498 49273 0 2 0x482 syz-executor 65609 210713 49273 0 2 0x482 syz-executor 9284 14335 49273 0 2 0x482 syz-executor 73360 360797 49273 0 2 0x2 syz-executor 61668 164973 49273 0 2 0x2 syz-executor 74517 57723 49273 0 2 0x482 syz-executor 57924 84281 49273 0 2 0x482 syz-executor 27399 418796 49273 0 2 0x482 syz-executor 49273 302632 38284 0 2 0x3 syz-executor 38284 404049 63514 0 3 0x10008a sigsusp ksh 63514 302240 43837 0 3 0x98 kqread sshd-session 43837 282416 67665 0 3 0x92 kqread sshd-session 67665 454824 1 0 3 0x88 kqread sshd 14463 457136 53413 74 3 0x1100092 bpf pflogd 53413 44037 1 0 3 0x80 sbwait pflogd 98213 72390 68703 73 2 0x1100090 syslogd 68703 167960 1 0 3 0x100082 sbwait syslogd 16866 428444 1 0 3 0x100080 kqread resolvd 88289 195978 50192 77 3 0x100092 kqread dhcpleased 47814 214791 50192 77 3 0x100092 kqread dhcpleased 50192 131192 1 0 3 0x80 kqread dhcpleased 13809 446732 0 0 2 0x40014200 smr 38891 521 0 0 2 0x14200 zerothread 21592 240946 0 0 3 0x14200 aiodoned aiodoned 51612 365118 0 0 3 0x14200 syncer update 66628 348354 0 0 3 0x14200 cleaner cleaner 10565 357771 0 0 2 0x14200 reaper 23785 146105 0 0 3 0x14200 pgdaemon pagedaemon 57884 403326 0 0 3 0x14200 bored viomb 81507 65370 0 0 3 0x40014200 acpi0 acpi0 16330 127800 0 0 3 0x40014200 idle1 29905 112574 0 0 3 0x14200 bored softnet3 49684 223017 0 0 3 0x14200 bored softnet2 57218 308523 0 0 3 0x14200 bored softnet1 80009 349888 0 0 2 0x14200 softnet0 60871 31435 0 0 3 0x14200 bored systqmp 18073 343280 0 0 3 0x14200 bored systq 10648 497924 0 0 2 0x14200 softclockmp 79570 497103 0 0 3 0x40014200 tmoslp softclock 58577 330113 0 0 3 0x40014200 idle0 1 214111 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 73360 (syz-executor) thread 0xffff80002a051bf0 (360797) exclusive rwlock vmmaplk r = 0 (0xfffffd806bdcb820) #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 uvmspace_fork+0x12b sys/uvm/uvm_map.c:3820 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd806c543b90) #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 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3811 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 61668 (syz-executor) thread 0xffff80002a051458 (164973) exclusive rrwlock inode r = 0 (0xfffffd806dd47e70) #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 ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98 #7 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 #11 namei+0x7aa sys/kern/vfs_lookup.c:250 #12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #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 exclusive rrwlock inode r = 0 (0xfffffd807c4e9e68) #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 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 10565 (reaper) thread 0xffff800029fd96d0 (357771) exclusive rwlock kmmaplk r = 0 (0xffffffff83630f90) #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_unmap+0x81 sys/uvm/uvm_map.c:1792 #3 km_free+0x87 sys/uvm/uvm_km.c:833 #4 uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:284 #5 reaper+0x1fe sys/kern/kern_exit.c:466 #6 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10204 11256K 11318K 166960K 11775 0 pcb 17 12K 12K 166960K 94 0 rtable 239 8K 9K 166960K 432 0 pf 36 17K 25K 166960K 89 0 ifaddr 42 7K 7K 166960K 60 0 ifgroup 57 2K 2K 166960K 101 0 sysctl 2 1K 1K 166960K 4 0 counters 66 36K 36K 166960K 90 0 ioctlops 0 0K 4K 166960K 1530 0 iov 0 0K 16K 166960K 25 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1351 85K 86K 166960K 1777 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 93K 166960K 1638 0 sigio 0 0K 0K 166960K 2 0 proc 76 115K 140K 166960K 598 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 84 0 in_multi 89 6K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 406 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 222 73K 77K 166960K 15766 0 UVM aobj 9 2K 4K 166960K 10 0 pinsyscall 42 84K 107K 166960K 2714 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 15 0 NDP 13 0K 2K 166960K 41 0 temp 48 6820K 6947K 166960K 26012 0 kqueue 13 20K 24K 166960K 88 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 76 0 73 1 0 1 1 0 8 0 rtentry 112 123 0 15 4 0 4 4 0 8 0 unpcb 144 233 0 214 1 0 1 1 0 8 0 syncache 336 3 0 3 2 2 0 1 0 8 0 tcpcb 808 86 0 82 1 0 1 1 0 8 0 arp 120 21 0 2 1 0 1 1 0 8 0 inpcb 336 412 0 405 1 0 1 1 0 8 0 nd6 136 24 0 3 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 7 0 6 1 0 1 1 0 8 0 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 9 0 5 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 42 0 17 1 0 1 1 0 8 0 pfstkey 128 42 0 17 1 0 1 1 0 8 0 pfstate 376 42 0 17 3 0 3 3 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 467 0 44 30 0 30 30 0 8 2 art_table 32 471 0 44 4 0 4 4 0 8 0 art_node 16 121 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 11 0 4 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3548 0 2053 95 0 95 95 0 8 0 ffsino 272 3548 0 2053 101 0 101 101 0 8 0 nchpl 144 5382 0 3699 63 0 63 63 0 8 0 uvmvnodes 80 3857 0 0 79 0 79 79 0 8 0 vnodes 216 3857 0 0 215 0 215 215 0 8 0 namei 1024 13264 0 13264 3 2 1 2 0 8 1 percpumem 16 59 0 12 1 0 1 1 0 8 0 kstatmem 264 50 0 24 2 0 2 2 0 8 0 scsiplug 72 7 0 7 1 0 1 1 0 8 1 scxspl 216 16128 0 16128 11 10 1 8 1 8 1 plimitpl 152 44 0 27 1 0 1 1 0 8 0 sigapl 424 1941 0 1890 7 1 6 7 0 8 0 futexpl 64 4574 0 4574 1 0 1 1 0 8 1 knotepl 120 324 0 0 10 0 10 10 0 8 0 kqueuepl 216 101 0 92 1 0 1 1 0 8 0 pipepl 320 125 0 98 3 0 3 3 0 8 0 fdescpl 496 1920 0 1890 5 0 5 5 0 8 0 filepl 152 4400 0 4158 10 0 10 10 0 8 0 lockfpl 104 174 0 172 1 0 1 1 0 8 0 lockfspl 48 79 0 77 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 33 0 16 1 0 1 1 0 8 0 ucredpl 104 285 0 272 1 0 1 1 0 8 0 zombiepl 144 2085 0 2083 2 1 1 1 0 8 0 processpl 1160 1941 0 1890 5 1 4 5 0 8 0 procpl 648 3699 0 3644 6 0 6 6 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sockpl 664 731 0 702 3 0 3 3 0 8 0 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 146 0 0 19 0 19 19 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 29 0 0 4 0 4 4 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 196 0 0 13 0 13 13 0 8 0 bufpl 280 4366 0 100 305 0 305 305 0 8 0 anonpl 24 313443 0 308647 91 23 68 73 0 185 28 amapchunkpl 152 51906 0 51416 32 6 26 26 0 158 3 amappl16 200 7934 0 7883 45 31 14 30 0 8 8 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 129 0 117 1 0 1 1 0 8 0 amappl13 176 12 0 12 2 2 0 1 0 8 0 amappl12 168 2560 0 2531 3 1 2 2 0 8 0 amappl11 160 56 0 42 1 0 1 1 0 8 0 amappl10 152 18 0 17 1 0 1 1 0 8 0 amappl9 144 142 0 142 2 2 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 115 0 103 1 0 1 1 0 8 0 amappl6 120 164 0 163 1 0 1 1 0 8 0 amappl5 112 143 0 132 1 0 1 1 0 8 0 amappl4 104 320 0 300 1 0 1 1 0 8 0 amappl3 96 9786 0 9705 4 1 3 3 0 8 0 amappl2 88 2187 0 2108 2 0 2 2 0 8 0 amappl1 80 12063 0 11502 14 1 13 14 0 8 0 amappl 88 15372 0 15213 7 2 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1920 0 1889 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1920 0 1889 1 0 1 1 0 8 0 vmmpekpl 168 13670 0 13633 2 0 2 2 0 8 0 vmmpepl 168 117618 0 115783 106 6 100 106 0 357 15 vmsppl 448 1919 0 1889 6 2 4 5 0 8 0 rwobjpl 56 35963 0 31170 69 0 69 69 0 8 0 pdppl 4096 3847 0 3778 106 35 71 85 0 8 2 pvpl 32 18567 0 0 150 0 150 150 0 265 0 pmappl 248 1919 0 1889 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 400 0 43 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(ffff800001329028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001329018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001329000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000ffff7b00) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff800030382a40,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff800030382a40,ffff8000371cec30,ffff8000371ceb80) at sys_exit+0x1a syscall(ffff8000371cec30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371cec30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x708a3229fa50, 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(ffffffff8359d330) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8359d330) at __mp_lock+0x192 sys/kern/kern_lock.c:144 end trace frame: 0x0, count: -4