panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 273737 91856 0 0 0 1 syz-executor.0 *366557 91856 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7eb2c,ffffffff81f800b9,36f,ffffffff81f8afb5) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b74bd0,ffff800020c2f3e0) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c2f3e0) at namei+0x88b sys/kern/vfs_lookup.c:232 vn_open(ffff800020c2f3e0,212,0) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff800020b74bd0,ffffff9c,200000c0,611,0,ffff800020c2f620) at doopenat+0x2ca sys/kern/vfs_syscalls.c:1045 syscall(ffff800020c2f6d0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2f6d0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffa8,0,3,5de086e3010) at Xsyscall+0x128 end of kernel end trace frame: 0x5e09e48c030, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7eb2c,ffffffff81f800b9,36f,ffffffff81f8afb5) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b74bd0,ffff800020c2f3e0) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c2f3e0) at namei+0x88b sys/kern/vfs_lookup.c:232 vn_open(ffff800020c2f3e0,212,0) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff800020b74bd0,ffffff9c,200000c0,611,0,ffff800020c2f620) at doopenat+0x2ca sys/kern/vfs_syscalls.c:1045 syscall(ffff800020c2f6d0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2f6d0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffa8,0,3,5de086e3010) at Xsyscall+0x128 end of kernel end trace frame: 0x5e09e48c030, count: -9 ddb{0}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x391d __ALIGN_SIZE+0x291d rbp 0xffff800020c2f020 rbx 0xffff800020c2f0d0 rdx 0x391e __ALIGN_SIZE+0x291e rcx 0xffff800003b66000 rax 0xffff800003b66000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0xc367d18ae43fe86c r12 0x3000000008 r13 0xffff800020c2f030 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2f010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=366557 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020b752d8,0xffff800020b74280 process=0xffff800020b8c018 user=0xffff800020c2a000, vmspace=0xfffffd807effeca8 estcpu=29, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91856 273737 1239 0 7 0 syz-executor.0 *91856 366557 1239 0 7 0x4000000 syz-executor.0 91856 111225 1239 0 2 0x4000080 syz-executor.0 91856 441101 1239 0 3 0x4000080 fsleep syz-executor.0 1239 142917 82407 0 2 0x482 syz-executor.0 70346 482849 82407 0 3 0x82 piperd syz-executor.1 11193 255673 0 0 3 0x14200 bored sosplice 82407 304428 65614 0 3 0x82 thrsleep syz-fuzzer 82407 79046 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 234689 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 425710 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 121102 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 109979 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 520386 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 373557 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 345989 65614 0 3 0x4000082 thrsleep syz-fuzzer 82407 251818 65614 0 3 0x4000082 kqread syz-fuzzer 65614 367631 46468 0 3 0x10008a pause ksh 46468 415705 45705 0 3 0x92 select sshd 54105 443832 1 0 3 0x100083 ttyin getty 45705 435442 1 0 3 0x80 select sshd 66450 415677 20878 74 3 0x100092 bpf pflogd 20878 93799 1 0 3 0x80 netio pflogd 65500 420906 62780 73 3 0x100090 kqread syslogd 62780 98352 1 0 3 0x100082 netio syslogd 35195 373568 1 77 3 0x100090 poll dhclient 62849 77611 1 0 3 0x80 poll dhclient 49586 26430 0 0 3 0x14200 pgzero zerothread 48545 364738 0 0 3 0x14200 aiodoned aiodoned 60820 145493 0 0 3 0x14200 syncer update 6311 428003 0 0 3 0x14200 cleaner cleaner 97001 425472 0 0 3 0x14200 reaper reaper 52454 52976 0 0 3 0x14200 pgdaemon pagedaemon 41728 501339 0 0 3 0x14200 bored crynlk 39185 427166 0 0 3 0x14200 bored crypto 73470 137487 0 0 3 0x40014200 acpi0 acpi0 85438 379165 0 0 3 0x40014200 idle1 58254 95891 0 0 3 0x14200 bored softnet 41492 421604 0 0 3 0x14200 bored systqmp 29609 67154 0 0 3 0x14200 bored systq 785 448836 0 0 3 0x40014200 bored softclock 79449 31999 0 0 3 0x40014200 idle0 25235 418505 0 0 3 0x14200 bored smr 1 9169 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 91856 (syz-executor.0) thread 0xffff800020b74bd0 (366557) exclusive rrwlock inode r = 0 (0xfffffd8077f325e8) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 cache_lookup+0x300 sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1d7 sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x67 sys/kern/vfs_vops.c:90 #9 vfs_lookup+0x556 sys/kern/vfs_lookup.c:523 #10 namei+0x4b2 sys/kern/vfs_lookup.c:224 #11 vn_open+0x157 sys/kern/vfs_vnops.c:103 #12 doopenat+0x2ca sys/kern/vfs_syscalls.c:1045 #13 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #13 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8077f32b38) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387 #6 namei+0x4b2 sys/kern/vfs_lookup.c:224 #7 vn_open+0x157 sys/kern/vfs_vnops.c:103 #8 doopenat+0x2ca sys/kern/vfs_syscalls.c:1045 #9 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #9 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234a3d0) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 syscall+0x48b mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x48b sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9528 6416K 6442K 78643K 10829 0 0 pcb 25 9K 11K 78643K 315 0 0 rtable 103 4K 4K 78643K 482 0 0 ifaddr 62 14K 14K 78643K 167 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1484 0 0 iov 0 0K 16K 78643K 81 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 75K 78643K 1555 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 9 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 35 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 988 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 57 63K 71K 78643K 478 0 0 subproc 64 65538K 67586K 78643K 244 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 57 0 0 in_multi 33 2K 2K 78643K 102 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 262 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 86 20K 29K 78643K 4009 0 0 UVM aobj 38 2K 2K 78643K 42 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 26 0 0 NDP 13 0K 0K 78643K 51 0 0 temp 174 2378K 3007K 78643K 6745 0 0 kqueue 0 0K 0K 78643K 6 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 5 1 0 1 1 0 8 0 inpcbpl 280 300 0 293 1 0 1 1 0 8 0 plimitpl 152 39 0 31 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 86 0 46 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 20 0 20 1 1 0 1 0 8 0 tcpcb 544 103 0 99 1 0 1 1 0 8 0 nd6 48 14 0 10 1 0 1 1 0 8 0 ppxss 1128 15 0 15 3 3 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 26 0 16 1 0 1 1 0 8 0 pfstkey 112 26 0 16 1 0 1 1 0 8 0 pfstate 328 26 0 16 2 0 2 2 0 8 0 pfrule 1360 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 403 0 211 12 0 12 12 0 8 0 art_table 32 404 0 211 2 0 2 2 0 8 0 art_node 16 85 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 8 1 0 1 1 0 8 0 semapl 112 33 0 23 1 0 1 1 0 8 0 shmpl 112 40 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3281 0 1845 47 0 47 47 0 8 0 ffsino 272 3281 0 1845 97 0 97 97 0 8 0 nchpl 144 5166 0 3516 62 0 62 62 0 8 0 uvmvnodes 72 3444 0 0 63 0 63 63 0 8 0 vnodes 200 3444 0 0 182 0 182 182 0 8 0 namei 1024 14243 0 14242 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 14002 0 14002 10 9 1 6 0 8 1 sigapl 432 1172 0 1157 2 0 2 2 0 8 0 futexpl 56 13020 0 13019 1 0 1 1 0 8 0 knotepl 112 217 0 198 1 0 1 1 0 8 0 kqueuepl 104 108 0 106 1 0 1 1 0 8 0 pipepl 112 2022 0 2003 3 2 1 2 0 8 0 fdescpl 488 1173 0 1157 3 0 3 3 0 8 0 filepl 152 6696 0 6596 6 1 5 6 0 8 1 lockfpl 104 151 0 151 3 2 1 1 0 8 1 lockfspl 32 218 0 218 3 2 1 1 0 8 1 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 2380 0 2371 1 0 1 1 0 8 0 zombiepl 144 1157 0 1157 2 1 1 1 0 8 1 processpl 840 1189 0 1157 4 0 4 4 0 8 0 procpl 600 3241 0 3197 4 0 4 4 0 8 0 srpgc 64 30 0 30 4 3 1 1 0 8 1 sosppl 128 5 0 5 1 1 0 1 0 8 0 sockpl 384 562 0 543 5 2 3 4 0 8 1 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 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 175 0 0 8 0 8 8 0 8 0 bufpl 256 7500 0 1147 398 0 398 398 0 8 0 anonpl 16 114333 0 106153 56 13 43 46 0 125 7 amapchunkpl 152 6776 0 6685 18 10 8 11 0 158 3 amappl16 192 5567 0 5096 40 16 24 35 0 8 0 amappl15 184 61 0 57 1 0 1 1 0 8 0 amappl14 176 491 0 487 2 1 1 1 0 8 0 amappl13 168 92 0 87 1 0 1 1 0 8 0 amappl12 160 469 0 467 1 0 1 1 0 8 0 amappl11 152 143 0 125 1 0 1 1 0 8 0 amappl10 144 383 0 379 1 0 1 1 0 8 0 amappl9 136 599 0 595 1 0 1 1 0 8 0 amappl8 128 166 0 150 1 0 1 1 0 8 0 amappl7 120 350 0 343 1 0 1 1 0 8 0 amappl6 112 170 0 161 1 0 1 1 0 8 0 amappl5 104 149 0 135 1 0 1 1 0 8 0 amappl4 96 1006 0 977 2 1 1 2 0 8 0 amappl3 88 1031 0 1025 1 0 1 1 0 8 0 amappl2 80 9126 0 9072 2 0 2 2 0 8 0 amappl1 72 33927 0 33481 25 15 10 20 0 8 0 amappl 72 3518 0 3481 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 41 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1173 0 1157 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1173 0 1157 1 0 1 1 0 8 0 vmmpekpl 168 16181 0 16161 2 0 2 2 0 8 0 vmmpepl 168 131369 0 129880 115 35 80 80 0 357 11 vmsppl 360 1172 0 1157 2 0 2 2 0 8 0 pdppl 4096 2354 0 2314 6 0 6 6 0 8 0 pvpl 32 349759 0 337598 143 27 116 123 0 265 17 pmappl 224 1172 0 1157 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 551 0 4 16 0 16 16 0 8 0