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 * 52030 40805 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(ffff8000ffff32d8,ffff800014a38028) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a38028) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff32d8,20000180,3,20000200) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800014a382e0) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,f09ef02a010) at Xsyscall+0x128 end of kernel end trace frame: 0xf0c0fe7e4a0, 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(ffff8000ffff32d8,ffff800014a38028) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a38028) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff32d8,20000180,3,20000200) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800014a382e0) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,f09ef02a010) at Xsyscall+0x128 end of kernel end trace frame: 0xf0c0fe7e4a0, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x44a5 __ALIGN_SIZE+0x34a5 rbp 0xffff800014a37dc0 rbx 0xffff800014a37e70 rdx 0x44a6 __ALIGN_SIZE+0x34a6 rcx 0xffff80000153c000 rax 0xffff80000153c000 r8 0xffff800014a37d80 r9 0x1 r10 0xffff800000927a80 r11 0x70903e9614f571b0 r12 0x3000000008 r13 0xffff800014a37dd0 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a37db0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=52030 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2bd0,0xffff8000ffff2028 process=0xffff8000ffff6358 user=0xffff800014a33000, vmspace=0xfffffd803f014420 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 40805 200367 45048 0 2 0 syz-executor.0 *40805 52030 45048 0 7 0x4000000 syz-executor.0 52077 495660 60595 0 2 0 syz-executor.1 52077 327448 60595 0 3 0x4000080 ttyout syz-executor.1 52077 313980 60595 0 3 0x4000080 ttyout syz-executor.1 52077 415415 60595 0 3 0x4000080 fsleep syz-executor.1 60595 46595 65424 0 3 0x82 nanosleep syz-executor.1 45048 106799 65424 0 3 0x82 nanosleep syz-executor.0 11516 371272 1 0 3 0x100083 ttyin getty 99859 26473 0 0 3 0x14200 bored sosplice 65424 99876 51983 0 3 0x82 thrsleep syz-fuzzer 65424 451230 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 366410 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 23275 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 360881 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 298815 51983 0 3 0x4000082 kqread syz-fuzzer 65424 195487 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 289559 51983 0 3 0x4000082 thrsleep syz-fuzzer 65424 101535 51983 0 3 0x4000082 thrsleep syz-fuzzer 51983 501474 20556 0 3 0x10008a pause ksh 20556 484647 88429 0 3 0x92 select sshd 88429 437331 1 0 3 0x80 select sshd 17706 221469 65281 73 3 0x100090 kqread syslogd 65281 319137 1 0 3 0x100082 netio syslogd 64701 416746 1 77 3 0x100090 poll dhclient 18403 389677 1 0 3 0x80 poll dhclient 22192 378077 0 0 2 0x14200 zerothread 30060 216042 0 0 3 0x14200 aiodoned aiodoned 98519 346253 0 0 3 0x14200 syncer update 71462 434734 0 0 3 0x14200 cleaner cleaner 48254 294067 0 0 3 0x14200 reaper reaper 76365 202594 0 0 3 0x14200 pgdaemon pagedaemon 22965 386591 0 0 3 0x14200 bored crynlk 80483 45427 0 0 3 0x14200 bored crypto 48639 350211 0 0 3 0x40014200 acpi0 acpi0 54255 285710 0 0 3 0x14200 bored softnet 96459 503442 0 0 3 0x14200 bored systqmp 26071 48827 0 0 3 0x14200 bored systq 49956 523650 0 0 3 0x40014200 bored softclock 81375 421109 0 0 3 0x40014200 idle0 53816 403014 0 0 3 0x14200 bored smr 1 450468 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 9520 6350K 6366K 78643K 11301 0 0 pcb 23 9K 11K 78643K 1078 0 0 rtable 103 4K 4K 78643K 980 0 0 ifaddr 62 15K 15K 78643K 340 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 46 0 0 iov 0 0K 28K 78643K 281 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1190 75K 76K 78643K 2458 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 28 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 252 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1838 0 0 sigio 0 0K 0K 78643K 42 0 0 proc 45 38K 46K 78643K 766 0 0 subproc 64 65538K 69634K 78643K 511 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 218 0 0 in_multi 33 2K 2K 78643K 257 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 412 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 89 21K 25K 78643K 5313 0 0 UVM aobj 102 5K 5K 78643K 112 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 127 0 0 NDP 13 0K 0K 78643K 108 0 0 temp 177 2359K 2428K 78643K 8699 0 0 kqueue 0 0K 0K 78643K 7 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 17 0 13 1 0 1 1 0 8 0 inpcbpl 280 1027 0 1020 1 0 1 1 0 8 0 plimitpl 152 88 0 81 1 0 1 1 0 8 0 rtentry 112 158 0 118 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 320 0 316 1 0 1 1 0 8 0 nd6 48 30 0 26 1 0 1 1 0 8 0 ppxss 1128 41 0 41 8 7 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 739 0 551 12 0 12 12 0 8 0 art_table 32 740 0 551 2 0 2 2 0 8 0 art_node 16 157 0 123 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 8 2 1 1 1 0 8 0 semapl 112 250 0 240 1 0 1 1 0 8 0 shmpl 112 110 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4845 0 3367 48 0 48 48 0 8 0 ffsino 240 4845 0 3367 88 0 88 88 0 8 0 nchpl 144 7625 0 5956 63 0 63 63 0 8 0 uvmvnodes 72 5266 0 0 96 0 96 96 0 8 0 vnodes 200 5266 0 0 278 0 278 278 0 8 0 namei 1024 24166 0 24164 2 1 1 1 0 8 0 scsiplug 64 6 0 6 6 5 1 1 0 8 1 scxspl 192 29239 0 29239 21 20 1 6 0 8 1 sigapl 432 1971 0 1957 2 0 2 2 0 8 0 futexpl 56 30814 0 30813 1 0 1 1 0 8 0 knotepl 112 770 0 751 1 0 1 1 0 8 0 kqueuepl 104 545 0 543 1 0 1 1 0 8 0 pipepl 112 1284 0 1265 4 3 1 2 0 8 0 fdescpl 424 1972 0 1957 2 0 2 2 0 8 0 filepl 120 13091 0 12993 6 2 4 5 0 8 0 lockfpl 104 785 0 785 3 2 1 1 0 8 1 lockfspl 32 1160 0 1160 3 2 1 1 0 8 1 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 48 0 38 1 0 1 1 0 8 0 ucredpl 96 3475 0 3468 1 0 1 1 0 8 0 zombiepl 144 1957 0 1957 2 1 1 1 0 8 1 processpl 840 1987 0 1957 4 0 4 4 0 8 0 procpl 600 4395 0 4353 4 0 4 4 0 8 0 sosppl 128 44 0 44 7 7 0 1 0 8 0 sockpl 384 1958 0 1941 5 2 3 4 0 8 1 mcl64k 65536 1028 0 1028 45 44 1 32 0 8 1 mcl16k 16384 11 0 11 8 8 0 1 0 8 0 mcl12k 12288 47 0 47 9 8 1 1 0 8 1 mcl9k 9216 25 0 25 10 10 0 1 0 8 0 mcl8k 8192 31 0 31 8 8 0 1 0 8 0 mcl4k 4096 115 0 115 4 3 1 1 0 8 1 mcl2k2 2112 19 0 19 8 7 1 1 0 8 1 mcl2k 2048 50138 0 50095 16 10 6 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 93289 0 93216 40 33 7 22 0 8 0 bufpl 256 12233 0 6461 361 0 361 361 0 8 0 anonpl 16 256664 0 247772 114 61 53 53 0 62 11 amapchunkpl 152 9296 0 9209 31 26 5 13 0 158 1 amappl16 192 12884 0 12402 138 101 37 37 0 8 12 amappl15 184 776 0 770 1 0 1 1 0 8 0 amappl14 176 57 0 55 2 1 1 1 0 8 0 amappl13 168 320 0 317 1 0 1 1 0 8 0 amappl12 160 121 0 118 1 0 1 1 0 8 0 amappl11 152 696 0 680 1 0 1 1 0 8 0 amappl10 144 129 0 127 2 1 1 1 0 8 0 amappl9 136 689 0 685 1 0 1 1 0 8 0 amappl8 128 276 0 254 1 0 1 1 0 8 0 amappl7 120 124 0 119 1 0 1 1 0 8 0 amappl6 112 717 0 705 1 0 1 1 0 8 0 amappl5 104 287 0 277 1 0 1 1 0 8 0 amappl4 96 2456 0 2428 2 1 1 2 0 8 0 amappl3 88 208 0 202 1 0 1 1 0 8 0 amappl2 80 16673 0 16612 2 0 2 2 0 8 0 amappl1 72 44554 0 44117 25 15 10 19 0 8 0 amappl 72 4705 0 4669 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 111 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1972 0 1957 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1972 0 1957 1 0 1 1 0 8 0 vmmpekpl 168 17180 0 17160 2 0 2 2 0 8 0 vmmpepl 168 220052 0 218526 182 105 77 95 0 357 9 vmsppl 264 1971 0 1957 4 3 1 2 0 8 0 pdppl 4096 3950 0 3914 6 1 5 6 0 8 0 pvpl 32 847594 0 835433 290 152 138 227 0 265 37 pmappl 192 1971 0 1957 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 597 0 110 16 1 15 16 0 8 0