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 *344115 22808 0 0 0x4000000 0 syz-executor.1 285145 97762 0 0x2 0 1 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(ffff800020b38e28,ffff800020c1f738) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c1f738) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b38e28,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c1f9f0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1f9f0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,4a017c2f0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x4a2a21c2610, 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{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(ffff800020b38e28,ffff800020c1f738) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c1f738) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b38e28,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c1f9f0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1f9f0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,4a017c2f0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x4a2a21c2610, count: -8 ddb{0}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x37f0 __ALIGN_SIZE+0x27f0 rbp 0xffff800020c1f4e0 rbx 0xffff800020c1f590 rdx 0x37f1 __ALIGN_SIZE+0x27f1 rcx 0xffff800000b66000 rax 0xffff800000b66000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x60538e853ba73934 r12 0x3000000008 r13 0xffff800020c1f4f0 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c1f4d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=344115 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b39530,0xffffffff82394e00 process=0xffff800020b8da58 user=0xffff800020c1a000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22808 459715 97762 0 2 0 syz-executor.1 22808 108725 97762 0 3 0x4000080 fsleep syz-executor.1 *22808 344115 97762 0 7 0x4000000 syz-executor.1 92138 461901 89623 0 2 0x482 syz-executor.0 97762 285145 89623 0 7 0x2 syz-executor.1 12890 9819 1 0 3 0x100083 ttyin getty 51445 248514 0 0 3 0x14200 bored sosplice 89623 254073 68462 0 3 0x82 thrsleep syz-fuzzer 89623 406405 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 418535 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 423002 68462 0 3 0x4000082 kqread syz-fuzzer 89623 223740 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 56149 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 32754 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 98053 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 385995 68462 0 3 0x4000082 thrsleep syz-fuzzer 89623 26544 68462 0 3 0x4000082 thrsleep syz-fuzzer 68462 413757 95128 0 3 0x10008a pause ksh 95128 356984 80812 0 3 0x92 select sshd 80812 149858 1 0 3 0x80 select sshd 29285 303449 26144 74 3 0x100092 bpf pflogd 26144 478064 1 0 3 0x80 netio pflogd 44976 111497 14395 73 3 0x100090 kqread syslogd 14395 465351 1 0 3 0x100082 netio syslogd 89980 522544 1 77 3 0x100090 poll dhclient 31590 434985 1 0 3 0x80 poll dhclient 37250 238450 0 0 2 0x14200 zerothread 95208 286891 0 0 3 0x14200 aiodoned aiodoned 41736 382261 0 0 3 0x14200 syncer update 13975 329867 0 0 3 0x14200 cleaner cleaner 52091 420004 0 0 3 0x14200 reaper reaper 15589 342730 0 0 3 0x14200 pgdaemon pagedaemon 62296 496240 0 0 3 0x14200 bored crynlk 48597 61446 0 0 3 0x14200 bored crypto 62546 102642 0 0 3 0x40014200 acpi0 acpi0 27482 110768 0 0 3 0x40014200 idle1 13935 454652 0 0 3 0x14200 bored softnet 95322 211077 0 0 3 0x14200 bored systqmp 13880 58277 0 0 3 0x14200 bored systq 35573 48546 0 0 3 0x40014200 bored softclock 98275 261458 0 0 3 0x40014200 idle0 6891 26668 0 0 3 0x14200 bored smr 1 41264 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 22808 (syz-executor.1) thread 0xffff800020b38e28 (344115) exclusive rrwlock inode r = 0 (0xfffffd807cc97a38) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9496 6412K 6421K 78643K 10792 0 0 pcb 25 9K 11K 78643K 389 0 0 rtable 100 3K 4K 78643K 404 0 0 ifaddr 49 12K 12K 78643K 140 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1475 0 0 iov 0 0K 24K 78643K 58 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1507 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 6 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 86 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 618 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 58 63K 71K 78643K 469 0 0 subproc 64 65538K 67586K 78643K 172 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 81 0 0 in_multi 33 2K 2K 78643K 87 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 1 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 248 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 80 20K 29K 78643K 2840 0 0 UVM aobj 33 2K 2K 78643K 33 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 18 0 0 NDP 9 0K 0K 78643K 40 0 0 temp 150 2378K 2443K 78643K 5005 0 0 kqueue 0 0K 0K 78643K 9 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 7 0 3 1 0 1 1 0 8 0 inpcbpl 280 297 0 290 1 0 1 1 0 8 0 plimitpl 152 35 0 27 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 68 0 28 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 90 0 86 1 0 1 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 ppxss 1128 17 0 17 5 4 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 23 0 8 1 0 1 1 0 8 0 pfstkey 112 23 0 8 1 0 1 1 0 8 0 pfstate 328 23 0 8 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 318 0 130 12 0 12 12 0 8 0 art_table 32 319 0 130 2 0 2 2 0 8 0 art_node 16 67 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 5 1 0 1 1 0 8 0 semapl 112 82 0 72 1 0 1 1 0 8 0 shmpl 112 31 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2451 0 1024 47 0 47 47 0 8 0 ffsino 272 2451 0 1024 96 0 96 96 0 8 0 nchpl 144 3516 0 1874 61 0 61 61 0 8 0 uvmvnodes 72 2576 0 0 47 0 47 47 0 8 0 vnodes 200 2576 0 0 136 0 136 136 0 8 0 namei 1024 10343 0 10342 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 1 1 1 0 8 1 scxspl 192 9804 0 9804 8 7 1 6 0 8 1 sigapl 432 810 0 795 2 0 2 2 0 8 0 futexpl 56 5996 0 5995 1 0 1 1 0 8 0 knotepl 112 225 0 206 1 0 1 1 0 8 0 kqueuepl 104 154 0 152 1 0 1 1 0 8 0 pipepl 112 482 0 463 2 1 1 1 0 8 0 fdescpl 488 811 0 795 3 0 3 3 0 8 0 filepl 152 4425 0 4326 6 1 5 6 0 8 1 lockfpl 104 140 0 140 3 2 1 1 0 8 1 lockfspl 32 176 0 176 3 2 1 1 0 8 1 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 806 0 797 1 0 1 1 0 8 0 zombiepl 144 795 0 794 2 1 1 1 0 8 0 processpl 840 827 0 794 4 0 4 4 0 8 0 procpl 600 2094 0 2050 4 0 4 4 0 8 0 srpgc 64 16 0 16 2 1 1 1 0 8 1 sosppl 128 5 0 5 3 3 0 1 0 8 0 sockpl 384 636 0 617 4 1 3 4 0 8 1 mcl64k 65536 230 0 0 29 0 29 29 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 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 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 120 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 359 0 0 19 0 19 19 0 8 0 bufpl 256 7012 0 1143 367 0 367 367 0 8 0 anonpl 16 83549 0 76409 58 17 41 47 0 125 4 amapchunkpl 152 4563 0 4465 10 4 6 9 0 158 1 amappl16 192 3151 0 2696 36 10 26 31 0 8 3 amappl15 184 68 0 62 1 0 1 1 0 8 0 amappl14 176 280 0 277 2 1 1 1 0 8 0 amappl13 168 620 0 617 1 0 1 1 0 8 0 amappl12 160 14 0 11 1 0 1 1 0 8 0 amappl11 152 39 0 22 1 0 1 1 0 8 0 amappl10 144 90 0 86 1 0 1 1 0 8 0 amappl9 136 597 0 594 1 0 1 1 0 8 0 amappl8 128 153 0 139 1 0 1 1 0 8 0 amappl7 120 35 0 31 1 0 1 1 0 8 0 amappl6 112 68 0 59 1 0 1 1 0 8 0 amappl5 104 121 0 106 1 0 1 1 0 8 0 amappl4 96 1041 0 1011 2 1 1 2 0 8 0 amappl3 88 385 0 380 1 0 1 1 0 8 0 amappl2 80 6180 0 6126 2 0 2 2 0 8 0 amappl1 72 26956 0 26504 26 16 10 20 0 8 0 amappl 72 2362 0 2324 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 32 0 0 1 0 1 1 0 8 0 uaddrrnd 24 811 0 795 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 811 0 795 1 0 1 1 0 8 0 vmmpekpl 168 10870 0 10846 2 0 2 2 0 8 0 vmmpepl 168 92607 0 91140 104 24 80 80 0 357 12 vmsppl 360 810 0 795 2 0 2 2 0 8 0 pdppl 4096 1630 0 1590 6 0 6 6 0 8 0 pvpl 32 266977 0 256546 143 28 115 121 0 265 14 pmappl 224 810 0 795 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 557 0 4 16 0 16 16 0 8 0