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 *211553 60648 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(ffff800014a0fc38,ffff800014a1d3b8) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a1d3b8) at namei+0x88a sys/kern/vfs_lookup.c:232 doreadlinkat(ffff800014a0fc38,ffffff9c,20000040,0,0,ffff800014a1d570) at doreadlinkat+0x92 sys/kern/vfs_syscalls.c:2001 syscall(ffff800014a1d620) at syscall+0x541 Xsyscall(6,0,ffffffffffffffba,0,3,92c390a7010) at Xsyscall+0x128 end of kernel end trace frame: 0x92f082b5210, 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(ffff800014a0fc38,ffff800014a1d3b8) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff800014a1d3b8) at namei+0x88a sys/kern/vfs_lookup.c:232 doreadlinkat(ffff800014a0fc38,ffffff9c,20000040,0,0,ffff800014a1d570) at doreadlinkat+0x92 sys/kern/vfs_syscalls.c:2001 syscall(ffff800014a1d620) at syscall+0x541 Xsyscall(6,0,ffffffffffffffba,0,3,92c390a7010) at Xsyscall+0x128 end of kernel end trace frame: 0x92f082b5210, count: -8 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x4682 __ALIGN_SIZE+0x3682 rbp 0xffff800014a1d150 rbx 0xffff800014a1d200 rdx 0x4683 __ALIGN_SIZE+0x3683 rcx 0xffff800003984000 rax 0xffff800003984000 r8 0xffff800014a1d110 r9 0x1 r10 0xffff80000173b8c0 r11 0x7d76ba23b2f12d75 r12 0x3000000008 r13 0xffff800014a1d160 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a1d140 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=211553 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014a0f2d8,0xffff800014a0f540 process=0xffff8000ffff66a0 user=0xffff800014a18000, vmspace=0xfffffd803f014b58 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89715 511398 47478 0 2 0 syz-executor.0 89715 66218 47478 0 3 0x4000080 fsleep syz-executor.0 60648 402031 62164 0 2 0 syz-executor.1 *60648 211553 62164 0 7 0x4000000 syz-executor.1 62164 488887 75927 0 3 0x82 nanosleep syz-executor.1 47478 505748 75927 0 2 0x482 syz-executor.0 48366 40329 0 0 3 0x14200 bored sosplice 75927 249585 85677 0 3 0x82 thrsleep syz-fuzzer 75927 369773 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 266042 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 376356 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 379437 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 338208 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 239675 85677 0 3 0x4000082 thrsleep syz-fuzzer 75927 148847 85677 0 3 0x4000082 kqread syz-fuzzer 85677 343584 59803 0 3 0x10008a pause ksh 59803 251315 81202 0 3 0x92 select sshd 71161 51382 1 0 3 0x100083 ttyin getty 81202 128597 1 0 3 0x80 select sshd 5232 24662 41224 73 3 0x100090 kqread syslogd 41224 260108 1 0 3 0x100082 netio syslogd 65102 301497 1 77 3 0x100090 poll dhclient 69777 496931 1 0 3 0x80 poll dhclient 27705 167934 0 0 2 0x14200 zerothread 31212 351436 0 0 3 0x14200 aiodoned aiodoned 86423 444878 0 0 3 0x14200 syncer update 95233 325748 0 0 3 0x14200 cleaner cleaner 25153 16777 0 0 3 0x14200 reaper reaper 41496 489252 0 0 3 0x14200 pgdaemon pagedaemon 25778 26216 0 0 3 0x14200 bored crynlk 39669 83416 0 0 3 0x14200 bored crypto 17869 308187 0 0 3 0x40014200 acpi0 acpi0 46899 426583 0 0 3 0x14200 bored softnet 10162 16616 0 0 3 0x14200 bored systqmp 89876 143919 0 0 3 0x14200 bored systq 62993 287931 0 0 3 0x40014200 bored softclock 15185 234042 0 0 3 0x40014200 idle0 87710 88138 0 0 3 0x14200 bored smr 1 511255 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 9524 6356K 6362K 78643K 11253 0 0 pcb 23 9K 10K 78643K 989 0 0 rtable 103 4K 4K 78643K 1040 0 0 ifaddr 64 15K 15K 78643K 386 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 48 0 0 iov 0 0K 24K 78643K 222 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 2085 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 23 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 182 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1586 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 45 38K 46K 78643K 679 0 0 subproc 64 65538K 67586K 78643K 528 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 180 0 0 in_multi 33 2K 2K 78643K 225 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 5 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 364 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 84 20K 29K 78643K 4589 0 0 UVM aobj 76 3K 3K 78643K 88 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 93 0 0 NDP 14 0K 0K 78643K 120 0 0 temp 186 2359K 2429K 78643K 8149 0 0 kqueue 0 0K 0K 78643K 29 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 874 0 867 1 0 1 1 0 8 0 plimitpl 152 69 0 61 1 0 1 1 0 8 0 rtentry 112 160 0 120 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 313 0 309 1 0 1 1 0 8 0 nd6 48 30 0 26 1 0 1 1 0 8 0 ppxss 1128 52 0 52 11 10 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 739 0 550 16 3 13 13 0 8 0 art_table 32 740 0 550 2 0 2 2 0 8 0 art_node 16 157 0 123 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 3 1 0 1 1 0 8 0 semapl 112 180 0 170 1 0 1 1 0 8 0 shmpl 112 86 0 12 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4067 0 2598 48 0 48 48 0 8 0 ffsino 240 4067 0 2598 87 0 87 87 0 8 0 nchpl 144 6544 0 4869 63 0 63 63 0 8 0 uvmvnodes 72 4479 0 0 82 0 82 82 0 8 0 vnodes 200 4479 0 0 236 0 236 236 0 8 0 namei 1024 20685 0 20684 2 1 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 22009 0 22009 17 16 1 6 0 8 1 sigapl 432 1717 0 1703 2 0 2 2 0 8 0 futexpl 56 26018 0 26017 1 0 1 1 0 8 0 knotepl 112 616 0 597 1 0 1 1 0 8 0 kqueuepl 104 444 0 442 1 0 1 1 0 8 0 pipepl 112 1000 0 981 4 3 1 2 0 8 0 fdescpl 424 1718 0 1703 2 0 2 2 0 8 0 filepl 120 11176 0 11081 5 1 4 5 0 8 1 lockfpl 104 471 0 471 4 3 1 1 0 8 1 lockfspl 32 378 0 378 4 3 1 1 0 8 1 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 48 0 38 1 0 1 1 0 8 0 ucredpl 96 2379 0 2372 1 0 1 1 0 8 0 zombiepl 144 1703 0 1703 2 1 1 1 0 8 1 processpl 840 1733 0 1703 4 0 4 4 0 8 0 procpl 600 3701 0 3662 4 0 4 4 0 8 0 sosppl 128 26 0 26 7 6 1 1 0 8 1 sockpl 384 1760 0 1743 6 3 3 3 0 8 1 mcl64k 65536 276 0 276 35 34 1 29 0 8 1 mcl16k 16384 11 0 11 7 7 0 1 0 8 0 mcl12k 12288 44 0 44 6 5 1 1 0 8 1 mcl9k 9216 24 0 24 7 6 1 1 0 8 1 mcl8k 8192 27 0 27 8 7 1 1 0 8 1 mcl4k 4096 76 0 76 7 6 1 1 0 8 1 mcl2k2 2112 14 0 14 6 6 0 1 0 8 0 mcl2k 2048 49889 0 49853 13 8 5 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 91389 0 91304 25 18 7 19 0 8 0 bufpl 256 11579 0 4653 434 0 434 434 0 8 0 anonpl 16 207258 0 198688 93 45 48 65 0 62 11 amapchunkpl 152 7927 0 7844 33 29 4 13 0 158 0 amappl16 192 9450 0 8966 102 69 33 49 0 8 8 amappl15 184 823 0 819 1 0 1 1 0 8 0 amappl14 176 131 0 129 2 1 1 1 0 8 0 amappl13 168 277 0 272 1 0 1 1 0 8 0 amappl12 160 93 0 92 1 0 1 1 0 8 0 amappl11 152 756 0 744 1 0 1 1 0 8 0 amappl10 144 178 0 177 3 2 1 1 0 8 0 amappl9 136 812 0 805 1 0 1 1 0 8 0 amappl8 128 392 0 370 1 0 1 1 0 8 0 amappl7 120 55 0 49 1 0 1 1 0 8 0 amappl6 112 666 0 658 1 0 1 1 0 8 0 amappl5 104 262 0 252 1 0 1 1 0 8 0 amappl4 96 1823 0 1799 2 1 1 2 0 8 0 amappl3 88 259 0 253 1 0 1 1 0 8 0 amappl2 80 14262 0 14200 2 0 2 2 0 8 0 amappl1 72 40196 0 39769 24 15 9 19 0 8 0 amappl 72 4018 0 3984 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 87 0 12 2 0 2 2 0 8 0 uaddrrnd 24 1718 0 1703 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1718 0 1703 1 0 1 1 0 8 0 vmmpekpl 168 14836 0 14814 2 0 2 2 0 8 0 vmmpepl 168 187952 0 186455 155 77 78 87 0 357 10 vmsppl 264 1717 0 1703 4 3 1 2 0 8 0 pdppl 4096 3442 0 3406 6 1 5 6 0 8 0 pvpl 32 638795 0 626966 283 133 150 214 0 265 50 pmappl 192 1717 0 1703 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 647 0 87 17 0 17 17 0 8 0