witness: lock_object uninitialized: 0xffff800001318028 Starting stack trace... witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800001318018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f2150) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246c8fc8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246c8fc8,ffff8000245bb1e0,ffff8000245bb240) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000245bb2b0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000245bb2b0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9ca0, count: 249 End of stack trace. Stopped at db_enter+0x18: 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+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800001318018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f2150) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246c8fc8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246c8fc8,ffff8000245bb1e0,ffff8000245bb240) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000245bb2b0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000245bb2b0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9ca0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000245baf80 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000246c8fc8 r8 0xffff8000245baf20 r9 0x8080808080808080 r10 0x7a5f0e5b7f5b084f r11 0xfa31bb205fb8f94 r12 0xffff800001318001 r13 0xffff800001318028 r14 0 r15 0 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000245baf70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=54555 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=85, nice=20 forw=0xffffffffffffffff, list=0xffff8000246c9268,0xffff8000246c87f8 process=0xffff8000211f2150 user=0xffff8000245b6000, vmspace=0xfffffd80674ad8d0 estcpu=35, cpticks=11, pctcpu=0.1 user=0, sys=7, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60246 2401 59790 0 2 0 syz-executor.2 60246 522287 59790 0 3 0x4000080 fsleep syz-executor.2 61942 272997 6216 0 2 0 syz-executor.1 61942 312852 6216 0 3 0x4000080 fsleep syz-executor.1 87818 324697 82854 0 2 0 syz-executor.3 87818 112221 82854 0 3 0x4000080 fsleep syz-executor.3 87818 309401 82854 0 3 0x4000080 fsleep syz-executor.3 82854 137527 93081 0 2 0x482 syz-executor.3 82588 381021 0 0 3 0x14200 acct acct 71399 45118 93081 0 2 0x482 syz-executor.0 6216 463055 93081 0 2 0x482 syz-executor.1 59790 89489 93081 0 2 0x482 syz-executor.2 92329 517672 1 0 2 0x100083 getty 83484 319789 0 0 3 0x14280 nfsidl nfsio 57241 64449 0 0 3 0x14280 nfsidl nfsio 15626 228487 0 0 3 0x14280 nfsidl nfsio 97382 266063 0 0 3 0x14280 nfsidl nfsio 7622 516424 0 0 3 0x14280 nfsidl nfsio 78757 187164 0 0 3 0x14280 nfsidl nfsio 79737 137297 0 0 3 0x14280 nfsidl nfsio 19590 148651 0 0 3 0x14280 nfsidl nfsio 1227 286423 0 0 3 0x14280 nfsidl nfsio 17892 59 0 0 3 0x14280 nfsidl nfsio 85692 286537 0 0 3 0x14280 nfsidl nfsio 31140 192715 0 0 3 0x14280 nfsidl nfsio 86687 315194 0 0 3 0x14280 nfsidl nfsio 16699 361615 0 0 3 0x14280 nfsidl nfsio 26517 511348 0 0 3 0x14280 nfsidl nfsio 87281 454258 0 0 3 0x14280 nfsidl nfsio 92146 46103 0 0 3 0x14280 nfsidl nfsio 76622 67497 0 0 3 0x14280 nfsidl nfsio 43377 376768 0 0 3 0x14280 nfsidl nfsio 70508 101810 0 0 3 0x14280 nfsidl nfsio 6704 141471 0 0 3 0x14200 bored sosplice 93081 241064 82848 0 3 0x82 thrsleep syz-fuzzer 93081 8440 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 440173 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 373078 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 423638 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 438961 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 62921 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 39064 82848 0 3 0x4000082 thrsleep syz-fuzzer 93081 153735 82848 0 3 0x4000082 kqread syz-fuzzer 82848 325498 61403 0 3 0x10008a sigsusp ksh 61403 336019 17117 0 3 0x9a poll sshd 17117 86833 1 0 3 0x88 poll sshd 9532 231527 72502 74 3 0x100092 bpf pflogd 72502 142176 1 0 3 0x80 netio pflogd 14698 190477 51993 73 2 0x100090 syslogd 51993 136826 1 0 3 0x100082 netio syslogd 79911 463420 1 0 3 0x100080 kqread resolvd 30443 285382 88992 77 3 0x100092 kqread dhcpleased 45958 436713 88992 77 3 0x100092 kqread dhcpleased 88992 168050 1 0 3 0x80 kqread dhcpleased 12732 189344 0 0 3 0x14200 bored smr 22030 415127 0 0 2 0x14200 zerothread 40067 338799 0 0 3 0x14200 aiodoned aiodoned 88513 430452 0 0 3 0x14200 syncer update 89147 115264 0 0 3 0x14200 cleaner cleaner 13379 459214 0 0 2 0x14200 reaper 78011 455469 0 0 3 0x14200 pgdaemon pagedaemon 42149 211133 0 0 3 0x14200 bored viomb 59837 350602 0 0 3 0x40014200 acpi0 acpi0 85661 417445 0 0 7 0x40014200 idle1 50721 56707 0 0 2 0x14200 softnet 24949 435761 0 0 3 0x14200 bored systqmp 92755 172206 0 0 3 0x14200 bored systq 64992 348343 0 0 2 0x40014200 softclock 44275 72023 0 0 3 0x40014200 idle0 1 65826 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 61942 (syz-executor.1) thread 0xffff8000246c9268 (272997) exclusive rwlock vmmaplk r = 0 (0xfffffd80674ad778) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5458 #3 uvmfault_lookup+0xb9 sys/uvm/uvm_fault.c:1740 #4 uvm_fault_check+0x603 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #4 uvm_fault_check+0x603 sys/uvm/uvm_fault.c:714 #5 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #6 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #7 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #8 recall_trap+0x8 Process 13379 (reaper) thread 0xffff800021149a40 (459214) exclusive rwlock kmmaplk r = 0 (0xffffffff8298b1a0) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5458 #3 uvm_unmap+0x78 sys/uvm/uvm_map.c:2068 #4 uvm_uarea_free+0x35 sys/uvm/uvm_glue.c:287 #5 reaper+0x158 sys/kern/kern_exit.c:451 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10188 6489K 7110K 78643K 22636 0 pcb 13 14K 18K 78643K 2880 0 rtable 151 7K 7K 78643K 1106 0 ifaddr 63 16K 16K 78643K 504 0 sysctl 3 1K 1K 78643K 3 0 counters 48 34K 35K 78643K 214 0 ioctlops 0 0K 8K 78643K 2746 0 iov 0 0K 52K 78643K 1502 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1313 83K 83K 78643K 6516 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 74 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 477 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 9 29K 49K 78643K 12917 0 sigio 0 0K 0K 78643K 69 0 proc 73 111K 111K 78643K 1291 0 subproc 52 3K 3K 78643K 260 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 4720 0 in_multi 52 3K 4K 78643K 574 0 ether_multi 1 0K 0K 78643K 162 0 mrt 0 0K 0K 78643K 60 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 169 758K 758K 78643K 169 0 exec 0 0K 2K 78643K 1460 0 pfkey data 0 0K 0K 78643K 4 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 1589 7278K 7278K 78643K 160650 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 433 0 NDP 8 0K 1K 78643K 137 0 temp 100 4205K 4293K 78643K 72171 0 kqueue 10 14K 24K 78643K 368 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 308 0 305 3 2 1 3 0 8 0 rtentry 112 265 0 208 2 0 2 2 0 8 0 unpcb 136 3910 0 3893 27 19 8 8 0 8 7 syncache 296 53 0 53 10 10 0 1 0 8 0 tcpqe 32 15 0 15 5 5 0 1 0 8 0 tcpcb 736 6960 0 6955 136 129 7 13 0 8 6 arp 120 43 0 33 1 0 1 1 0 8 0 inpcb 304 11481 0 11473 109 105 4 16 0 8 3 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 70 0 57 1 0 1 1 0 8 0 pkpcb 40 32 0 32 8 8 0 1 0 8 0 kcovpl 48 20 0 16 1 0 1 1 0 8 0 ppxss 1248 29 0 29 5 5 0 1 0 8 0 pfstscr 40 9 0 9 1 1 0 1 0 8 0 pffrag 232 93 0 93 4 4 0 1 0 482 0 pffrnode 88 93 0 93 4 4 0 1 0 8 0 pffrent 40 239 0 239 4 4 0 1 0 8 0 pfosfp 40 1428 0 1428 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfrktable 1344 59 0 55 5 4 1 1 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 56 0 54 1 0 1 1 0 8 0 pfstkey 112 72 0 70 2 1 1 2 0 8 0 pfstate 320 65 0 63 4 3 1 4 0 8 0 pfsrctr 152 13 0 13 1 1 0 1 0 8 0 pfrule 1360 152 0 123 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1110 0 866 22 6 16 19 0 8 0 art_table 32 1111 0 866 5 3 2 3 0 8 0 art_node 16 264 0 216 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 11 2 2 0 1 0 8 0 semapl 112 475 0 465 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19654 0 17892 111 0 111 111 0 8 0 ffsino 272 19654 0 17892 120 2 118 118 0 8 0 nchpl 144 37146 0 35549 61 0 61 61 0 8 0 uvmvnodes 80 10844 0 0 222 0 222 222 0 8 0 vnodes 224 10844 0 0 638 0 638 638 0 8 0 namei 1024 110684 0 110684 2 1 1 1 0 8 1 percpumem 16 119 0 83 1 0 1 1 0 8 0 vcpupl 2048 498 0 0 63 0 63 63 0 8 0 vmpool 560 512 0 14 36 0 36 36 0 8 0 pfiaddrpl 120 17 0 13 3 2 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 145569 0 145569 23 22 1 7 0 8 1 plimitpl 152 1465 0 1454 1 0 1 1 0 8 0 sigapl 424 13130 0 13071 7 0 7 7 0 8 0 futexpl 64 97383 0 97379 2 1 1 1 0 8 0 knotepl 112 140 0 0 3 0 3 3 0 8 0 kqueuepl 216 922 0 916 8 7 1 5 0 8 0 pipepl 336 3245 0 3228 67 59 8 13 0 8 6 fdescpl 496 13094 0 13072 6 3 3 4 0 8 0 filepl 152 70589 0 70434 109 94 15 22 0 8 8 lockfpl 104 3711 0 3709 7 5 2 2 0 8 1 lockfspl 48 1221 0 1219 1 0 1 1 0 8 0 sessionpl 144 37 0 24 1 0 1 1 0 8 0 pgrppl 48 57 0 44 1 0 1 1 0 8 0 ucredpl 96 9407 0 9386 1 0 1 1 0 8 0 zombiepl 144 17254 0 17253 2 1 1 1 0 8 0 processpl 1064 13130 0 13071 5 1 4 5 0 8 0 procpl 672 31393 0 31321 17 10 7 7 0 8 0 srpgc 96 8 0 8 1 1 0 1 0 8 0 sosppl 168 77 0 77 10 10 0 1 0 8 0 sockpl 480 15735 0 15707 253 241 12 33 0 8 8 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 547 0 0 16 1 15 16 0 8 0 mtagpl 96 737 0 0 11 1 10 11 0 8 0 mbufpl 256 9041 0 0 550 1 549 549 0 8 0 bufpl 288 48752 0 32712 1151 3 1148 1148 0 8 0 anonpl 24 3593773 0 3516929 648 180 468 468 0 186 0 amapchunkpl 152 385582 0 383470 137 55 82 83 0 158 0 amappl16 200 36209 0 32927 288 114 174 175 0 8 0 amappl15 192 621 0 621 3 3 0 1 0 8 0 amappl14 184 635 0 627 1 0 1 1 0 8 0 amappl13 176 2122 0 2118 1 0 1 1 0 8 0 amappl12 168 2019 0 2011 1 0 1 1 0 8 0 amappl11 160 2883 0 2866 1 0 1 1 0 8 0 amappl10 152 1594 0 1582 1 0 1 1 0 8 0 amappl9 144 1391 0 1389 1 0 1 1 0 8 0 amappl8 136 3738 0 3601 5 0 5 5 0 8 0 amappl7 128 2979 0 2965 1 0 1 1 0 8 0 amappl6 120 1193 0 1172 1 0 1 1 0 8 0 amappl5 112 11577 0 11557 1 0 1 1 0 8 0 amappl4 104 5062 0 5033 1 0 1 1 0 8 0 amappl3 96 3680 0 3660 1 0 1 1 0 8 0 amappl2 88 3726 0 3321 15 5 10 10 0 8 1 amappl1 80 226515 0 226006 13 2 11 13 0 8 0 amappl 88 158588 0 157933 17 2 15 15 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 13606 0 13085 4 0 4 4 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13606 0 13085 4 0 4 4 0 8 0 vmmpekpl 168 81774 0 81688 5 0 5 5 0 8 0 vmmpepl 168 1164201 0 1157778 375 93 282 289 0 357 1 vmsppl 368 13605 0 13085 49 1 48 48 0 8 0 rwobjpl 56 280855 0 264978 232 8 224 224 0 8 0 pdppl 4096 27220 0 26668 593 41 552 552 0 8 0 pvpl 32 6290450 0 6275356 461 334 127 225 0 265 0 pmappl 248 13605 0 13085 33 0 33 33 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 2902 0 247 77 1 76 76 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800001318028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800001318018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800001318000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f2150) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246c8fc8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246c8fc8,ffff8000245bb1e0,ffff8000245bb240) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000245bb2b0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000245bb2b0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9ca0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5