login: 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 *211072 42404 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(ffff8000ffff2270,ffff8000149b8178) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149b8178) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff2270,20000100,ffffff9c,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff8000149b8430) at syscall+0x541 Xsyscall(6,0,fffffffffffffffd,0,2,f7f6d00c010) at Xsyscall+0x128 end of kernel end trace frame: 0xf822100ab80, 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> 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(ffff8000ffff2270,ffff8000149b8178) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149b8178) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff2270,20000100,ffffff9c,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff8000149b8430) at syscall+0x541 Xsyscall(6,0,fffffffffffffffd,0,2,f7f6d00c010) at Xsyscall+0x128 end of kernel end trace frame: 0xf822100ab80, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x4745 __ALIGN_SIZE+0x3745 rbp 0xffff8000149b7f10 rbx 0xffff8000149b7fc0 rdx 0x4746 __ALIGN_SIZE+0x3746 rcx 0xffff80000093b000 rax 0xffff80000093b000 r8 0xffff8000149b7ed0 r9 0x1 r10 0xffff800001944f40 r11 0x9809ee07cc9af8dd r12 0x3000000008 r13 0xffff8000149b7f20 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149b7f00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=211072 stat=onproc flags process=0 proc=4000000 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3c38,0xffffffff82252c30 process=0xffff8000ffff6d30 user=0xffff8000149b3000, vmspace=0xfffffd803f014840 estcpu=24, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42404 275365 56717 0 2 0 syz-executor.1 *42404 211072 56717 0 7 0x4000000 syz-executor.1 77967 114687 1 0 3 0x100083 ttyin getty 56717 445187 8415 0 3 0x82 nanosleep syz-executor.1 78898 441129 8415 0 2 0x2 syz-executor.0 8415 178029 97928 0 3 0x82 thrsleep syz-fuzzer 8415 95289 97928 0 3 0x4000082 thrsleep syz-fuzzer 8415 364590 97928 0 3 0x4000082 thrsleep syz-fuzzer 8415 492674 97928 0 3 0x4000082 thrsleep syz-fuzzer 8415 327481 97928 0 3 0x4000082 kqread syz-fuzzer 8415 94880 97928 0 3 0x4000082 thrsleep syz-fuzzer 8415 231437 97928 0 3 0x4000082 thrsleep syz-fuzzer 97928 50132 93656 0 3 0x10008a pause ksh 93656 8142 58294 0 3 0x92 select sshd 58294 317535 1 0 3 0x80 select sshd 44561 257398 48264 73 3 0x100090 kqread syslogd 48264 404823 1 0 3 0x100082 netio syslogd 53897 225335 1 77 3 0x100090 poll dhclient 84835 214644 1 0 3 0x80 poll dhclient 12866 422748 0 0 2 0x14200 zerothread 48922 86749 0 0 3 0x14200 aiodoned aiodoned 33122 270372 0 0 3 0x14200 syncer update 43083 229488 0 0 3 0x14200 cleaner cleaner 16920 485122 0 0 3 0x14200 reaper reaper 8352 261887 0 0 3 0x14200 pgdaemon pagedaemon 56859 191094 0 0 3 0x14200 bored crynlk 58675 281326 0 0 3 0x14200 bored crypto 6725 221831 0 0 3 0x40014200 acpi0 acpi0 46910 110945 0 0 3 0x14200 bored softnet 9534 379573 0 0 3 0x14200 bored systqmp 76160 266908 0 0 3 0x14200 bored systq 12195 483672 0 0 3 0x40014200 bored softclock 39227 208142 0 0 3 0x40014200 idle0 44466 412035 0 0 3 0x14200 bored smr 1 373383 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 9453 6323K 6332K 78643K 10598 0 0 pcb 23 9K 9K 78643K 99 0 0 rtable 97 2K 3K 78643K 218 0 0 ifaddr 38 10K 10K 78643K 51 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 16 0 0 iov 0 0K 13K 78643K 18 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1301 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 4 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 10 1K 1K 78643K 14 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 143 0 0 proc 44 38K 46K 78643K 298 0 0 subproc 64 65538K 67586K 78643K 104 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 26 0 0 in_multi 33 2K 2K 78643K 50 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 179 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 74 20K 20K 78643K 1099 0 0 UVM aobj 10 2K 2K 78643K 13 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 2 0 0 NDP 6 0K 0K 78643K 15 0 0 temp 94 2346K 2412K 78643K 3290 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 5 0 1 1 0 1 1 0 8 0 inpcbpl 280 100 0 93 1 0 1 1 0 8 0 plimitpl 152 20 0 13 1 0 1 1 0 8 0 rtentry 112 50 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 4 0 4 1 1 0 1 0 8 0 tcpcb 544 48 0 44 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 226 0 41 12 0 12 12 0 8 0 art_table 32 227 0 41 2 0 2 2 0 8 0 art_node 16 49 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 11 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1649 0 235 46 0 46 46 0 8 0 ffsino 240 1649 0 235 84 0 84 84 0 8 0 nchpl 144 2054 0 428 61 0 61 61 0 8 0 uvmvnodes 72 1726 0 0 32 0 32 32 0 8 0 vnodes 200 1726 0 0 91 0 91 91 0 8 0 namei 1024 5278 0 5276 3 2 1 1 0 8 0 scxspl 192 5032 0 5032 8 7 1 6 0 8 1 sigapl 432 311 0 298 2 0 2 2 0 8 0 futexpl 56 2133 0 2133 2 1 1 1 0 8 1 knotepl 112 105 0 86 1 0 1 1 0 8 0 kqueuepl 104 32 0 30 1 0 1 1 0 8 0 pipepl 112 230 0 211 2 1 1 1 0 8 0 fdescpl 424 312 0 298 2 0 2 2 0 8 0 filepl 120 1744 0 1649 4 0 4 4 0 8 0 lockfpl 104 52 0 52 3 2 1 1 0 8 1 lockfspl 32 65 0 65 3 2 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 270 0 263 1 0 1 1 0 8 0 zombiepl 144 298 0 298 2 1 1 1 0 8 1 processpl 840 326 0 298 4 0 4 4 0 8 0 procpl 600 502 0 467 4 0 4 4 0 8 0 sockpl 384 176 0 159 3 1 2 3 0 8 0 mcl64k 65536 370 0 370 47 23 24 47 0 8 24 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 1 0 1 1 1 0 1 0 8 0 mcl4k 4096 16 0 16 2 1 1 1 0 8 1 mcl2k 2048 47848 0 47803 15 8 7 12 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 79104 0 79015 31 24 7 28 0 8 0 bufpl 256 5739 0 1274 280 0 280 280 0 8 0 anonpl 16 44628 0 36157 58 8 50 50 0 62 14 amapchunkpl 152 1253 0 1173 5 0 5 5 0 158 0 amappl16 192 1412 0 963 42 11 31 35 0 8 8 amappl15 184 53 0 49 1 0 1 1 0 8 0 amappl14 176 84 0 80 2 1 1 1 0 8 0 amappl13 168 141 0 134 1 0 1 1 0 8 0 amappl12 160 8 0 7 1 0 1 1 0 8 0 amappl11 152 19 0 8 1 0 1 1 0 8 0 amappl10 144 59 0 59 2 2 0 1 0 8 0 amappl9 136 516 0 513 1 0 1 1 0 8 0 amappl8 128 119 0 106 1 0 1 1 0 8 0 amappl7 120 35 0 30 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 172 0 161 1 0 1 1 0 8 0 amappl4 96 501 0 475 2 1 1 2 0 8 0 amappl3 88 180 0 174 1 0 1 1 0 8 0 amappl2 80 1768 0 1716 2 0 2 2 0 8 0 amappl1 72 14686 0 14276 26 17 9 19 0 8 0 amappl 72 721 0 689 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 12 0 3 1 0 1 1 0 8 0 uaddrrnd 24 312 0 298 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 312 0 298 1 0 1 1 0 8 0 vmmpekpl 168 6482 0 6466 1 0 1 1 0 8 0 vmmpepl 168 40031 0 38672 92 21 71 73 0 357 11 vmsppl 264 311 0 298 2 1 1 2 0 8 0 pdppl 4096 630 0 596 5 0 5 5 0 8 0 pvpl 32 142337 0 130815 148 14 134 134 0 265 40 pmappl 192 311 0 298 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 488 0 62 14 0 14 14 0 8 0