witness: lock_object uninitialized: 0xffff800001321028 Starting stack trace... witness_checkorder(ffff800001321028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff800001321028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff800001321018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001321000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800029fe8008) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000369a22c8,0,0,1) at exitStopped at db_enter+0x25: addq $0x8,%rsp ddb{0}> 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(ffff800001321028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001321018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001321000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800029fe8008) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000369a22c8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000369a22c8,ffff800031196bf0,ffff800031196b40) at sys_exit+0x1a syscall(ffff800031196bf0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800031196bf0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cd287254b60, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000311968c0 rbx 0 rdx 0 rcx 0xffff8000369a22c8 rax 0xffffffff8349fff0 cpu_info_full_primary+0x1ff0 r8 0xffff800031196860 r9 0x8080808080808080 r10 0xc454dd0ae1284ba2 r11 0xb934cb0cfa326d35 r12 0 r13 0x1 r14 0xffff800001321028 r15 0x3 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000311968b0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=62178 pid=13000 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000369a22c8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000369a3c18,0xffffffff835f1e20 process=0xffff800029fe8008 user=0xffff800031191000, vmspace=0xfffffd806ca038d8 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=2, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26648 191969 24003 60928 2 0x10 syz-executor 26648 105136 24003 60928 3 0x4000090 fsleep syz-executor 26648 175435 24003 60928 3 0x4000090 fsleep syz-executor 26648 337274 24003 60928 3 0x4000090 fsleep syz-executor 62166 517170 69377 0 2 0 syz-executor 62166 49110 69377 0 3 0x4000080 fsleep syz-executor 65948 122122 95199 0 2 0 syz-executor 65948 319813 95199 0 3 0x4000080 fsleep syz-executor 65948 90033 95199 0 3 0x4000080 fsleep syz-executor 94777 176702 64807 0 2 0 syz-executor 94777 98896 64807 0 3 0x4000080 fsleep syz-executor 94777 203144 64807 0 3 0x4000080 fsleep syz-executor 94777 118752 64807 0 7 0x4000000 syz-executor 611 433785 59457 0 2 0 syz-executor 611 134518 59457 0 3 0x4000080 lockf syz-executor 611 231290 59457 0 3 0x4000080 fsleep syz-executor 51351 212214 21347 0 2 0x490 syz-executor 51351 397132 21347 0 3 0x4000090 netcon syz-executor 26017 306833 0 0 3 0x14200 acct acct 24003 2437 26891 0 2 0x482 syz-executor 64807 457491 26891 0 2 0x482 syz-executor 1710 121879 26891 0 2 0x482 syz-executor 59457 121594 26891 0 2 0x482 syz-executor 95199 506367 26891 0 2 0x482 syz-executor 1851 234592 0 0 3 0x14280 nfsidl nfsio 34498 446323 0 0 3 0x14280 nfsidl nfsio 26581 3561 0 0 3 0x14280 nfsidl nfsio 67778 456151 0 0 3 0x14280 nfsidl nfsio 80598 303045 0 0 3 0x14280 nfsidl nfsio 31836 198855 0 0 3 0x14280 nfsidl nfsio 12826 287737 0 0 3 0x14280 nfsidl nfsio 75024 514151 0 0 3 0x14280 nfsidl nfsio 47235 262296 0 0 3 0x14280 nfsidl nfsio 40089 179248 0 0 3 0x14280 nfsidl nfsio 81716 420436 0 0 3 0x14280 nfsidl nfsio 53053 221467 0 0 3 0x14280 nfsidl nfsio 80635 474256 0 0 3 0x14280 nfsidl nfsio 64352 118225 0 0 3 0x14280 nfsidl nfsio 85715 522834 0 0 3 0x14280 nfsidl nfsio 76397 517835 0 0 3 0x14280 nfsidl nfsio 57484 473856 0 0 3 0x14280 nfsidl nfsio 38245 471721 0 0 3 0x14280 nfsidl nfsio 12115 432103 0 0 3 0x14280 nfsidl nfsio 40564 118532 0 0 3 0x14280 nfsidl nfsio 11284 140493 95312 0 3 0x82 netio sshd-session 93687 46183 0 0 3 0x14200 bored sosplice 69377 413876 26891 0 2 0x482 syz-executor 59454 263334 26891 0 2 0x482 syz-executor 21347 468981 26891 0 2 0x482 syz-executor 26891 337715 27988 0 3 0x82 kqread syz-executor 27988 487051 67105 0 3 0x10008a sigsusp ksh 67105 399835 53947 0 3 0x98 kqread sshd-session 53947 375321 95312 0 3 0x92 kqread sshd-session 18048 315265 1 0 3 0x100083 ttyin getty 95312 445671 1 0 3 0x88 kqread sshd 47676 454335 71192 74 3 0x1100092 bpf pflogd 71192 261595 1 0 3 0x80 sbwait pflogd 53334 485191 91529 73 2 0x1100090 syslogd 91529 459428 1 0 3 0x100082 sbwait syslogd 84444 523211 1 0 3 0x100080 kqread resolvd 40923 207488 57041 77 3 0x100092 kqread dhcpleased 65656 400198 57041 77 3 0x100092 kqread dhcpleased 57041 213610 1 0 3 0x80 kqread dhcpleased 55504 458550 0 0 3 0x14200 bored smr 87148 500323 0 0 2 0x14200 zerothread 56724 285691 0 0 3 0x14200 aiodoned aiodoned 73320 358190 0 0 3 0x14200 syncer update 84301 430571 0 0 3 0x14200 cleaner cleaner 43588 48114 0 0 3 0x14200 reaper reaper 85426 93311 0 0 3 0x14200 pgdaemon pagedaemon 65291 2973 0 0 3 0x14200 bored viomb 73277 87258 0 0 3 0x40014200 acpi0 acpi0 35614 289950 0 0 3 0x40014200 idle1 95359 319986 0 0 3 0x14200 bored softnet3 42957 510454 0 0 3 0x14200 bored softnet2 46466 348194 0 0 3 0x14200 bored softnet1 85243 37690 0 0 3 0x14200 bored softnet0 64538 105839 0 0 3 0x14200 bored systqmp 52464 108264 0 0 3 0x14200 bored systq 92651 352685 0 0 2 0x14200 softclockmp 25712 380630 0 0 2 0x40014200 softclock 28591 395875 0 0 3 0x40014200 idle0 1 253108 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 11135K 12501K 166960K 14629 0 pcb 19 17K 21K 166960K 650 0 rtable 197 6K 7K 166960K 843 0 pf 37 18K 22K 166960K 232 0 ifaddr 39 6K 7K 166960K 113 0 ifgroup 55 2K 2K 166960K 201 0 sysctl 4 1K 2K 166960K 13 0 counters 64 36K 36K 166960K 148 0 ioctlops 0 0K 4K 166960K 1769 0 iov 0 0K 24K 166960K 190 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1478 93K 93K 166960K 3055 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 38 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 85 0 dirhash 12 2K 3K 166960K 63 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 2066 0 sigio 0 0K 0K 166960K 32 0 proc 78 115K 128K 166960K 872 0 subproc 104 6K 6K 166960K 182 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 447 0 in_multi 87 6K 7K 166960K 218 0 ether_multi 1 0K 0K 166960K 14 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 151 678K 678K 166960K 151 0 exec 0 0K 1K 166960K 921 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 276 74K 92K 166960K 21286 0 UVM aobj 131 6K 6K 166960K 139 0 pinsyscall 45 90K 106K 166960K 3389 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 148 0 NDP 12 0K 1K 166960K 85 0 temp 78 6828K 6904K 166960K 76153 0 kqueue 14 22K 31K 166960K 324 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 312 0 309 5 2 3 3 0 8 2 rtentry 112 218 0 130 4 0 4 4 0 8 0 unpcb 144 1626 0 1609 11 10 1 6 0 8 0 syncache 336 14 0 14 6 5 1 1 0 8 1 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 808 696 0 651 14 9 5 8 0 8 0 arp 120 38 0 22 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 6 0 6 2 2 0 1 0 8 0 inpcb 336 3092 0 2972 35 24 11 12 0 8 1 nd6 136 51 0 28 1 0 1 1 0 8 0 pkpcb 40 8 0 8 4 4 0 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1168 19 0 19 4 3 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 17 0 6 1 0 1 1 0 482 0 pffrnode 88 17 0 6 1 0 1 1 0 8 0 pffrent 40 73 0 62 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 5 0 0 1 0 1 1 0 8 0 pfstitem 24 134 0 37 1 0 1 1 0 8 0 pfstkey 128 136 0 39 4 0 4 4 0 8 0 pfstate 376 133 0 38 10 0 10 10 0 8 0 pfrule 1344 25 0 18 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 875 0 451 31 4 27 30 0 8 0 art_table 32 878 0 451 4 0 4 4 0 8 0 art_node 16 208 0 129 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 81 0 71 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 51 0 34 3 0 3 3 0 8 0 dino2pl 256 5111 0 3602 95 0 95 95 0 8 0 ffsino 272 5111 0 3602 103 1 102 102 0 8 0 nchpl 144 8064 0 7499 64 40 24 64 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 29665 0 29665 6 5 1 3 0 8 1 percpumem 16 88 0 42 1 0 1 1 0 8 0 kstatmem 264 108 0 84 2 0 2 2 0 8 0 scsiplug 72 7 0 7 5 4 1 1 0 8 1 scxspl 216 24202 0 24202 13 12 1 7 1 8 1 plimitpl 152 562 0 545 1 0 1 1 0 8 0 sigapl 424 2402 0 2329 10 1 9 9 0 8 0 futexpl 64 28636 0 28627 1 0 1 1 0 8 0 knotepl 120 568 0 0 17 0 17 17 0 8 0 kqueuepl 216 625 0 615 9 8 1 5 0 8 0 pipepl 320 469 0 441 8 5 3 8 0 8 0 fdescpl 496 2358 0 2326 7 2 5 6 0 8 0 filepl 152 17544 0 17179 28 13 15 18 0 8 0 lockfpl 104 911 0 904 3 2 1 2 0 8 0 lockfspl 48 270 0 265 1 0 1 1 0 8 0 sessionpl 144 39 0 29 1 0 1 1 0 8 0 pgrppl 48 92 0 74 1 0 1 1 0 8 0 ucredpl 104 3101 0 3084 1 0 1 1 0 8 0 zombiepl 144 2784 0 2782 1 0 1 1 0 8 0 processpl 1160 2402 0 2329 7 1 6 6 0 8 0 procpl 648 5723 0 5638 9 1 8 8 0 8 0 srpgc 96 16 0 16 3 3 0 1 0 8 0 sosppl 168 11 0 11 3 3 0 1 0 8 0 sockpl 664 5064 0 4924 41 29 12 15 0 8 0 mcl64k 65536 6 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 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 137 0 0 18 1 17 18 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 32 0 0 3 0 3 3 0 8 0 mtagpl 96 122 0 0 3 0 3 3 0 8 0 mbufpl 256 313 0 0 17 0 17 17 0 8 0 bufpl 280 6454 0 280 442 0 442 442 0 8 0 anonpl 24 353955 0 348252 88 29 59 74 0 185 5 amapchunkpl 152 69715 0 69029 57 23 34 38 0 158 5 amappl16 200 8612 0 8557 51 36 15 27 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 156 0 142 1 0 1 1 0 8 0 amappl13 176 37 0 37 1 1 0 1 0 8 0 amappl12 168 3130 0 3097 4 1 3 3 0 8 0 amappl11 160 78 0 64 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 129 0 115 1 0 1 1 0 8 0 amappl6 120 238 0 236 1 0 1 1 0 8 0 amappl5 112 180 0 167 1 0 1 1 0 8 0 amappl4 104 384 0 364 1 0 1 1 0 8 0 amappl3 96 12903 0 12790 4 1 3 4 0 8 0 amappl2 88 2765 0 2671 3 0 3 3 0 8 0 amappl1 80 16557 0 15906 16 0 16 16 0 8 0 amappl 88 20631 0 20423 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 2 0 2 2 2 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 7 0 7 2 2 0 1 0 8 0 dma128 128 255 0 255 3 3 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 23 0 22 1 0 1 1 0 8 0 aobjpl 72 138 0 8 3 0 3 3 0 8 0 uaddrrnd 24 2358 0 2325 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2358 0 2325 1 0 1 1 0 8 0 vmmpekpl 168 20655 0 20605 4 1 3 3 0 8 0 vmmpepl 168 154450 0 152332 114 11 103 106 0 357 5 vmsppl 448 2357 0 2325 6 2 4 5 0 8 0 rwobjpl 56 48707 0 41548 104 0 104 104 0 8 1 pdppl 4096 4723 0 4650 131 56 75 87 0 8 2 pvpl 32 18718 0 0 151 0 151 151 0 265 0 pmappl 248 2357 0 2325 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 485 0 116 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(ffff800001321028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff800001321018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800001321000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff800029fe8008) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff8000369a22c8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000369a22c8,ffff800031196bf0,ffff800031196b40) at sys_exit+0x1a syscall(ffff800031196bf0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800031196bf0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cd287254b60, count: -9 ddb{0}> machine ddbcpu 1 1+0x60f sys_exiSt(ffff8000369a22ct8,ffff800031196bf0,ffff80003119o6b40) at sys_exitp+0x1a syscall(pffff800031196bf0) at syscall+0xaedf8 iowrite32 sys/dev/pci/drm/include/linux/io.h:151 [inline] syscall(pffff800031196bf0) at syscall+0xaedf8 r100_mm_wreg sys/dev/pci/drm/radeon/radeon.h:2516 [inline] syscall(pffff800031196bf0) at syscall+0xaedf8 rv770_set_thermal_temperature_range sys/dev/pci/drm/radeon/rv770_dpm.c:1885 [inline] syscall(pffff800031196bf0) at syscall+0xaedf8 sys/dev/pci/drm/radeon/rv770_dpm.c:1986 Xsyscall() at Xsyscall+0x128 end of kernela end trace frame: 0x7cd287254b60, count: 249 Entd of stack trace. 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 vn_write(fffffd806bd587d8,ffff8000371faba8,0) at vn_write+0x4e sys/kern/vfs_vnops.c:393 dofilewritev(ffff8000369a3c18,c8,ffff8000371faba8,0,ffff8000371fac60) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_write(ffff8000369a3c18,ffff8000371fad10,ffff8000371fac60) at sys_write+0xa2 sys/kern/sys_generic.c:300 syscall(ffff8000371fad10) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371fad10) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf7185a18c80, count: -9