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 *277284 50283 0 0 0x4000000 1K syz-executor.1 191172 50283 0 0 0x4000080 0 syz-executor.1 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(ffff800020ba9530,ffff800020c211e8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c211e8) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020ba9530,3,20000200,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c214a0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c214a0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff95,0,3,f55ecfad010) at Xsyscall+0x128 end of kernel end trace frame: 0xf589ea5b350, 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(ffff800020ba9530,ffff800020c211e8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c211e8) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020ba9530,3,20000200,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c214a0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c214a0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff95,0,3,f55ecfad010) at Xsyscall+0x128 end of kernel end trace frame: 0xf589ea5b350, count: -8 ddb{1}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x3aeb __ALIGN_SIZE+0x2aeb rbp 0xffff800020c20f90 rbx 0xffff800020c21040 rdx 0x3aec __ALIGN_SIZE+0x2aec rcx 0xffff800001566000 rax 0xffff800001566000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x85df3434245906e7 r12 0x3000000008 r13 0xffff800020c20fa0 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c20f80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=277284 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ba9c38,0xffff800020ba92e8 process=0xffff800020b8cd38 user=0xffff800020c1c000, vmspace=0xfffffd807effe2d0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94316 123471 68682 0 2 0 syz-executor.0 94316 489036 68682 0 2 0x4000000 syz-executor.0 94316 322316 68682 0 3 0x4000080 fsleep syz-executor.0 50283 383010 41847 0 2 0 syz-executor.1 *50283 277284 41847 0 7 0x4000000 syz-executor.1 50283 191172 41847 0 7 0x4000080 syz-executor.1 92224 523484 1 0 3 0x100083 ttyin getty 68682 228140 12841 0 3 0x82 nanosleep syz-executor.0 41847 378292 12841 0 3 0x82 nanosleep syz-executor.1 9389 402557 0 0 3 0x14200 bored sosplice 12841 80813 8219 0 3 0x82 thrsleep syz-fuzzer 12841 353166 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 111701 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 77920 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 345893 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 393689 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 301080 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 487248 8219 0 3 0x4000082 thrsleep syz-fuzzer 12841 124557 8219 0 3 0x4000082 kqread syz-fuzzer 12841 459737 8219 0 3 0x4000082 thrsleep syz-fuzzer 8219 458829 90836 0 3 0x10008a pause ksh 90836 355172 76753 0 3 0x92 select sshd 76753 195985 1 0 3 0x80 select sshd 1662 432966 7364 74 3 0x100092 bpf pflogd 7364 182302 1 0 3 0x80 netio pflogd 40187 179498 73864 73 3 0x100090 kqread syslogd 73864 122566 1 0 3 0x100082 netio syslogd 23487 191704 1 77 3 0x100090 poll dhclient 30877 10629 1 0 3 0x80 poll dhclient 35897 9745 0 0 2 0x14200 zerothread 61606 345310 0 0 3 0x14200 aiodoned aiodoned 25574 219652 0 0 3 0x14200 syncer update 95472 179435 0 0 3 0x14200 cleaner cleaner 65306 302922 0 0 3 0x14200 reaper reaper 97769 299216 0 0 3 0x14200 pgdaemon pagedaemon 40564 334543 0 0 3 0x14200 bored crynlk 96090 383306 0 0 3 0x14200 bored crypto 74356 254970 0 0 3 0x40014200 acpi0 acpi0 60426 290735 0 0 3 0x40014200 idle1 43577 344639 0 0 3 0x14200 bored softnet 75306 198138 0 0 3 0x14200 bored systqmp 48466 246312 0 0 3 0x14200 bored systq 47728 420653 0 0 3 0x40014200 bored softclock 62699 77039 0 0 3 0x40014200 idle0 53770 272999 0 0 3 0x14200 bored smr 1 462716 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 50283 (syz-executor.1) thread 0xffff800020ba9530 (277284) exclusive rrwlock inode r = 0 (0xfffffd80686af818) 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 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9532 6433K 6441K 78643K 11059 0 0 pcb 25 9K 10K 78643K 671 0 0 rtable 100 3K 4K 78643K 1180 0 0 ifaddr 61 14K 15K 78643K 332 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1501 0 0 iov 0 0K 16K 78643K 164 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1186 74K 75K 78643K 2138 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 25 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 36 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 1257 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 57 63K 71K 78643K 963 0 0 subproc 64 65538K 67586K 78643K 886 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 121 0 0 in_multi 33 2K 2K 78643K 338 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 410 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 105 21K 30K 78643K 4961 0 0 UVM aobj 68 3K 3K 78643K 74 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 36 0 0 NDP 13 0K 0K 78643K 121 0 0 temp 179 2379K 2447K 78643K 8007 0 0 kqueue 0 0K 0K 78643K 18 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 28 0 24 1 0 1 1 0 8 0 inpcbpl 280 634 0 627 1 0 1 1 0 8 0 plimitpl 152 102 0 94 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 261 0 221 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpcb 544 232 0 228 1 0 1 1 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 52 0 48 1 0 1 1 0 8 0 ppxss 1128 27 0 27 7 7 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 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 49 0 45 1 0 1 1 0 8 0 pfstkey 112 49 0 45 1 0 1 1 0 8 0 pfstate 328 49 0 45 3 1 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 1222 0 1032 12 0 12 12 0 8 0 art_table 32 1223 0 1032 2 0 2 2 0 8 0 art_node 16 258 0 224 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 9 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 72 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3439 0 1986 48 1 47 48 0 8 0 ffsino 272 3439 0 1986 99 1 98 98 0 8 0 nchpl 144 5353 0 3703 62 0 62 62 0 8 0 uvmvnodes 72 3967 0 0 73 0 73 73 0 8 0 vnodes 200 3967 0 0 209 0 209 209 0 8 0 namei 1024 16881 0 16880 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 14304 0 14304 10 9 1 6 0 8 1 sigapl 432 1386 0 1370 2 0 2 2 0 8 0 futexpl 56 11996 0 11995 1 0 1 1 0 8 0 knotepl 112 756 0 737 1 0 1 1 0 8 0 kqueuepl 104 305 0 303 1 0 1 1 0 8 0 pipepl 112 1004 0 985 4 3 1 2 0 8 0 fdescpl 488 1387 0 1370 4 1 3 3 0 8 0 filepl 152 8427 0 8323 8 3 5 6 0 8 0 lockfpl 104 349 0 349 5 4 1 1 0 8 1 lockfspl 32 473 0 473 5 4 1 1 0 8 1 sessionpl 112 44 0 33 1 0 1 1 0 8 0 pgrppl 48 59 0 47 1 0 1 1 0 8 0 ucredpl 96 1757 0 1748 1 0 1 1 0 8 0 zombiepl 144 1370 0 1370 3 2 1 1 0 8 1 processpl 840 1403 0 1370 4 0 4 4 0 8 0 procpl 600 3779 0 3733 4 0 4 4 0 8 0 srpgc 64 146 0 146 5 5 0 1 0 8 0 sosppl 128 6 0 6 3 3 0 1 0 8 0 sockpl 384 1233 0 1214 4 1 3 3 0 8 1 mcl64k 65536 241 0 0 31 0 31 31 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 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 132 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 412 0 0 19 0 19 19 0 8 0 bufpl 256 7843 0 1143 419 0 419 419 0 8 0 anonpl 16 157832 0 148722 84 33 51 53 0 125 13 amapchunkpl 152 9113 0 9000 22 17 5 10 0 158 0 amappl16 192 6234 0 5780 73 44 29 35 0 8 6 amappl15 184 601 0 597 1 0 1 1 0 8 0 amappl14 176 302 0 296 3 2 1 1 0 8 0 amappl13 168 236 0 228 1 0 1 1 0 8 0 amappl12 160 341 0 334 2 1 1 1 0 8 0 amappl11 152 175 0 160 1 0 1 1 0 8 0 amappl10 144 189 0 187 1 0 1 1 0 8 0 amappl9 136 721 0 717 1 0 1 1 0 8 0 amappl8 128 311 0 284 1 0 1 1 0 8 0 amappl7 120 106 0 102 1 0 1 1 0 8 0 amappl6 112 80 0 70 1 0 1 1 0 8 0 amappl5 104 245 0 230 1 0 1 1 0 8 0 amappl4 96 1371 0 1337 2 1 1 2 0 8 0 amappl3 88 615 0 606 1 0 1 1 0 8 0 amappl2 80 10911 0 10844 2 0 2 2 0 8 0 amappl1 72 40731 0 40264 25 15 10 20 0 8 0 amappl 72 4212 0 4168 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 73 0 6 2 0 2 2 0 8 0 uaddrrnd 24 1387 0 1370 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1387 0 1370 1 0 1 1 0 8 0 vmmpekpl 168 15265 0 15239 2 0 2 2 0 8 0 vmmpepl 168 160640 0 159047 123 47 76 84 0 357 6 vmsppl 360 1386 0 1370 2 0 2 2 0 8 0 pdppl 4096 2782 0 2740 7 1 6 6 0 8 0 pvpl 32 440714 0 428216 206 68 138 142 0 265 37 pmappl 224 1386 0 1370 3 2 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 617 0 7 18 0 18 18 0 8 0