panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *178688 66276 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f459f9,ffffffff81ef283c,36f,ffffffff81f53e28) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff8000ffff4010,ffff800014a19050) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a19050) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff800014a19050,1,0) at vn_open+0xc7 sys/kern/vfs_vnops.c:137 doopenat(ffff8000ffff4010,ffffff9c,20000180,0,0,ffff800014a19290) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff800014a19340) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,25e825a010) at Xsyscall+0x128 end of kernel end trace frame: 0x28231840c0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 879 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f459f9,ffffffff81ef283c,36f,ffffffff81f53e28) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff8000ffff4010,ffff800014a19050) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a19050) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff800014a19050,1,0) at vn_open+0xc7 sys/kern/vfs_vnops.c:137 doopenat(ffff8000ffff4010,ffffff9c,20000180,0,0,ffff800014a19290) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff800014a19340) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,25e825a010) at Xsyscall+0x128 end of kernel end trace frame: 0x28231840c0, count: -9 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x3f90 __ALIGN_SIZE+0x2f90 rbp 0xffff800014a18c90 rbx 0xffff800014a18d40 rdx 0x3f91 __ALIGN_SIZE+0x2f91 rcx 0xffff80000093b000 rax 0xffff80000093b000 r8 0xffff800014a18c50 r9 0x1 r10 0xffff800000936cc0 r11 0x91bb33aa13702e40 r12 0x3000000008 r13 0xffff800014a18ca0 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a18c80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=178688 stat=onproc flags process=0 proc=4000000 pri=54, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8710,0xffffffff82252c30 process=0xffff8000ffff6d30 user=0xffff800014a14000, vmspace=0xfffffd803f014420 estcpu=4, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66276 448057 50994 0 2 0 syz-executor.1 *66276 178688 50994 0 7 0x4000000 syz-executor.1 93682 344784 6235 0 2 0 syz-executor.0 93682 59565 6235 0 3 0x4000080 fsleep syz-executor.0 93682 369552 6235 0 3 0x4000080 fsleep syz-executor.0 24991 59877 0 0 3 0x14200 bored sosplice 6235 242462 49002 0 2 0x482 syz-executor.0 50994 86633 49002 0 2 0x482 syz-executor.1 49002 240337 47349 0 3 0x82 thrsleep syz-fuzzer 49002 112877 47349 0 3 0x4000082 thrsleep syz-fuzzer 49002 412250 47349 0 3 0x4000082 thrsleep syz-fuzzer 49002 478470 47349 0 3 0x4000082 thrsleep syz-fuzzer 49002 323921 47349 0 3 0x4000082 thrsleep syz-fuzzer 49002 140892 47349 0 3 0x4000082 kqread syz-fuzzer 49002 192585 47349 0 3 0x4000082 thrsleep syz-fuzzer 47349 63842 17144 0 3 0x10008a pause ksh 17144 248113 45095 0 3 0x92 select sshd 60678 1514 1 0 3 0x100083 ttyin getty 45095 411796 1 0 3 0x80 select sshd 33610 255091 15951 73 3 0x100090 kqread syslogd 15951 90895 1 0 3 0x100082 netio syslogd 48856 363551 1 77 3 0x100090 poll dhclient 97770 3415 1 0 3 0x80 poll dhclient 64815 482253 0 0 2 0x14200 zerothread 62038 262748 0 0 3 0x14200 aiodoned aiodoned 54790 152284 0 0 3 0x14200 syncer update 84722 360495 0 0 3 0x14200 cleaner cleaner 78369 3190 0 0 3 0x14200 reaper reaper 99091 145618 0 0 3 0x14200 pgdaemon pagedaemon 12621 478005 0 0 3 0x14200 bored crynlk 50573 384382 0 0 3 0x14200 bored crypto 82511 401664 0 0 3 0x40014200 acpi0 acpi0 5091 405514 0 0 3 0x14200 bored softnet 13887 401970 0 0 3 0x14200 bored systqmp 44859 28708 0 0 3 0x14200 bored systq 27206 173897 0 0 2 0x40014200 softclock 88485 335733 0 0 3 0x40014200 idle0 37335 475989 0 0 3 0x14200 bored smr 1 69192 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9459 6318K 6323K 78643K 10592 0 0 pcb 23 9K 10K 78643K 109 0 0 rtable 100 3K 3K 78643K 206 0 0 ifaddr 42 11K 11K 78643K 59 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 16K 78643K 9 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 75K 78643K 1237 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 3 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 4 0K 0K 78643K 4 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 95 0 0 proc 44 38K 54K 78643K 277 0 0 subproc 64 65538K 69634K 78643K 68 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 2 0 0 in_multi 33 2K 2K 78643K 40 0 0 ether_multi 1 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 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 172 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 78 20K 20K 78643K 956 0 0 UVM aobj 5 2K 2K 78643K 5 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 7 0K 0K 78643K 16 0 0 temp 95 2344K 2408K 78643K 3119 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 58 0 51 1 0 1 1 0 8 0 plimitpl 152 17 0 10 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 18 0 14 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1576 0 162 46 0 46 46 0 8 0 ffsino 240 1576 0 162 84 0 84 84 0 8 0 nchpl 144 1915 0 288 61 0 61 61 0 8 0 uvmvnodes 72 1621 0 0 30 0 30 30 0 8 0 vnodes 200 1621 0 0 86 0 86 86 0 8 0 namei 1024 4830 0 4829 1 0 1 1 0 8 0 scxspl 192 5407 0 5407 7 6 1 6 0 8 1 sigapl 432 265 0 251 2 0 2 2 0 8 0 futexpl 56 1310 0 1308 1 0 1 1 0 8 0 knotepl 112 57 0 38 1 0 1 1 0 8 0 kqueuepl 104 20 0 18 1 0 1 1 0 8 0 pipepl 112 166 0 147 2 1 1 1 0 8 0 fdescpl 424 266 0 251 2 0 2 2 0 8 0 filepl 120 1411 0 1314 4 0 4 4 0 8 1 lockfpl 104 43 0 43 2 1 1 1 0 8 1 lockfspl 32 34 0 34 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 170 0 163 1 0 1 1 0 8 0 zombiepl 144 251 0 251 2 1 1 1 0 8 1 processpl 840 281 0 251 4 0 4 4 0 8 0 procpl 600 392 0 353 4 0 4 4 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 140 0 123 3 0 3 3 0 8 1 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 13 0 13 2 1 1 1 0 8 1 mcl2k 2048 47571 0 47529 15 7 8 13 0 8 2 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 78112 0 78034 12 4 8 8 0 8 1 bufpl 256 5768 0 1305 280 0 280 280 0 8 0 anonpl 16 36839 0 28067 53 2 51 51 0 62 15 amapchunkpl 152 1025 0 940 6 2 4 6 0 158 0 amappl16 192 1041 0 572 35 3 32 35 0 8 8 amappl15 184 127 0 119 1 0 1 1 0 8 0 amappl14 176 21 0 19 2 1 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 95 0 80 1 0 1 1 0 8 0 amappl10 144 59 0 58 2 1 1 1 0 8 0 amappl9 136 530 0 527 1 0 1 1 0 8 0 amappl8 128 109 0 98 1 0 1 1 0 8 0 amappl7 120 25 0 23 1 0 1 1 0 8 0 amappl6 112 133 0 122 1 0 1 1 0 8 0 amappl5 104 132 0 123 1 0 1 1 0 8 0 amappl4 96 450 0 425 2 1 1 2 0 8 0 amappl3 88 123 0 115 1 0 1 1 0 8 0 amappl2 80 1339 0 1279 2 0 2 2 0 8 0 amappl1 72 13831 0 13409 26 17 9 19 0 8 0 amappl 72 596 0 561 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 266 0 251 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 266 0 251 1 0 1 1 0 8 0 vmmpekpl 168 5978 0 5960 2 0 2 2 0 8 0 vmmpepl 168 35828 0 34359 85 14 71 72 0 357 7 vmsppl 264 265 0 251 2 1 1 2 0 8 0 pdppl 4096 538 0 502 6 1 5 6 0 8 0 pvpl 32 136176 0 124288 140 7 133 133 0 265 37 pmappl 192 265 0 251 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 421 0 15 12 0 12 12 0 8 0