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 *509503 33542 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(ffff8000ffff3788,ffff8000149fa668) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149fa668) at namei+0x88a sys/kern/vfs_lookup.c:232 unp_bind(ffff800001949b00,fffffd80307c1900,ffff8000ffff3788) at unp_bind+0x1f8 sys/kern/uipc_usrreq.c:452 uipc_usrreq(fffffd8037017000,2,0,fffffd80307c1900,0,ffff8000ffff3788) at uipc_usrreq+0x182 sys/kern/uipc_usrreq.c:131 sys_bind(ffff8000ffff3788,ffff8000149fa9a8,ffff8000149fa990) at sys_bind+0x1ae sys/kern/uipc_syscalls.c:187 syscall(ffff8000149faa40) at syscall+0x541 Xsyscall(6,0,fffffffffffffefd,0,3,ed2b9612010) at Xsyscall+0x128 end of kernel end trace frame: 0xed4c31df400, count: 5 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(ffff8000ffff3788,ffff8000149fa668) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149fa668) at namei+0x88a sys/kern/vfs_lookup.c:232 unp_bind(ffff800001949b00,fffffd80307c1900,ffff8000ffff3788) at unp_bind+0x1f8 sys/kern/uipc_usrreq.c:452 uipc_usrreq(fffffd8037017000,2,0,fffffd80307c1900,0,ffff8000ffff3788) at uipc_usrreq+0x182 sys/kern/uipc_usrreq.c:131 sys_bind(ffff8000ffff3788,ffff8000149fa9a8,ffff8000149fa990) at sys_bind+0x1ae sys/kern/uipc_syscalls.c:187 syscall(ffff8000149faa40) at syscall+0x541 Xsyscall(6,0,fffffffffffffefd,0,3,ed2b9612010) at Xsyscall+0x128 end of kernel end trace frame: 0xed4c31df400, count: -10 ddb> show registers rdi 0xffffffff81c4ed97 db_enter+0x17 rsi 0x41ba __ALIGN_SIZE+0x31ba rbp 0xffff8000149fa400 rbx 0xffff8000149fa4b0 rdx 0x41bb __ALIGN_SIZE+0x31bb rcx 0xffff800001b3c000 rax 0xffff800001b3c000 r8 0xffff8000149fa3c0 r9 0x1 r10 0xffff800001999c40 r11 0xa93df40de8b967fb r12 0x3000000008 r13 0xffff8000149fa410 r14 0x100 r15 0x1 rip 0xffffffff81c4ed98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149fa3f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=509503 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2270,0xffff8000ffff24d8 process=0xffff8000149526a8 user=0xffff8000149f5000, vmspace=0xfffffd803f013b58 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56542 466807 6490 0 2 0 syz-executor.0 56542 295035 6490 0 2 0x4000000 syz-executor.0 33542 511603 72988 0 2 0 syz-executor.1 *33542 509503 72988 0 7 0x4000000 syz-executor.1 6490 71167 16187 0 2 0x482 syz-executor.0 72988 337209 16187 0 2 0x482 syz-executor.1 94281 43169 1 0 3 0x100083 ttyin getty 95684 310505 0 0 3 0x14200 bored sosplice 16187 515991 63542 0 3 0x82 thrsleep syz-fuzzer 16187 223309 63542 0 3 0x4000082 thrsleep syz-fuzzer 16187 447890 63542 0 3 0x4000082 thrsleep syz-fuzzer 16187 275502 63542 0 3 0x4000082 thrsleep syz-fuzzer 16187 229903 63542 0 3 0x4000082 thrsleep syz-fuzzer 16187 81972 63542 0 3 0x4000082 kqread syz-fuzzer 16187 329292 63542 0 3 0x4000082 thrsleep syz-fuzzer 16187 38138 63542 0 3 0x4000082 thrsleep syz-fuzzer 63542 212591 44927 0 3 0x10008a pause ksh 44927 381848 52445 0 3 0x92 select sshd 52445 261511 1 0 3 0x80 select sshd 16815 187323 23855 73 3 0x100090 kqread syslogd 23855 273684 1 0 3 0x100082 netio syslogd 54160 11542 1 77 3 0x100090 poll dhclient 45665 246818 1 0 3 0x80 poll dhclient 36651 212146 0 0 2 0x14200 zerothread 88762 229766 0 0 3 0x14200 aiodoned aiodoned 93730 155626 0 0 3 0x14200 syncer update 33002 167152 0 0 3 0x14200 cleaner cleaner 57191 165427 0 0 3 0x14200 reaper reaper 55388 462901 0 0 3 0x14200 pgdaemon pagedaemon 59668 446394 0 0 3 0x14200 bored crynlk 39787 116080 0 0 3 0x14200 bored crypto 12830 274276 0 0 3 0x40014200 acpi0 acpi0 62541 462005 0 0 3 0x14200 bored softnet 5600 432138 0 0 3 0x14200 bored systqmp 46786 124054 0 0 3 0x14200 bored systq 27611 430291 0 0 3 0x40014200 bored softclock 60952 115289 0 0 3 0x40014200 idle0 83137 480934 0 0 3 0x14200 bored smr 1 361639 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 9540 6360K 6368K 78643K 11571 0 0 pcb 25 9K 11K 78643K 1493 0 0 rtable 100 3K 4K 78643K 1393 0 0 ifaddr 71 16K 16K 78643K 454 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 79 0 0 iov 0 0K 32K 78643K 379 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 75K 76K 78643K 2552 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 35 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 346 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 21K 78643K 2547 0 0 sigio 0 0K 0K 78643K 66 0 0 proc 45 38K 46K 78643K 1056 0 0 subproc 64 65538K 67586K 78643K 873 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 309 0 0 in_multi 33 2K 2K 78643K 388 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 509 0 0 pfkey data 0 0K 0K 78643K 6 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 6774 0 0 UVM aobj 128 6K 6K 78643K 150 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 122 0 0 NDP 18 0K 0K 78643K 154 0 0 temp 198 2360K 2428K 78643K 11183 0 0 kqueue 0 0K 0K 78643K 23 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 27 0 23 1 0 1 1 0 8 0 inpcbpl 280 1283 0 1276 2 1 1 2 0 8 0 plimitpl 152 110 0 103 1 0 1 1 0 8 0 rtentry 112 250 0 210 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 544 454 0 450 1 0 1 1 0 8 0 nd6 48 50 0 46 1 0 1 1 0 8 0 ppxss 1128 47 0 47 6 6 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1180 0 992 12 0 12 12 0 8 0 art_table 32 1181 0 992 2 0 2 2 0 8 0 art_node 16 247 0 213 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 7 1 0 1 1 0 8 0 semapl 112 342 0 332 1 0 1 1 0 8 0 shmpl 112 148 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5570 0 4048 50 0 50 50 0 8 0 ffsino 240 5570 0 4048 90 0 90 90 0 8 0 nchpl 144 9375 0 7661 64 0 64 64 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 30517 0 30515 1 0 1 1 0 8 0 scsiplug 64 11 0 11 7 7 0 1 0 8 0 scxspl 192 30003 0 30003 18 17 1 6 0 8 1 sigapl 432 2651 0 2637 2 0 2 2 0 8 0 futexpl 56 42162 0 42162 1 0 1 1 0 8 1 knotepl 112 1063 0 1044 1 0 1 1 0 8 0 kqueuepl 104 803 0 801 1 0 1 1 0 8 0 pipepl 112 1688 0 1669 5 3 2 2 0 8 1 fdescpl 424 2652 0 2637 2 0 2 2 0 8 0 filepl 120 18162 0 18065 6 2 4 5 0 8 1 lockfpl 104 671 0 671 3 2 1 1 0 8 1 lockfspl 32 244 0 244 3 2 1 1 0 8 1 sessionpl 112 43 0 33 1 0 1 1 0 8 0 pgrppl 48 87 0 77 1 0 1 1 0 8 0 ucredpl 96 3692 0 3685 1 0 1 1 0 8 0 zombiepl 144 2637 0 2637 2 1 1 1 0 8 1 processpl 840 2667 0 2637 4 0 4 4 0 8 0 procpl 600 5654 0 5615 4 0 4 4 0 8 0 sosppl 128 30 0 30 10 10 0 1 0 8 0 sockpl 384 2589 0 2570 6 2 4 4 0 8 2 mcl64k 65536 1410 0 1410 143 110 33 47 0 8 33 mcl16k 16384 8 0 8 7 7 0 1 0 8 0 mcl12k 12288 52 0 52 5 5 0 1 0 8 0 mcl9k 9216 50 0 50 9 8 1 1 0 8 1 mcl8k 8192 29 0 29 10 9 1 1 0 8 1 mcl4k 4096 139 0 139 7 6 1 1 0 8 1 mcl2k2 2112 25 0 25 11 11 0 1 0 8 0 mcl2k 2048 51329 0 51293 17 12 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 105035 0 104946 108 93 15 45 0 8 8 bufpl 256 11772 0 7115 292 0 292 292 0 8 0 anonpl 16 274981 0 267631 124 76 48 54 0 62 11 amapchunkpl 152 11046 0 10963 18 12 6 9 0 158 2 amappl16 192 13919 0 13430 128 95 33 42 0 8 7 amappl15 184 435 0 431 1 0 1 1 0 8 0 amappl14 176 1057 0 1053 2 1 1 1 0 8 0 amappl13 168 504 0 501 1 0 1 1 0 8 0 amappl12 160 913 0 910 1 0 1 1 0 8 0 amappl11 152 490 0 479 1 0 1 1 0 8 0 amappl10 144 147 0 146 3 2 1 1 0 8 0 amappl9 136 744 0 741 1 0 1 1 0 8 0 amappl8 128 398 0 380 1 0 1 1 0 8 0 amappl7 120 158 0 152 1 0 1 1 0 8 0 amappl6 112 437 0 424 1 0 1 1 0 8 0 amappl5 104 365 0 355 1 0 1 1 0 8 0 amappl4 96 2425 0 2400 2 1 1 2 0 8 0 amappl3 88 2101 0 2093 1 0 1 1 0 8 0 amappl2 80 22147 0 22086 2 0 2 2 0 8 0 amappl1 72 56257 0 55832 25 16 9 19 0 8 0 amappl 72 6022 0 5988 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 149 0 22 3 0 3 3 0 8 0 uaddrrnd 24 2652 0 2637 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2652 0 2637 1 0 1 1 0 8 0 vmmpekpl 168 20499 0 20483 4 2 2 2 0 8 0 vmmpepl 168 280230 0 278727 141 62 79 81 0 357 13 vmsppl 264 2651 0 2637 2 1 1 2 0 8 0 pdppl 4096 5310 0 5274 5 0 5 5 0 8 0 pvpl 32 732982 0 722484 249 123 126 141 0 265 27 pmappl 192 2651 0 2637 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 699 0 239 14 0 14 14 0 8 0