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 *399522 12029 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(ffffffff81f430c7,ffffffff81ef0713,36f,ffffffff81f51bce) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff8000ffff4bc8,ffff8000149ee888) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149ee888) at namei+0x88a sys/kern/vfs_lookup.c:232 domknodat(ffff8000ffff4bc8,ffffff9c,20000040,2003,1700) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff8000149eeb50) at syscall+0x541 Xsyscall(6,0,ffffffffffffff96,0,3,92b5b454010) at Xsyscall+0x128 end of kernel end trace frame: 0x92d8d9e2a40, 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(ffffffff81f430c7,ffffffff81ef0713,36f,ffffffff81f51bce) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff8000ffff4bc8,ffff8000149ee888) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149ee888) at namei+0x88a sys/kern/vfs_lookup.c:232 domknodat(ffff8000ffff4bc8,ffffff9c,20000040,2003,1700) at domknodat+0xa1 sys/kern/vfs_syscalls.c:1405 syscall(ffff8000149eeb50) at syscall+0x541 Xsyscall(6,0,ffffffffffffff96,0,3,92b5b454010) at Xsyscall+0x128 end of kernel end trace frame: 0x92d8d9e2a40, count: -8 ddb> show registers rdi 0xffffffff81c4ed97 db_enter+0x17 rsi 0x4356 __ALIGN_SIZE+0x3356 rbp 0xffff8000149ee620 rbx 0xffff8000149ee6d0 rdx 0x4357 __ALIGN_SIZE+0x3357 rcx 0xffff800003372000 rax 0xffff800003372000 r8 0xffff8000149ee5e0 r9 0x1 r10 0xffff80000453d980 r11 0x84ccc70b1c9d3f31 r12 0x3000000008 r13 0xffff8000149ee630 r14 0x100 r15 0x1 rip 0xffffffff81c4ed98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149ee610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=399522 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff52d0,0xffffffff8225e010 process=0xffff8000ffff7a50 user=0xffff8000149e9000, vmspace=0xfffffd803f013b58 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 12029 63866 92480 0 2 0 syz-executor.1 *12029 399522 92480 0 7 0x4000000 syz-executor.1 92480 148737 30135 0 2 0x482 syz-executor.1 54433 30728 30135 0 2 0x2 syz-executor.0 30135 266261 80226 0 3 0x82 kqread syz-fuzzer 30135 473648 80226 0 2 0x4000482 syz-fuzzer 30135 114285 80226 0 3 0x4000082 thrsleep syz-fuzzer 30135 18209 80226 0 3 0x4000082 thrsleep syz-fuzzer 30135 49711 80226 0 3 0x4000082 thrsleep syz-fuzzer 30135 2323 80226 0 3 0x4000082 thrsleep syz-fuzzer 30135 178063 80226 0 3 0x4000082 thrsleep syz-fuzzer 80226 208100 30475 0 3 0x10008a pause ksh 30475 420922 28933 0 3 0x92 select sshd 85666 337319 1 0 3 0x100083 ttyin getty 28933 468477 1 0 3 0x80 select sshd 83781 472580 41712 73 3 0x100090 kqread syslogd 41712 16995 1 0 3 0x100082 netio syslogd 92862 161319 1 77 3 0x100090 poll dhclient 98015 168119 1 0 3 0x80 poll dhclient 26732 219167 0 0 2 0x14200 zerothread 92063 345028 0 0 3 0x14200 aiodoned aiodoned 63190 338684 0 0 3 0x14200 syncer update 37537 345448 0 0 3 0x14200 cleaner cleaner 4143 174315 0 0 3 0x14200 reaper reaper 32237 511597 0 0 3 0x14200 pgdaemon pagedaemon 39189 523917 0 0 3 0x14200 bored crynlk 40101 425596 0 0 3 0x14200 bored crypto 18786 215366 0 0 3 0x40014200 acpi0 acpi0 64653 295644 0 0 3 0x14200 bored softnet 73283 13431 0 0 3 0x14200 bored systqmp 76435 94749 0 0 3 0x14200 bored systq 29378 271476 0 0 3 0x40014200 bored softclock 44134 93432 0 0 3 0x40014200 idle0 79097 148957 0 0 3 0x14200 bored smr 1 374096 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 9470 6322K 6328K 78643K 10641 0 0 pcb 23 9K 10K 78643K 119 0 0 rtable 100 3K 3K 78643K 321 0 0 ifaddr 46 11K 12K 78643K 96 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 26 0 0 iov 0 0K 16K 78643K 30 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 75K 78643K 1317 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 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 145 0 0 proc 44 38K 46K 78643K 320 0 0 subproc 64 65538K 67586K 78643K 170 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 8 0 0 in_multi 33 2K 2K 78643K 70 0 0 ether_multi 1 0K 0K 78643K 2 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 188 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 72 20K 20K 78643K 1105 0 0 UVM aobj 6 2K 2K 78643K 6 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 8 0 0 NDP 10 0K 0K 78643K 29 0 0 temp 123 2350K 2415K 78643K 3496 0 0 kqueue 0 0K 0K 78643K 2 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 7 0 3 1 0 1 1 0 8 0 inpcbpl 280 86 0 79 1 0 1 1 0 8 0 plimitpl 152 21 0 14 1 0 1 1 0 8 0 rtentry 112 68 0 28 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 28 0 24 1 0 1 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 ppxss 1128 8 0 8 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 312 0 123 12 0 12 12 0 8 0 art_table 32 313 0 123 2 0 2 2 0 8 0 art_node 16 67 0 33 1 0 1 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1638 0 222 46 0 46 46 0 8 0 ffsino 240 1638 0 222 84 0 84 84 0 8 0 nchpl 144 2028 0 393 61 0 61 61 0 8 0 uvmvnodes 72 1745 0 0 32 0 32 32 0 8 0 vnodes 200 1745 0 0 92 0 92 92 0 8 0 namei 1024 5170 0 5168 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 5333 0 5333 10 7 3 6 0 8 3 sigapl 432 306 0 293 2 0 2 2 0 8 0 futexpl 56 1903 0 1903 1 0 1 1 0 8 1 knotepl 112 152 0 133 1 0 1 1 0 8 0 kqueuepl 104 46 0 44 1 0 1 1 0 8 0 pipepl 112 234 0 215 2 1 1 1 0 8 0 fdescpl 424 307 0 293 2 0 2 2 0 8 0 filepl 120 1681 0 1584 4 0 4 4 0 8 1 lockfpl 104 41 0 41 2 1 1 1 0 8 1 lockfspl 32 17 0 17 2 1 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 168 0 161 1 0 1 1 0 8 0 zombiepl 144 293 0 293 2 1 1 1 0 8 1 processpl 840 321 0 293 4 0 4 4 0 8 0 procpl 600 474 0 439 4 0 4 4 0 8 1 sockpl 384 180 0 163 3 0 3 3 0 8 1 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k 2048 47577 0 47535 12 6 6 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 78751 0 78669 10 2 8 8 0 8 2 bufpl 256 5987 0 1384 288 0 288 288 0 8 0 anonpl 16 36869 0 29878 37 2 35 35 0 62 1 amapchunkpl 152 1274 0 1194 5 0 5 5 0 158 1 amappl16 192 1044 0 605 24 0 24 24 0 8 1 amappl15 184 48 0 44 1 0 1 1 0 8 0 amappl14 176 37 0 34 2 1 1 1 0 8 0 amappl13 168 31 0 27 1 0 1 1 0 8 0 amappl12 160 61 0 57 1 0 1 1 0 8 0 amappl11 152 20 0 9 1 0 1 1 0 8 0 amappl10 144 64 0 62 2 1 1 1 0 8 0 amappl9 136 570 0 566 1 0 1 1 0 8 0 amappl8 128 144 0 129 1 0 1 1 0 8 0 amappl7 120 33 0 28 1 0 1 1 0 8 0 amappl6 112 56 0 48 1 0 1 1 0 8 0 amappl5 104 181 0 171 1 0 1 1 0 8 0 amappl4 96 484 0 461 2 1 1 2 0 8 0 amappl3 88 128 0 120 1 0 1 1 0 8 0 amappl2 80 1593 0 1542 2 0 2 2 0 8 0 amappl1 72 14800 0 14391 26 17 9 19 0 8 0 amappl 72 700 0 668 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 307 0 293 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 307 0 293 1 0 1 1 0 8 0 vmmpekpl 168 6348 0 6332 1 0 1 1 0 8 0 vmmpepl 168 39732 0 38375 97 18 79 79 0 357 19 vmsppl 264 306 0 293 3 1 2 2 0 8 1 pdppl 4096 620 0 586 5 0 5 5 0 8 0 pvpl 32 137493 0 127450 107 8 99 101 0 265 6 pmappl 192 306 0 293 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 424 0 12 12 0 12 12 0 8 0