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 *324010 16185 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(ffff8000ffff2978,ffff800014a06628) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a06628) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff2978,200000c0,3,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800014a068e0) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,ff6d9f7a010) at Xsyscall+0x128 end of kernel end trace frame: 0xff8e21720c0, 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(ffff8000ffff2978,ffff800014a06628) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a06628) at namei+0x88a sys/kern/vfs_lookup.c:232 dosymlinkat(ffff8000ffff2978,200000c0,3,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800014a068e0) at syscall+0x541 Xsyscall(6,0,fffffffffffffffe,0,3,ff6d9f7a010) at Xsyscall+0x128 end of kernel end trace frame: 0xff8e21720c0, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x42ed __ALIGN_SIZE+0x32ed rbp 0xffff800014a063c0 rbx 0xffff800014a06470 rdx 0x42ee __ALIGN_SIZE+0x32ee rcx 0xffff800001b78000 rax 0xffff800001b78000 r8 0xffff800014a06380 r9 0x1 r10 0xffff80000193b3c0 r11 0xd266e2337281deff r12 0x3000000008 r13 0xffff800014a063d0 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a063b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=324010 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3c38,0xffffffff82252c30 process=0xffff800014962d38 user=0xffff800014a01000, vmspace=0xfffffd803f014108 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16185 381027 28075 0 2 0 syz-executor.1 *16185 324010 28075 0 7 0x4000000 syz-executor.1 28075 10532 60999 0 2 0x482 syz-executor.1 4464 38547 1 0 3 0x100083 ttyin getty 22370 98193 60999 0 2 0x2 syz-executor.0 684 397054 0 0 3 0x14200 bored sosplice 60999 340370 22983 0 3 0x82 thrsleep syz-fuzzer 60999 7841 22983 0 2 0x4000482 syz-fuzzer 60999 331564 22983 0 3 0x4000082 thrsleep syz-fuzzer 60999 377800 22983 0 3 0x4000082 kqread syz-fuzzer 60999 132156 22983 0 3 0x4000082 thrsleep syz-fuzzer 60999 364708 22983 0 3 0x4000082 thrsleep syz-fuzzer 60999 467218 22983 0 3 0x4000082 thrsleep syz-fuzzer 60999 428573 22983 0 3 0x4000082 thrsleep syz-fuzzer 22983 290296 33101 0 3 0x10008a pause ksh 33101 41529 16822 0 3 0x92 select sshd 16822 287465 1 0 3 0x80 select sshd 98597 20041 40398 73 3 0x100090 kqread syslogd 40398 498665 1 0 3 0x100082 netio syslogd 56339 450396 1 77 3 0x100090 poll dhclient 3457 245268 1 0 3 0x80 poll dhclient 51539 463687 0 0 2 0x14200 zerothread 37693 419695 0 0 3 0x14200 aiodoned aiodoned 39800 108216 0 0 3 0x14200 syncer update 51353 505271 0 0 3 0x14200 cleaner cleaner 62694 255282 0 0 3 0x14200 reaper reaper 70067 60706 0 0 3 0x14200 pgdaemon pagedaemon 54659 357342 0 0 3 0x14200 bored crynlk 83527 403463 0 0 3 0x14200 bored crypto 18919 400638 0 0 3 0x40014200 acpi0 acpi0 12924 163319 0 0 3 0x14200 bored softnet 89416 168579 0 0 3 0x14200 bored systqmp 52961 224268 0 0 3 0x14200 bored systq 74253 304036 0 0 3 0x40014200 bored softclock 79964 489440 0 0 3 0x40014200 idle0 79133 19595 0 0 3 0x14200 bored smr 1 44104 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 9494 6339K 6355K 78643K 10876 0 0 pcb 23 9K 10K 78643K 487 0 0 rtable 100 3K 4K 78643K 770 0 0 ifaddr 55 13K 13K 78643K 211 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 40 0 0 iov 0 0K 28K 78643K 113 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 76K 78643K 1878 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 13 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 106 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 818 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 45 38K 46K 78643K 652 0 0 subproc 64 65538K 67586K 78643K 582 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 94 0 0 in_multi 33 2K 2K 78643K 258 0 0 ether_multi 1 0K 0K 78643K 12 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 309 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 82 20K 22K 78643K 2774 0 0 UVM aobj 39 2K 2K 78643K 41 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 47 0 0 NDP 11 0K 0K 78643K 77 0 0 temp 157 2357K 2423K 78643K 5990 0 0 kqueue 0 0K 0K 78643K 8 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 19 0 15 1 0 1 1 0 8 0 inpcbpl 280 442 0 435 1 0 1 1 0 8 0 plimitpl 152 49 0 42 1 0 1 1 0 8 0 rtentry 112 178 0 138 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 154 0 150 1 0 1 1 0 8 0 nd6 48 34 0 30 1 0 1 1 0 8 0 ppxss 1128 13 0 13 5 4 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 845 0 657 12 0 12 12 0 8 0 art_table 32 846 0 657 2 0 2 2 0 8 0 art_node 16 175 0 141 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 7 1 0 1 1 0 8 0 semapl 112 104 0 94 1 0 1 1 0 8 0 shmpl 112 39 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2778 0 1350 47 0 47 47 0 8 0 ffsino 240 2778 0 1350 85 0 85 85 0 8 0 nchpl 144 4144 0 2523 61 0 61 61 0 8 0 uvmvnodes 72 3149 0 0 58 0 58 58 0 8 0 vnodes 200 3149 0 0 166 0 166 166 0 8 0 namei 1024 12620 0 12617 3 2 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 17392 0 17392 13 10 3 5 0 8 3 sigapl 432 944 0 931 2 0 2 2 0 8 0 futexpl 56 12810 0 12810 1 0 1 1 0 8 1 knotepl 112 517 0 498 1 0 1 1 0 8 0 kqueuepl 104 192 0 190 1 0 1 1 0 8 0 pipepl 112 634 0 615 2 1 1 1 0 8 0 fdescpl 424 945 0 931 2 0 2 2 0 8 0 filepl 120 6078 0 5983 5 1 4 4 0 8 0 lockfpl 104 216 0 216 3 2 1 1 0 8 1 lockfspl 32 210 0 210 3 2 1 1 0 8 1 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 45 0 35 1 0 1 1 0 8 0 ucredpl 96 1549 0 1542 1 0 1 1 0 8 0 zombiepl 144 931 0 931 3 2 1 1 0 8 1 processpl 840 960 0 931 4 0 4 4 0 8 0 procpl 600 1905 0 1868 4 0 4 4 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 384 850 0 833 5 2 3 3 0 8 1 mcl64k 65536 252 0 252 33 32 1 29 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 18 0 18 3 3 0 1 0 8 0 mcl9k 9216 12 0 12 5 5 0 1 0 8 0 mcl8k 8192 22 0 22 3 2 1 1 0 8 1 mcl4k 4096 51 0 51 5 4 1 1 0 8 1 mcl2k2 2112 4 0 4 4 4 0 1 0 8 0 mcl2k 2048 48728 0 48682 19 12 7 13 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 85125 0 85045 26 18 8 21 0 8 1 bufpl 256 9007 0 3329 355 0 355 355 0 8 0 anonpl 16 119482 0 111411 74 26 48 55 0 62 10 amapchunkpl 152 4558 0 4478 26 12 14 14 0 158 10 amappl16 192 5139 0 4651 66 36 30 37 0 8 5 amappl15 184 275 0 269 1 0 1 1 0 8 0 amappl14 176 60 0 59 2 1 1 1 0 8 0 amappl13 168 30 0 26 1 0 1 1 0 8 0 amappl12 160 61 0 58 1 0 1 1 0 8 0 amappl11 152 135 0 121 1 0 1 1 0 8 0 amappl10 144 132 0 131 4 3 1 1 0 8 0 amappl9 136 954 0 950 1 0 1 1 0 8 0 amappl8 128 533 0 518 1 0 1 1 0 8 0 amappl7 120 135 0 128 1 0 1 1 0 8 0 amappl6 112 158 0 149 1 0 1 1 0 8 0 amappl5 104 226 0 215 1 0 1 1 0 8 0 amappl4 96 1098 0 1074 2 1 1 2 0 8 0 amappl3 88 150 0 145 1 0 1 1 0 8 0 amappl2 80 6990 0 6938 2 0 2 2 0 8 0 amappl1 72 26898 0 26484 26 17 9 19 0 8 0 amappl 72 2216 0 2184 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 40 0 2 1 0 1 1 0 8 0 uaddrrnd 24 945 0 931 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 945 0 931 1 0 1 1 0 8 0 vmmpekpl 168 10244 0 10225 2 0 2 2 0 8 0 vmmpepl 168 113906 0 112495 118 39 79 79 0 357 13 vmsppl 264 944 0 931 3 2 1 2 0 8 0 pdppl 4096 1896 0 1862 5 0 5 5 0 8 0 pvpl 32 452641 0 441387 262 65 197 243 0 265 97 pmappl 192 944 0 931 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 554 0 72 15 0 15 15 0 8 0