panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 95681 72605 0 0 0x4000000 0 syz-executor.0 356880 65552 0 0x2 0x480 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7e6d6,ffffffff81f80d6e,36f,ffffffff81f8ba8b) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b9a4c8,ffff800020c50fe8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c50fe8) at namei+0x88b sys/kern/vfs_lookup.c:232 dolinkat(ffff800020b9a4c8,ffffff9c,20000340,ffffff9c,20000380,4) at dolinkat+0xcd sys/kern/vfs_syscalls.c:1541 syscall(ffff800020c51210) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c51210) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff8d,0,2,75b197a010) at Xsyscall+0x128 end of kernel end trace frame: 0x78078a0a20, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 __assert(ffffffff81f7e6d6,ffffffff81f80d6e,36f,ffffffff81f8ba8b) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b9a4c8,ffff800020c50fe8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c50fe8) at namei+0x88b sys/kern/vfs_lookup.c:232 dolinkat(ffff800020b9a4c8,ffffff9c,20000340,ffffff9c,20000380,4) at dolinkat+0xcd sys/kern/vfs_syscalls.c:1541 syscall(ffff800020c51210) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c51210) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff8d,0,2,75b197a010) at Xsyscall+0x128 end of kernel end trace frame: 0x78078a0a20, count: -8 ddb{0}> show registers rdi 0xffffffff814367b7 db_enter+0x17 rsi 0x3c36 __ALIGN_SIZE+0x2c36 rbp 0xffff800020c50d70 rbx 0xffff800020c50e20 rdx 0x3c37 __ALIGN_SIZE+0x2c37 rcx 0xffff800003b66000 rax 0xffff800003b66000 r8 0xffffffff818d1a13 kprintf+0x183 r9 0x1 r10 0x25 r11 0x6aa964a2c8e477a5 r12 0x3000000008 r13 0xffff800020c50d80 r14 0x100 r15 0x1 rip 0xffffffff814367b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c50d60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=95681 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b9a978,0xffffffff82393cf8 process=0xffff800020b8c018 user=0xffff800020c4c000, vmspace=0xfffffd807effd2d0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72605 202916 65552 0 2 0 syz-executor.0 *72605 95681 65552 0 7 0x4000000 syz-executor.0 55378 340681 72376 0 2 0 syz-executor.1 55378 444849 72376 0 3 0x4000080 netio syz-executor.1 72376 418828 24983 0 2 0x2 syz-executor.1 65552 356880 24983 0 7 0x482 syz-executor.0 92204 465879 1 0 3 0x100083 ttyin getty 78703 21078 0 0 3 0x14200 bored sosplice 24983 484300 24891 0 3 0x82 thrsleep syz-fuzzer 24983 446594 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 27846 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 149502 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 461093 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 78463 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 208589 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 89703 24891 0 3 0x4000082 thrsleep syz-fuzzer 24983 412397 24891 0 3 0x4000082 kqread syz-fuzzer 24983 521342 24891 0 3 0x4000082 thrsleep syz-fuzzer 24891 174142 79013 0 3 0x10008a pause ksh 79013 58970 76609 0 3 0x92 select sshd 76609 360971 1 0 3 0x80 select sshd 36994 271496 63767 74 3 0x100092 bpf pflogd 63767 186040 1 0 3 0x80 netio pflogd 9551 166827 10025 73 3 0x100090 kqread syslogd 10025 134004 1 0 3 0x100082 netio syslogd 48854 64715 1 77 3 0x100090 poll dhclient 14726 462481 1 0 3 0x80 poll dhclient 20122 455566 0 0 2 0x14200 zerothread 77014 123483 0 0 3 0x14200 aiodoned aiodoned 99611 412996 0 0 3 0x14200 syncer update 13957 520921 0 0 3 0x14200 cleaner cleaner 52875 313676 0 0 3 0x14200 reaper reaper 75791 315260 0 0 3 0x14200 pgdaemon pagedaemon 20403 164865 0 0 3 0x14200 bored crynlk 26609 379832 0 0 3 0x14200 bored crypto 90091 305763 0 0 3 0x40014200 acpi0 acpi0 51865 18935 0 0 3 0x40014200 idle1 24666 176061 0 0 3 0x14200 bored softnet 67157 162131 0 0 3 0x14200 bored systqmp 65346 291646 0 0 3 0x14200 bored systq 45670 135602 0 0 3 0x40014200 bored softclock 62367 148134 0 0 3 0x40014200 idle0 29314 188138 0 0 3 0x14200 bored smr 1 91474 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 72605 (syz-executor.0) thread 0xffff800020b9a4c8 (95681) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82349ce8) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 syscall+0x48b mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x48b sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9539 10523K 10532K 78643K 10873 0 0 pcb 27 9K 11K 78643K 431 0 0 rtable 100 3K 4K 78643K 519 0 0 ifaddr 64 14K 14K 78643K 183 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1483 0 0 iov 0 0K 24K 78643K 92 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1192 75K 75K 78643K 1642 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 12 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 135 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 697 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 57 63K 71K 78643K 517 0 0 subproc 64 65538K 67586K 78643K 244 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 109 0 0 in_multi 33 2K 2K 78643K 116 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 277 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 91 21K 29K 78643K 3148 0 0 UVM aobj 43 2K 2K 78643K 47 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 31 0 0 NDP 14 0K 0K 78643K 55 0 0 temp 182 2379K 2443K 78643K 5401 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 5 1 0 1 1 0 8 0 inpcbpl 280 401 0 394 2 1 1 2 0 8 0 plimitpl 152 49 0 41 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 91 0 51 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 154 0 150 1 0 1 1 0 8 0 rttmr 72 4 0 4 2 2 0 1 0 8 0 nd6 48 14 0 10 1 0 1 1 0 8 0 ppxss 1128 21 0 21 4 3 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 27 0 19 1 0 1 1 0 8 0 pfstkey 112 27 0 19 1 0 1 1 0 8 0 pfstate 328 27 0 19 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 403 0 214 12 0 12 12 0 8 0 art_table 32 404 0 214 2 0 2 2 0 8 0 art_node 16 88 0 54 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 5 1 0 1 1 0 8 0 semapl 112 132 0 122 1 0 1 1 0 8 0 shmpl 112 45 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2665 0 1224 47 0 47 47 0 8 0 ffsino 272 2665 0 1224 97 0 97 97 0 8 0 nchpl 144 3857 0 2206 62 0 62 62 0 8 0 uvmvnodes 72 2843 0 0 52 0 52 52 0 8 0 vnodes 200 2843 0 0 150 0 150 150 0 8 0 namei 1024 11438 0 11437 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 13126 0 13126 12 11 1 6 0 8 1 sigapl 432 882 0 866 2 0 2 2 0 8 0 futexpl 56 8075 0 8075 1 0 1 1 0 8 1 knotepl 112 316 0 297 1 0 1 1 0 8 0 kqueuepl 104 204 0 202 1 0 1 1 0 8 0 pipepl 112 636 0 617 4 3 1 2 0 8 0 fdescpl 488 883 0 866 3 0 3 3 0 8 0 filepl 152 5505 0 5403 8 3 5 7 0 8 1 lockfpl 104 223 0 223 3 2 1 1 0 8 1 lockfspl 32 351 0 351 3 2 1 1 0 8 1 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 1261 0 1252 1 0 1 1 0 8 0 zombiepl 144 866 0 866 3 2 1 1 0 8 1 processpl 840 899 0 866 4 0 4 4 0 8 0 procpl 600 2367 0 2323 4 0 4 4 0 8 0 srpgc 64 32 0 32 5 5 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 384 767 0 746 5 2 3 4 0 8 0 mcl64k 65536 258 0 0 33 1 32 33 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 125 0 0 15 1 14 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 374 0 0 21 0 21 21 0 8 0 bufpl 256 7495 0 1149 397 0 397 397 0 8 0 anonpl 16 103398 0 95215 66 30 36 52 0 125 0 amapchunkpl 152 4901 0 4807 9 4 5 9 0 158 0 amappl16 192 4177 0 3712 48 23 25 35 0 8 0 amappl15 184 500 0 493 1 0 1 1 0 8 0 amappl14 176 210 0 207 2 1 1 1 0 8 0 amappl13 168 28 0 24 1 0 1 1 0 8 0 amappl12 160 26 0 24 1 0 1 1 0 8 0 amappl11 152 341 0 324 1 0 1 1 0 8 0 amappl10 144 103 0 98 1 0 1 1 0 8 0 amappl9 136 603 0 600 1 0 1 1 0 8 0 amappl8 128 164 0 148 1 0 1 1 0 8 0 amappl7 120 41 0 36 1 0 1 1 0 8 0 amappl6 112 151 0 141 1 0 1 1 0 8 0 amappl5 104 144 0 129 1 0 1 1 0 8 0 amappl4 96 1128 0 1100 2 1 1 2 0 8 0 amappl3 88 329 0 323 1 0 1 1 0 8 0 amappl2 80 6896 0 6832 2 0 2 2 0 8 0 amappl1 72 28680 0 28214 26 16 10 20 0 8 0 amappl 72 2643 0 2605 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 46 0 4 1 0 1 1 0 8 0 uaddrrnd 24 883 0 866 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 883 0 866 1 0 1 1 0 8 0 vmmpekpl 168 11390 0 11367 2 0 2 2 0 8 0 vmmpepl 168 103521 0 101963 107 27 80 80 0 357 12 vmsppl 360 882 0 866 2 0 2 2 0 8 0 pdppl 4096 1774 0 1732 6 0 6 6 0 8 0 pvpl 32 326032 0 314484 155 46 109 137 0 265 10 pmappl 224 882 0 866 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 597 0 7 17 0 17 17 0 8 0