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 *319655 51919 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(ffff8000ffff8008,ffff8000149dec78) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149dec78) at namei+0x88a sys/kern/vfs_lookup.c:232 domkdirat(ffff8000ffff8008,ffffff9c,20000000,c0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff8000149def30) at syscall+0x541 Xsyscall(6,0,ffffffffffffff94,0,2,3a200634010) at Xsyscall+0x128 end of kernel end trace frame: 0x3a4d21a02e0, 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(ffff8000ffff8008,ffff8000149dec78) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149dec78) at namei+0x88a sys/kern/vfs_lookup.c:232 domkdirat(ffff8000ffff8008,ffffff9c,20000000,c0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff8000149def30) at syscall+0x541 Xsyscall(6,0,ffffffffffffff94,0,2,3a200634010) at Xsyscall+0x128 end of kernel end trace frame: 0x3a4d21a02e0, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x417c __ALIGN_SIZE+0x317c rbp 0xffff8000149dea20 rbx 0xffff8000149dead0 rdx 0x417d __ALIGN_SIZE+0x317d rcx 0xffff800002b3d000 rax 0xffff800002b3d000 r8 0xffff8000149de9e0 r9 0x1 r10 0xffff800001b3bd80 r11 0x8e098bdf49a77a27 r12 0x3000000008 r13 0xffff8000149dea30 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149dea10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=319655 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff84b8,0xffffffff82252c30 process=0xffff8000ffff69e8 user=0xffff8000149d9000, vmspace=0xfffffd803f014738 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51919 32961 57154 0 2 0 syz-executor.1 *51919 319655 57154 0 7 0x4000000 syz-executor.1 57154 94135 86045 0 3 0x82 nanosleep syz-executor.1 85324 293300 0 0 3 0x14200 bored sosplice 14638 251613 86045 0 2 0x2 syz-executor.0 86045 492481 68200 0 3 0x82 thrsleep syz-fuzzer 86045 164014 68200 0 2 0x4000482 syz-fuzzer 86045 401370 68200 0 3 0x4000082 thrsleep syz-fuzzer 86045 503922 68200 0 3 0x4000082 thrsleep syz-fuzzer 86045 369313 68200 0 3 0x4000082 kqread syz-fuzzer 86045 83616 68200 0 3 0x4000082 thrsleep syz-fuzzer 86045 372036 68200 0 3 0x4000082 thrsleep syz-fuzzer 68200 95975 14689 0 3 0x10008a pause ksh 14689 88120 63230 0 3 0x92 select sshd 46687 77757 1 0 3 0x100083 ttyin getty 63230 231811 1 0 3 0x80 select sshd 73976 508206 1904 73 3 0x100090 kqread syslogd 1904 141821 1 0 3 0x100082 netio syslogd 24500 354645 1 77 3 0x100090 poll dhclient 3577 287382 1 0 3 0x80 poll dhclient 44338 160001 0 0 2 0x14200 zerothread 50007 165460 0 0 3 0x14200 aiodoned aiodoned 50210 270197 0 0 3 0x14200 syncer update 66559 271190 0 0 3 0x14200 cleaner cleaner 55646 346013 0 0 3 0x14200 reaper reaper 17590 168864 0 0 3 0x14200 pgdaemon pagedaemon 14038 435260 0 0 3 0x14200 bored crynlk 97386 516906 0 0 3 0x14200 bored crypto 66906 168402 0 0 3 0x40014200 acpi0 acpi0 38548 465707 0 0 3 0x14200 bored softnet 98004 52656 0 0 3 0x14200 bored systqmp 2423 370726 0 0 3 0x14200 bored systq 4870 433888 0 0 3 0x40014200 bored softclock 7215 250187 0 0 3 0x40014200 idle0 77804 308425 0 0 3 0x14200 bored smr 1 176673 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 9486 6342K 6347K 78643K 10697 0 0 pcb 23 9K 10K 78643K 550 0 0 rtable 100 3K 4K 78643K 310 0 0 ifaddr 52 12K 12K 78643K 96 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 23 0 0 iov 0 0K 28K 78643K 381 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1378 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 8 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 52 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 865 0 0 sigio 1 0K 0K 78643K 5 0 0 proc 46 38K 46K 78643K 347 0 0 subproc 64 65538K 67586K 78643K 136 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 29 0 0 in_multi 33 2K 2K 78643K 69 0 0 ether_multi 1 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 203 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 24K 78643K 3205 0 0 UVM aobj 33 4K 4K 78643K 34 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 10 0 0 NDP 10 0K 0K 78643K 28 0 0 temp 155 2355K 2421K 78643K 4956 0 0 kqueue 0 0K 0K 78643K 3 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 6 0 2 1 0 1 1 0 8 0 inpcbpl 280 489 0 482 1 0 1 1 0 8 0 plimitpl 152 25 0 18 1 0 1 1 0 8 0 rtentry 112 65 0 25 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 46 0 42 1 0 1 1 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 ppxss 1128 6 0 6 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 267 0 81 12 0 12 12 0 8 0 art_table 32 268 0 81 2 0 2 2 0 8 0 art_node 16 58 0 24 1 0 1 1 0 8 0 semapl 112 50 0 40 1 0 1 1 0 8 0 shmpl 112 32 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2739 0 1323 46 0 46 46 0 8 0 ffsino 240 2739 0 1323 84 0 84 84 0 8 0 nchpl 144 4210 0 2579 61 0 61 61 0 8 0 uvmvnodes 72 2852 0 0 52 0 52 52 0 8 0 vnodes 200 2852 0 0 151 0 151 151 0 8 0 namei 1024 10970 0 10968 2 1 1 1 0 8 0 scxspl 192 35164 0 35164 12 10 2 5 0 8 2 sigapl 432 1029 0 1016 2 0 2 2 0 8 0 futexpl 56 14154 0 14154 1 0 1 1 0 8 1 knotepl 112 168 0 149 1 0 1 1 0 8 0 kqueuepl 104 106 0 104 1 0 1 1 0 8 0 pipepl 112 398 0 379 3 2 1 2 0 8 0 fdescpl 424 1030 0 1016 2 0 2 2 0 8 0 filepl 120 5046 0 4952 5 1 4 5 0 8 1 lockfpl 104 610 0 610 2 1 1 1 0 8 1 lockfspl 32 326 0 326 2 1 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 529 0 522 1 0 1 1 0 8 0 zombiepl 144 1016 0 1016 2 1 1 1 0 8 1 processpl 840 1045 0 1016 4 0 4 4 0 8 0 procpl 600 2361 0 2325 4 0 4 4 0 8 1 sosppl 128 13 0 13 4 3 1 1 0 8 1 sockpl 384 677 0 660 5 2 3 3 0 8 1 mcl64k 65536 21 0 21 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 51 0 51 4 3 1 1 0 8 1 mcl9k 9216 265 0 265 2 1 1 1 0 8 1 mcl8k 8192 14 0 14 3 2 1 1 0 8 1 mcl4k 4096 26 0 26 6 5 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 48471 0 48435 13 7 6 9 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 85597 0 85538 14 8 6 9 0 8 0 bufpl 256 19952 0 15407 285 0 285 285 0 8 0 anonpl 16 148403 0 139809 51 14 37 45 0 62 1 amapchunkpl 152 4497 0 4416 8 4 4 6 0 158 0 amappl16 192 7748 0 7291 39 14 25 33 0 8 1 amappl15 184 106 0 102 1 0 1 1 0 8 0 amappl14 176 312 0 310 2 1 1 1 0 8 0 amappl13 168 33 0 29 1 0 1 1 0 8 0 amappl12 160 783 0 779 1 0 1 1 0 8 0 amappl11 152 21 0 10 1 0 1 1 0 8 0 amappl10 144 64 0 62 1 0 1 1 0 8 0 amappl9 136 469 0 466 1 0 1 1 0 8 0 amappl8 128 125 0 113 1 0 1 1 0 8 0 amappl7 120 33 0 29 1 0 1 1 0 8 0 amappl6 112 56 0 48 1 0 1 1 0 8 0 amappl5 104 1064 0 1052 1 0 1 1 0 8 0 amappl4 96 921 0 897 2 1 1 2 0 8 0 amappl3 88 725 0 720 1 0 1 1 0 8 0 amappl2 80 8198 0 8147 2 0 2 2 0 8 0 amappl1 72 27730 0 27314 25 15 10 19 0 8 0 amappl 72 2588 0 2556 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 33 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1030 0 1016 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1030 0 1016 1 0 1 1 0 8 0 vmmpekpl 168 10586 0 10568 1 0 1 1 0 8 0 vmmpepl 168 116973 0 115594 104 37 67 87 0 357 3 vmsppl 264 1029 0 1016 2 1 1 2 0 8 0 pdppl 4096 2066 0 2032 5 0 5 5 0 8 0 pvpl 32 422478 0 410773 138 31 107 119 0 265 11 pmappl 192 1029 0 1016 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 435 0 27 12 0 12 12 0 8 0