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 30604 64331 0 0 0 0 syz-executor.0 *466680 64331 0 0 0x4000000 1K 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(ffff800020b39788,ffff800020c29088) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c29088) at namei+0x88b sys/kern/vfs_lookup.c:232 domknodat(ffff800020b39788,ffffff9c,20000080,11,0) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff800020c29350) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c29350) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff96,0,3,ef47632b010) at Xsyscall+0x128 end of kernel end trace frame: 0xef6ebbe6fa0, count: 7 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 ddb{1}> 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(ffff800020b39788,ffff800020c29088) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c29088) at namei+0x88b sys/kern/vfs_lookup.c:232 domknodat(ffff800020b39788,ffffff9c,20000080,11,0) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff800020c29350) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c29350) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff96,0,3,ef47632b010) at Xsyscall+0x128 end of kernel end trace frame: 0xef6ebbe6fa0, count: -8 ddb{1}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x3a49 __ALIGN_SIZE+0x2a49 rbp 0xffff800020c28e20 rbx 0xffff800020c28ed0 rdx 0x3a4a __ALIGN_SIZE+0x2a4a rcx 0xffff800003b66000 rax 0xffff800003b66000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x46a231b64d2d87c2 r12 0x3000000008 r13 0xffff800020c28e30 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c28e10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=466680 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38978,0xffffffff82394e00 process=0xffff800020afb070 user=0xffff800020c24000, vmspace=0xfffffd807effe168 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64331 30604 15843 0 7 0 syz-executor.0 *64331 466680 15843 0 7 0x4000000 syz-executor.0 42283 290584 1 0 3 0x100083 ttyin getty 15843 445178 76970 0 3 0x82 nanosleep syz-executor.0 63422 523952 76970 0 3 0x2 biowait syz-executor.1 78515 407885 0 0 3 0x14200 bored sosplice 76970 1238 9568 0 3 0x82 thrsleep syz-fuzzer 76970 279192 9568 0 3 0x4000082 nanosleep syz-fuzzer 76970 265909 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 90526 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 317805 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 59297 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 210672 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 482934 9568 0 3 0x4000082 thrsleep syz-fuzzer 76970 333430 9568 0 3 0x4000082 kqread syz-fuzzer 76970 140575 9568 0 3 0x4000082 thrsleep syz-fuzzer 9568 263288 42293 0 3 0x10008a pause ksh 42293 392474 15631 0 3 0x92 select sshd 15631 506283 1 0 3 0x80 select sshd 60125 39988 84058 74 3 0x100092 bpf pflogd 84058 236683 1 0 3 0x80 netio pflogd 74570 295288 69561 73 3 0x100090 kqread syslogd 69561 398082 1 0 3 0x100082 netio syslogd 90139 34331 0 0 3 0x14200 pgzero zerothread 98189 514444 0 0 3 0x14200 aiodoned aiodoned 47887 132680 0 0 3 0x14200 syncer update 96297 332759 0 0 3 0x14200 cleaner cleaner 66663 214235 0 0 3 0x14200 reaper reaper 16575 229606 0 0 3 0x14200 pgdaemon pagedaemon 17250 410197 0 0 3 0x14200 bored crynlk 53290 179830 0 0 3 0x14200 bored crypto 35269 200199 0 0 3 0x40014200 acpi0 acpi0 70419 147657 0 0 3 0x40014200 idle1 96155 205028 0 0 3 0x14200 bored softnet 11003 446523 0 0 3 0x14200 bored systqmp 18276 522449 0 0 3 0x14200 bored systq 25113 20333 0 0 3 0x40014200 bored softclock 53789 479380 0 0 3 0x40014200 idle0 95533 413771 0 0 3 0x14200 bored smr 1 263219 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 64331 (syz-executor.0) thread 0xffff800020b39788 (466680) exclusive rrwlock inode r = 0 (0xfffffd807e09a0a8) 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 domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 #12 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #12 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #13 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 Process 63422 (syz-executor.1) thread 0xffff800020b392d8 (523952) exclusive rrwlock inode r = 0 (0xfffffd806f7fc810) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_ihash.c:140 #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 ufs_ihashins+0x6d sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x143 sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0x10f sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0x76 sys/kern/vfs_vops.c:449 #8 domkdirat+0x12d sys/kern/vfs_syscalls.c:2881 #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 rrwlock inode r = 0 (0xfffffd807c00f2b8) 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 domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 #8 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9514 6364K 6426K 78643K 10878 0 0 pcb 21 9K 11K 78643K 398 0 0 rtable 100 3K 4K 78643K 450 0 0 ifaddr 60 14K 14K 78643K 214 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1479 0 0 iov 0 0K 24K 78643K 120 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1193 75K 75K 78643K 1692 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 13 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 130 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 739 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 57 63K 71K 78643K 568 0 0 subproc 64 65538K 67586K 78643K 340 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 102 0 0 in_multi 33 2K 2K 78643K 143 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 285 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 84 20K 29K 78643K 3284 0 0 UVM aobj 41 2K 2K 78643K 45 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 22 0 0 NDP 12 0K 0K 78643K 67 0 0 temp 172 2379K 2506K 78643K 5734 0 0 kqueue 0 0K 0K 78643K 11 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 12 0 8 1 0 1 1 0 8 0 inpcbpl 280 402 0 398 1 0 1 1 0 8 0 plimitpl 152 54 0 47 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 114 0 74 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpcb 544 132 0 128 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 20 0 16 1 0 1 1 0 8 0 ppxss 1128 21 0 21 3 2 1 1 0 8 1 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 32 0 18 1 0 1 1 0 8 0 pfstkey 112 32 0 18 1 0 1 1 0 8 0 pfstate 328 32 0 18 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 530 0 342 12 0 12 12 0 8 0 art_table 32 531 0 342 2 0 2 2 0 8 0 art_node 16 113 0 79 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 12 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 124 0 114 1 0 1 1 0 8 0 shmpl 112 43 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2729 0 1296 47 0 47 47 0 8 0 ffsino 272 2729 0 1296 96 0 96 96 0 8 0 nchpl 144 3959 0 2323 61 0 61 61 0 8 0 uvmvnodes 72 2967 0 0 54 0 54 54 0 8 0 vnodes 200 2967 0 0 157 0 157 157 0 8 0 namei 1024 11844 0 11842 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 2 1 1 1 0 8 1 scxspl 192 11767 0 11766 10 9 1 6 0 8 0 sigapl 432 915 0 902 2 0 2 2 0 8 0 futexpl 56 8920 0 8920 1 0 1 1 0 8 1 knotepl 112 381 0 362 1 0 1 1 0 8 0 kqueuepl 104 176 0 174 1 0 1 1 0 8 0 pipepl 112 630 0 611 4 3 1 2 0 8 0 fdescpl 488 916 0 902 3 0 3 3 0 8 0 filepl 152 5460 0 5370 8 4 4 6 0 8 0 lockfpl 104 269 0 269 2 1 1 1 0 8 1 lockfspl 32 405 0 405 2 1 1 1 0 8 1 sessionpl 112 27 0 18 1 0 1 1 0 8 0 pgrppl 48 38 0 29 1 0 1 1 0 8 0 ucredpl 96 1072 0 1064 1 0 1 1 0 8 0 zombiepl 144 902 0 902 3 2 1 1 0 8 1 processpl 840 932 0 902 4 0 4 4 0 8 0 procpl 600 2414 0 2374 4 0 4 4 0 8 0 srpgc 64 49 0 49 4 4 0 1 0 8 0 sosppl 128 4 0 4 3 3 0 1 0 8 0 sockpl 384 731 0 719 5 3 2 4 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 133 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 161 0 0 8 0 8 8 0 8 0 bufpl 256 7641 0 1147 406 0 406 406 0 8 0 anonpl 16 117720 0 109735 61 16 45 48 0 125 6 amapchunkpl 152 5918 0 5830 18 9 9 10 0 158 5 amappl16 192 4567 0 4129 53 22 31 35 0 8 8 amappl15 184 91 0 87 1 0 1 1 0 8 0 amappl14 176 142 0 138 3 2 1 1 0 8 0 amappl13 168 36 0 32 1 0 1 1 0 8 0 amappl12 160 109 0 103 2 1 1 1 0 8 0 amappl11 152 28 0 20 1 0 1 1 0 8 0 amappl10 144 175 0 171 1 0 1 1 0 8 0 amappl9 136 1048 0 1044 1 0 1 1 0 8 0 amappl8 128 622 0 606 1 0 1 1 0 8 0 amappl7 120 50 0 43 1 0 1 1 0 8 0 amappl6 112 62 0 54 1 0 1 1 0 8 0 amappl5 104 238 0 224 1 0 1 1 0 8 0 amappl4 96 1071 0 1043 2 1 1 2 0 8 0 amappl3 88 232 0 225 1 0 1 1 0 8 0 amappl2 80 6750 0 6703 2 0 2 2 0 8 0 amappl1 72 29767 0 29353 26 17 9 20 0 8 0 amappl 72 2719 0 2687 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 44 0 4 1 0 1 1 0 8 0 uaddrrnd 24 916 0 902 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 916 0 902 1 0 1 1 0 8 0 vmmpekpl 168 11186 0 11165 2 0 2 2 0 8 0 vmmpepl 168 106199 0 104823 101 27 74 79 0 357 9 vmsppl 360 915 0 902 2 0 2 2 0 8 0 pdppl 4096 1840 0 1804 6 0 6 6 0 8 0 pvpl 32 326520 0 315378 152 33 119 127 0 265 18 pmappl 224 915 0 902 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 560 0 5 16 0 16 16 0 8 0