p?@sVnX;qho3"ȼ~q.:sV7m&5gQ~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 134652 5961 0 0 0 0 syz-executor.0 *440593 5961 0 0 0x4000000 1K 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(ffffffff81f7cec5,ffffffff81f805b4,36f,ffffffff81f8b307) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b6c978,ffff800020c61888) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c61888) at namei+0x88b sys/kern/vfs_lookup.c:232 dosymlinkat(ffff800020b6c978,20000100,ffffff9c,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800020c61b40) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c61b40) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,fffffffffffffffd,0,2,140ac0000d8) at Xsyscall+0x128 end of kernel end trace frame: 0x142ee810e90, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879 ddb{1}> 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(ffffffff81f7cec5,ffffffff81f805b4,36f,ffffffff81f8b307) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b6c978,ffff800020c61888) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c61888) at namei+0x88b sys/kern/vfs_lookup.c:232 dosymlinkat(ffff800020b6c978,20000100,ffffff9c,20000140) at dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 syscall(ffff800020c61b40) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c61b40) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,fffffffffffffffd,0,2,140ac0000d8) at Xsyscall+0x128 end of kernel end trace frame: 0x142ee810e90, count: -8 ddb{1}> show registers rdi 0xffffffff81d528d7 db_enter+0x17 rsi 0x3a09 __ALIGN_SIZE+0x2a09 rbp 0xffff800020c61620 rbx 0xffff800020c616d0 rdx 0x3a0a __ALIGN_SIZE+0x2a0a rcx 0xffff800002766000 rax 0xffff800002766000 r8 0xffffffff81b94ad3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x4322ad5d3e1d151f r12 0x3000000008 r13 0xffff800020c61630 r14 0x100 r15 0x1 rip 0xffffffff81d528d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c61610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=440593 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b6ce28,0xffffffff82377160 process=0xffff800020b7cd38 user=0xffff800020c5c000, vmspace=0xfffffd807effe000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5961 134652 79318 0 7 0 syz-executor.0 5961 226234 79318 0 3 0x4000080 fsleep syz-executor.0 * 5961 440593 79318 0 7 0x4000000 syz-executor.0 77801 323115 76254 60929 3 0x90 nanosleep syz-executor.1 77801 149464 76254 60929 3 0x4000090 netio syz-executor.1 77801 523681 76254 60929 3 0x4000090 fsleep syz-executor.1 76254 86952 50291 0 3 0x82 nanosleep syz-executor.1 79318 408485 50291 0 3 0x82 nanosleep syz-executor.0 93131 489809 0 0 3 0x14200 bored sosplice 50291 192886 14432 0 3 0x82 thrsleep syz-fuzzer 50291 27719 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 81182 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 465670 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 379254 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 386177 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 164880 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 244282 14432 0 3 0x4000082 thrsleep syz-fuzzer 50291 440197 14432 0 3 0x4000082 kqread syz-fuzzer 50291 482531 14432 0 3 0x4000082 thrsleep syz-fuzzer 14432 230130 70878 0 3 0x10008a pause ksh 70878 419048 36924 0 3 0x92 select sshd 9031 158304 1 0 3 0x100083 ttyin getty 36924 150645 1 0 3 0x80 select sshd 84652 262334 81621 74 3 0x100092 bpf pflogd 81621 131124 1 0 3 0x80 netio pflogd 56211 16606 16730 73 3 0x100090 kqread syslogd 16730 363442 1 0 3 0x100082 netio syslogd 67840 208879 1 77 3 0x100090 poll dhclient 2709 160741 1 0 3 0x80 poll dhclient 69767 6576 0 0 3 0x14200 pgzero zerothread 26917 118270 0 0 3 0x14200 aiodoned aiodoned 1074 116748 0 0 3 0x14200 syncer update 91461 297470 0 0 3 0x14200 cleaner cleaner 63674 459093 0 0 3 0x14200 reaper reaper 75615 69203 0 0 3 0x14200 pgdaemon pagedaemon 17894 236643 0 0 3 0x14200 bored crynlk 6883 390781 0 0 3 0x14200 bored crypto 5349 62480 0 0 3 0x40014200 acpi0 acpi0 91152 158413 0 0 3 0x40014200 idle1 21778 70202 0 0 3 0x14200 bored softnet 1318 192829 0 0 3 0x14200 bored systqmp 49565 121579 0 0 3 0x14200 bored systq 47700 104529 0 0 3 0x40014200 bored softclock 24021 55765 0 0 3 0x40014200 idle0 53253 125896 0 0 3 0x14200 bored smr 1 406189 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 5961 (syz-executor.0) thread 0xffff800020b6c978 (440593) exclusive rrwlock inode r = 0 (0xfffffd8065ca51b8) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387 #6 namei+0x4b2 sys/kern/vfs_lookup.c:224 #7 dosymlinkat+0xcd sys/kern/vfs_syscalls.c:1613 #8 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff823e9b78) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9490 6404K 6412K 78643K 10682 0 0 pcb 28 10K 10K 78643K 173 0 0 rtable 100 3K 4K 78643K 370 0 0 ifaddr 49 12K 12K 78643K 110 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1479 0 0 iov 0 0K 16K 78643K 27 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1193 75K 75K 78643K 1363 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 38 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 25K 78643K 271 0 0 proc 57 63K 83K 78643K 439 0 0 subproc 64 65538K 67586K 78643K 206 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 16 0 0 in_multi 33 2K 2K 78643K 91 0 0 ether_multi 1 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 36 159K 159K 78643K 36 0 0 exec 0 0K 1K 78643K 216 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 86 20K 29K 78643K 1691 0 0 UVM aobj 21 2K 2K 78643K 22 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 13 0 0 NDP 9 0K 0K 78643K 35 0 0 temp 114 2366K 2433K 78643K 4100 0 0 kqueue 0 0K 0K 78643K 8 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 inpcbpl 280 171 0 164 1 0 1 1 0 8 0 plimitpl 152 28 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 77 0 37 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 74 0 70 1 0 1 1 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 1 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 18 0 4 1 0 1 1 0 8 0 pfstkey 112 18 0 4 1 0 1 1 0 8 0 pfstate 328 18 0 4 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 352 0 164 12 0 12 12 0 8 0 art_table 32 353 0 164 2 0 2 2 0 8 0 art_node 16 76 0 42 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 20 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1836 0 405 47 0 47 47 0 8 0 ffsino 272 1836 0 405 96 0 96 96 0 8 0 nchpl 144 2387 0 740 62 0 62 62 0 8 0 uvmvnodes 72 1968 0 0 36 0 36 36 0 8 0 vnodes 200 1968 0 0 104 0 104 104 0 8 0 namei 1024 6799 0 6797 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 6298 0 6298 7 6 1 5 0 8 1 sigapl 432 458 0 442 3 1 2 3 0 8 0 futexpl 56 2473 0 2471 2 1 1 1 0 8 0 knotepl 112 161 0 142 1 0 1 1 0 8 0 kqueuepl 104 56 0 54 1 0 1 1 0 8 0 pipepl 112 286 0 267 2 1 1 1 0 8 0 fdescpl 488 459 0 442 3 0 3 3 0 8 0 filepl 152 2620 0 2518 6 1 5 5 0 8 1 lockfpl 104 48 0 48 3 2 1 1 0 8 1 lockfspl 32 19 0 19 3 2 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 375 0 365 1 0 1 1 0 8 0 zombiepl 144 442 0 442 2 1 1 1 0 8 1 processpl 840 475 0 442 4 0 4 4 0 8 0 procpl 600 961 0 915 4 0 4 4 0 8 0 srpgc 64 24 0 24 1 1 0 1 0 8 0 sosppl 128 8 0 8 1 1 0 1 0 8 0 sockpl 384 318 0 296 4 1 3 3 0 8 0 mcl64k 65536 258 0 0 33 0 33 33 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 121 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 349 0 0 21 0 21 21 0 8 0 bufpl 256 6109 0 1146 311 0 311 311 0 8 0 anonpl 16 54719 0 46486 52 5 47 47 0 125 13 amapchunkpl 152 2355 0 2261 9 3 6 9 0 158 0 amappl16 192 1775 0 1356 34 5 29 33 0 8 7 amappl15 184 85 0 80 1 0 1 1 0 8 0 amappl14 176 46 0 41 2 1 1 1 0 8 0 amappl13 168 162 0 155 1 0 1 1 0 8 0 amappl12 160 19 0 18 1 0 1 1 0 8 0 amappl11 152 49 0 34 1 0 1 1 0 8 0 amappl10 144 75 0 71 1 0 1 1 0 8 0 amappl9 136 660 0 656 1 0 1 1 0 8 0 amappl8 128 209 0 197 1 0 1 1 0 8 0 amappl7 120 39 0 34 1 0 1 1 0 8 0 amappl6 112 86 0 77 1 0 1 1 0 8 0 amappl5 104 116 0 102 1 0 1 1 0 8 0 amappl4 96 687 0 657 2 1 1 2 0 8 0 amappl3 88 136 0 131 1 0 1 1 0 8 0 amappl2 80 2801 0 2733 2 0 2 2 0 8 0 amappl1 72 19579 0 19105 26 16 10 20 0 8 0 amappl 72 1228 0 1188 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 21 0 1 1 0 1 1 0 8 0 uaddrrnd 24 459 0 442 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 459 0 442 1 0 1 1 0 8 0 vmmpekpl 168 7645 0 7617 2 0 2 2 0 8 0 vmmpepl 168 56676 0 55150 93 17 76 76 0 357 9 vmsppl 360 458 0 442 2 0 2 2 0 8 0 pdppl 4096 926 0 884 6 0 6 6 0 8 0 pvpl 32 179864 0 168290 131 7 124 124 0 265 30 pmappl 224 458 0 442 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 508 0 4 15 0 15 15 0 8 0