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 *358376 46596 0 0 0x4000000 0 syz-executor.0 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(ffff8000ffff3530,ffff8000149b8220) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149b8220) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff8000149b8220,38202,4) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff8000ffff3530,ffffff9c,20000100,38201,6,ffff8000149b8460) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff8000149b8510) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,c13808f0010) at Xsyscall+0x128 end of kernel end trace frame: 0xc15efc27860, 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(ffff8000ffff3530,ffff8000149b8220) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149b8220) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff8000149b8220,38202,4) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff8000ffff3530,ffffff9c,20000100,38201,6,ffff8000149b8460) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff8000149b8510) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,c13808f0010) at Xsyscall+0x128 end of kernel end trace frame: 0xc15efc27860, count: -9 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x40c0 __ALIGN_SIZE+0x30c0 rbp 0xffff8000149b7e60 rbx 0xffff8000149b7f10 rdx 0x40c1 __ALIGN_SIZE+0x30c1 rcx 0xffff800003d3d000 rax 0xffff800003d3d000 r8 0xffff8000149b7e20 r9 0x1 r10 0xffff8000009141c0 r11 0x27cb11b0ec69737a r12 0x3000000008 r13 0xffff8000149b7e70 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149b7e50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=358376 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3788,0xffffffff82252c30 process=0xffff8000ffff69e8 user=0xffff8000149b3000, vmspace=0xfffffd803f014528 estcpu=29, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46596 306902 37666 0 2 0 syz-executor.0 *46596 358376 37666 0 7 0x4000000 syz-executor.0 37666 6498 16863 0 2 0x482 syz-executor.0 25340 378530 16863 0 2 0x2 syz-executor.1 66466 399844 1 0 3 0x100083 ttyin getty 97274 336002 0 0 3 0x14200 bored sosplice 16863 132507 9062 0 3 0x82 thrsleep syz-fuzzer 16863 457500 9062 0 2 0x4000482 syz-fuzzer 16863 106363 9062 0 3 0x4000082 thrsleep syz-fuzzer 16863 501284 9062 0 3 0x4000082 thrsleep syz-fuzzer 16863 7255 9062 0 3 0x4000082 kqread syz-fuzzer 16863 88521 9062 0 3 0x4000082 thrsleep syz-fuzzer 16863 249674 9062 0 3 0x4000082 thrsleep syz-fuzzer 16863 374793 9062 0 3 0x4000082 thrsleep syz-fuzzer 9062 187989 32210 0 3 0x10008a pause ksh 32210 87096 5517 0 3 0x92 select sshd 5517 25192 1 0 3 0x80 select sshd 68262 234207 65937 73 3 0x100090 kqread syslogd 65937 12476 1 0 3 0x100082 netio syslogd 42853 278226 0 0 2 0x14200 zerothread 79955 274837 0 0 3 0x14200 aiodoned aiodoned 74193 311600 0 0 3 0x14200 syncer update 72598 371577 0 0 3 0x14200 cleaner cleaner 161 415431 0 0 3 0x14200 reaper reaper 29767 369615 0 0 3 0x14200 pgdaemon pagedaemon 44813 50973 0 0 3 0x14200 bored crynlk 99268 58585 0 0 3 0x14200 bored crypto 97504 199747 0 0 3 0x40014200 acpi0 acpi0 85388 505613 0 0 3 0x14200 bored softnet 46991 469988 0 0 3 0x14200 bored systqmp 48125 121742 0 0 3 0x14200 bored systq 80688 355584 0 0 3 0x40014200 bored softclock 34614 353720 0 0 3 0x40014200 idle0 67600 136417 0 0 3 0x14200 bored smr 1 56428 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 9559 10404K 10468K 78643K 12041 0 0 pcb 19 8K 11K 78643K 2079 0 0 rtable 103 3K 4K 78643K 1554 0 0 ifaddr 77 18K 20K 78643K 667 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 75 0 0 iov 0 0K 32K 78643K 569 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1188 74K 76K 78643K 3118 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 57 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 79 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 3639 0 0 sigio 1 0K 0K 78643K 72 0 0 proc 47 38K 46K 78643K 1191 0 0 subproc 64 65538K 67586K 78643K 890 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 478 0 0 in_multi 33 2K 2K 78643K 437 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 1 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 657 0 0 pfkey data 0 0K 0K 78643K 2 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 79 20K 25K 78643K 9494 0 0 UVM aobj 130 5K 5K 78643K 148 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 227 0 0 NDP 18 0K 0K 78643K 213 0 0 temp 212 2360K 2428K 78643K 14396 0 0 kqueue 0 0K 0K 78643K 31 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 28 0 24 1 0 1 1 0 8 0 inpcbpl 280 1950 0 1946 1 0 1 1 0 8 0 plimitpl 152 148 0 142 1 0 1 1 0 8 0 rtentry 112 261 0 221 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 721 0 717 1 0 1 1 0 8 0 nd6 48 52 0 48 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 92 0 92 13 12 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1207 0 1019 12 0 12 12 0 8 0 art_table 32 1208 0 1019 2 0 2 2 0 8 0 art_node 16 256 0 222 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 11 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 77 0 67 1 0 1 1 0 8 0 shmpl 112 146 0 18 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7666 0 6127 50 0 50 50 0 8 0 ffsino 240 7666 0 6127 92 1 91 91 0 8 0 nchpl 144 13086 0 11368 64 0 64 64 0 8 0 uvmvnodes 72 6929 0 0 126 0 126 126 0 8 0 vnodes 200 6929 0 0 365 0 365 365 0 8 0 namei 1024 42468 0 42466 3 2 1 1 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 54246 0 54246 25 24 1 6 0 8 1 sigapl 432 3739 0 3728 2 0 2 2 0 8 0 futexpl 56 61746 0 61746 2 1 1 1 0 8 1 knotepl 112 1342 0 1323 1 0 1 1 0 8 0 kqueuepl 104 1180 0 1178 1 0 1 1 0 8 0 pipepl 112 2578 0 2559 6 5 1 2 0 8 0 fdescpl 424 3740 0 3728 2 0 2 2 0 8 0 filepl 120 25074 0 24989 12 9 3 5 0 8 0 lockfpl 104 1009 0 1009 4 3 1 1 0 8 1 lockfspl 32 494 0 494 4 3 1 1 0 8 1 sessionpl 112 43 0 35 1 0 1 1 0 8 0 pgrppl 48 95 0 87 1 0 1 1 0 8 0 ucredpl 96 5010 0 5004 1 0 1 1 0 8 0 zombiepl 144 3728 0 3728 2 1 1 1 0 8 1 processpl 840 3755 0 3728 4 0 4 4 0 8 0 procpl 600 8244 0 8209 4 0 4 4 0 8 0 sosppl 128 54 0 54 16 15 1 1 0 8 1 sockpl 384 3773 0 3763 8 6 2 4 0 8 0 mcl64k 65536 2439 0 2439 245 214 31 47 0 8 31 mcl16k 16384 11 0 11 9 8 1 1 0 8 1 mcl12k 12288 95 0 95 14 13 1 1 0 8 1 mcl9k 9216 72 0 72 14 14 0 1 0 8 0 mcl8k 8192 61 0 61 19 18 1 1 0 8 1 mcl4k 4096 207 0 207 6 5 1 1 0 8 1 mcl2k2 2112 34 0 34 15 14 1 1 0 8 1 mcl2k 2048 53285 0 53253 12 7 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 116704 0 116638 179 166 13 47 0 8 8 bufpl 256 18062 0 11110 435 0 435 435 0 8 0 anonpl 16 451048 0 442956 171 122 49 55 0 62 7 amapchunkpl 152 17381 0 17307 56 51 5 15 0 158 0 amappl16 192 23833 0 23351 204 168 36 38 0 8 10 amappl15 184 1495 0 1491 1 0 1 1 0 8 0 amappl14 176 85 0 83 2 1 1 1 0 8 0 amappl13 168 455 0 452 1 0 1 1 0 8 0 amappl12 160 189 0 185 1 0 1 1 0 8 0 amappl11 152 455 0 451 1 0 1 1 0 8 0 amappl10 144 1094 0 1089 1 0 1 1 0 8 0 amappl9 136 910 0 907 1 0 1 1 0 8 0 amappl8 128 525 0 501 1 0 1 1 0 8 0 amappl7 120 912 0 906 1 0 1 1 0 8 0 amappl6 112 155 0 146 1 0 1 1 0 8 0 amappl5 104 392 0 383 1 0 1 1 0 8 0 amappl4 96 4316 0 4289 2 1 1 2 0 8 0 amappl3 88 299 0 294 1 0 1 1 0 8 0 amappl2 80 33234 0 33188 2 0 2 2 0 8 0 amappl1 72 76065 0 75679 26 17 9 19 0 8 0 amappl 72 8657 0 8629 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 147 0 18 3 0 3 3 0 8 0 uaddrrnd 24 3740 0 3728 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3740 0 3728 1 0 1 1 0 8 0 vmmpekpl 168 28080 0 28062 2 0 2 2 0 8 0 vmmpepl 168 405322 0 403976 198 123 75 92 0 357 8 vmsppl 264 3739 0 3728 3 2 1 2 0 8 0 pdppl 4096 7486 0 7456 5 0 5 5 0 8 0 pvpl 32 1368863 0 1357705 402 269 133 242 0 265 30 pmappl 192 3739 0 3728 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 1024 0 423 20 2 18 18 0 8 0