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 *244539 78223 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(ffff800014a0d2e0,ffff8000149f04a0) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149f04a0) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff8000149f04a0,2c1,1) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff800014a0d2e0,ffffff9c,20000180,2c0,1,ffff8000149f06e0) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff8000149f0790) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,d0f7c242010) at Xsyscall+0x128 end of kernel end trace frame: 0xd12521a3f10, count: 6 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(ffff800014a0d2e0,ffff8000149f04a0) at unveil_check_final+0x805 sys/kern/kern_unveil.c:879 namei(ffff8000149f04a0) at namei+0x88a sys/kern/vfs_lookup.c:232 vn_open(ffff8000149f04a0,2c1,1) at vn_open+0x157 sys/kern/vfs_vnops.c:103 doopenat(ffff800014a0d2e0,ffffff9c,20000180,2c0,1,ffff8000149f06e0) at doopenat+0x2b2 sys/kern/vfs_syscalls.c:1045 syscall(ffff8000149f0790) at syscall+0x541 Xsyscall(6,0,ffffffffffffffa8,0,3,d0f7c242010) at Xsyscall+0x128 end of kernel end trace frame: 0xd12521a3f10, count: -9 ddb> show registers rdi 0xffffffff81c210d7 db_enter+0x17 rsi 0x3f5a __ALIGN_SIZE+0x2f5a rbp 0xffff8000149f00e0 rbx 0xffff8000149f0190 rdx 0x3f5b __ALIGN_SIZE+0x2f5b rcx 0xffff80000393c000 rax 0xffff80000393c000 r8 0xffff8000149f00a0 r9 0x1 r10 0xffff800000933900 r11 0x5b15b8dd6035d05d r12 0x3000000008 r13 0xffff8000149f00f0 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149f00d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=244539 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800014a0dc40,0xffffffff82252c30 process=0xffff8000ffff7a50 user=0xffff8000149eb000, vmspace=0xfffffd803f014a50 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 78223 38711 72285 0 2 0 syz-executor.1 *78223 244539 72285 0 7 0x4000000 syz-executor.1 72285 482517 75459 0 2 0x482 syz-executor.1 31655 133505 75459 0 2 0x2 syz-executor.0 47789 378511 1 0 3 0x100083 ttyin getty 37188 312579 0 0 3 0x14200 bored sosplice 75459 7270 86245 0 3 0x82 thrsleep syz-fuzzer 75459 302377 86245 0 2 0x4000482 syz-fuzzer 75459 209605 86245 0 3 0x4000082 thrsleep syz-fuzzer 75459 62851 86245 0 3 0x4000082 kqread syz-fuzzer 75459 452442 86245 0 3 0x4000082 thrsleep syz-fuzzer 75459 185145 86245 0 3 0x4000082 thrsleep syz-fuzzer 75459 170860 86245 0 3 0x4000082 thrsleep syz-fuzzer 86245 478034 1222 0 3 0x10008a pause ksh 1222 209749 32341 0 3 0x92 select sshd 32341 129995 1 0 3 0x80 select sshd 10075 471580 95011 73 3 0x100090 kqread syslogd 95011 249727 1 0 3 0x100082 netio syslogd 76049 480746 1 77 3 0x100090 poll dhclient 62565 320016 1 0 3 0x80 poll dhclient 97521 135193 0 0 2 0x14200 zerothread 80930 315103 0 0 3 0x14200 aiodoned aiodoned 1876 433294 0 0 3 0x14200 syncer update 87800 407307 0 0 3 0x14200 cleaner cleaner 28437 352012 0 0 3 0x14200 reaper reaper 52930 68872 0 0 3 0x14200 pgdaemon pagedaemon 7318 5761 0 0 3 0x14200 bored crynlk 85649 171641 0 0 3 0x14200 bored crypto 49442 490430 0 0 3 0x40014200 acpi0 acpi0 70849 147703 0 0 3 0x14200 bored softnet 92425 111717 0 0 3 0x14200 bored systqmp 74868 111679 0 0 3 0x14200 bored systq 18079 4084 0 0 3 0x40014200 bored softclock 92008 6924 0 0 3 0x40014200 idle0 86969 54152 0 0 3 0x14200 bored smr 1 362065 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 9530 6358K 6371K 78643K 11232 0 0 pcb 23 9K 11K 78643K 1049 0 0 rtable 100 3K 4K 78643K 949 0 0 ifaddr 66 15K 15K 78643K 311 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 64 0 0 iov 0 0K 28K 78643K 299 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 76K 78643K 2099 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 17 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 340 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 1963 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 45 38K 46K 78643K 795 0 0 subproc 64 65538K 67586K 78643K 551 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 270 0 0 in_multi 33 2K 2K 78643K 271 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 0 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 417 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 76 20K 38K 78643K 5400 0 0 UVM aobj 95 3K 3K 78643K 107 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 69 0 0 NDP 15 0K 0K 78643K 103 0 0 temp 191 2360K 2432K 78643K 8833 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 18 0 14 1 0 1 1 0 8 0 inpcbpl 280 1008 0 1001 2 1 1 2 0 8 0 plimitpl 152 87 0 80 1 0 1 1 0 8 0 rtentry 112 171 0 131 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 378 0 374 1 0 1 1 0 8 0 nd6 48 32 0 28 1 0 1 1 0 8 0 ppxss 1128 32 0 32 9 8 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 787 0 598 12 0 12 12 0 8 0 art_table 32 788 0 598 2 0 2 2 0 8 0 art_node 16 166 0 132 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 7 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 336 0 326 1 0 1 1 0 8 0 shmpl 112 105 0 12 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4540 0 3060 48 0 48 48 0 8 0 ffsino 240 4540 0 3060 88 0 88 88 0 8 0 nchpl 144 7560 0 5903 62 0 62 62 0 8 0 uvmvnodes 72 4977 0 0 91 0 91 91 0 8 0 vnodes 200 4977 0 0 262 0 262 262 0 8 0 namei 1024 23760 0 23759 4 3 1 1 0 8 0 scsiplug 64 3 0 3 3 2 1 1 0 8 1 scxspl 192 36454 0 36454 15 14 1 6 0 8 1 sigapl 432 2093 0 2080 2 0 2 2 0 8 0 futexpl 56 32725 0 32725 3 2 1 1 0 8 1 knotepl 112 708 0 689 1 0 1 1 0 8 0 kqueuepl 104 514 0 512 1 0 1 1 0 8 0 pipepl 112 1368 0 1349 4 3 1 2 0 8 0 fdescpl 424 2094 0 2080 2 0 2 2 0 8 0 filepl 120 13263 0 13167 8 4 4 5 0 8 1 lockfpl 104 643 0 643 4 3 1 1 0 8 1 lockfspl 32 558 0 558 4 3 1 1 0 8 1 sessionpl 112 33 0 23 1 0 1 1 0 8 0 pgrppl 48 63 0 53 1 0 1 1 0 8 0 ucredpl 96 2948 0 2941 1 0 1 1 0 8 0 zombiepl 144 2080 0 2080 2 1 1 1 0 8 1 processpl 840 2109 0 2080 4 0 4 4 0 8 0 procpl 600 4506 0 4470 5 1 4 4 0 8 0 sosppl 128 29 0 29 6 6 0 1 0 8 0 sockpl 384 1919 0 1902 6 3 3 4 0 8 1 mcl64k 65536 51 0 51 11 10 1 1 0 8 1 mcl16k 16384 5 0 5 5 5 0 1 0 8 0 mcl12k 12288 43 0 43 9 8 1 1 0 8 1 mcl9k 9216 36 0 36 9 8 1 1 0 8 1 mcl8k 8192 35 0 35 10 9 1 1 0 8 1 mcl4k 4096 122 0 122 9 8 1 1 0 8 1 mcl2k2 2112 16 0 16 9 8 1 1 0 8 1 mcl2k 2048 50507 0 50473 12 7 5 9 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 93472 0 93377 18 9 9 9 0 8 1 bufpl 256 13451 0 6600 429 0 429 429 0 8 0 anonpl 16 228039 0 219625 125 83 42 55 0 62 5 amapchunkpl 152 9386 0 9306 39 34 5 14 0 158 1 amappl16 192 11105 0 10628 104 71 33 36 0 8 8 amappl15 184 915 0 910 1 0 1 1 0 8 0 amappl14 176 709 0 704 2 1 1 1 0 8 0 amappl13 168 288 0 285 1 0 1 1 0 8 0 amappl12 160 416 0 416 2 2 0 1 0 8 0 amappl11 152 656 0 645 1 0 1 1 0 8 0 amappl10 144 162 0 161 7 6 1 1 0 8 0 amappl9 136 371 0 368 1 0 1 1 0 8 0 amappl8 128 195 0 176 1 0 1 1 0 8 0 amappl7 120 134 0 128 1 0 1 1 0 8 0 amappl6 112 442 0 434 1 0 1 1 0 8 0 amappl5 104 1054 0 1044 1 0 1 1 0 8 0 amappl4 96 1876 0 1852 2 1 1 2 0 8 0 amappl3 88 859 0 852 1 0 1 1 0 8 0 amappl2 80 17893 0 17843 2 0 2 2 0 8 0 amappl1 72 46595 0 46185 26 17 9 19 0 8 0 amappl 72 4807 0 4775 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 106 0 12 2 0 2 2 0 8 0 uaddrrnd 24 2094 0 2080 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2094 0 2080 1 0 1 1 0 8 0 vmmpekpl 168 17047 0 17028 3 1 2 2 0 8 0 vmmpepl 168 228604 0 227209 151 73 78 82 0 357 9 vmsppl 264 2093 0 2080 3 2 1 2 0 8 0 pdppl 4096 4194 0 4160 5 0 5 5 0 8 0 pvpl 32 767812 0 756225 369 195 174 243 0 265 74 pmappl 192 2093 0 2080 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 610 0 53 16 0 16 16 0 8 0