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 227133 47424 0 0 0 0 syz-executor.0 * 80771 47424 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(ffffffff81f7eb2c,ffffffff81f800b9,36f,ffffffff81f8afb5) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b9b080,ffff800020c59278) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c59278) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b9b080,ffffff9c,20000000,178) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c59530) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c59530) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,fe22bcaa010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe4ef5fc760, 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(ffffffff81f7eb2c,ffffffff81f800b9,36f,ffffffff81f8afb5) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b9b080,ffff800020c59278) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c59278) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b9b080,ffffff9c,20000000,178) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c59530) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c59530) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,fe22bcaa010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe4ef5fc760, count: -8 ddb{1}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x382e __ALIGN_SIZE+0x282e rbp 0xffff800020c59020 rbx 0xffff800020c590d0 rdx 0x382f __ALIGN_SIZE+0x282f rcx 0xffff8000037b0000 rax 0xffff8000037b0000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0xd1c1122948dd4fd r12 0x3000000008 r13 0xffff800020c59030 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c59010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=80771 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b9abd0,0xffffffff82394e00 process=0xffff800020b3b3c0 user=0xffff800020c54000, vmspace=0xfffffd807effe5a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47424 227133 71516 0 7 0 syz-executor.0 *47424 80771 71516 0 7 0x4000000 syz-executor.0 51474 27480 22383 0 3 0x82 nanosleep syz-executor.1 71516 494463 22383 0 3 0x82 nanosleep syz-executor.0 16300 260855 1 0 3 0x100083 ttyin getty 49222 28450 0 0 3 0x14200 bored sosplice 22383 432407 65850 0 3 0x82 kqread syz-fuzzer 22383 352679 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 320081 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 396144 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 227822 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 333109 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 244982 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 368394 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 172532 65850 0 3 0x4000082 thrsleep syz-fuzzer 22383 93776 65850 0 3 0x4000082 thrsleep syz-fuzzer 65850 20723 19327 0 3 0x10008a pause ksh 19327 114000 34942 0 3 0x92 select sshd 34942 234998 1 0 3 0x80 select sshd 42438 15199 13393 74 3 0x100092 bpf pflogd 13393 361539 1 0 3 0x80 netio pflogd 42779 190497 2007 73 3 0x100090 kqread syslogd 2007 276304 1 0 3 0x100082 netio syslogd 78455 95458 1 77 3 0x100090 poll dhclient 39391 387888 1 0 3 0x80 poll dhclient 63769 421796 0 0 3 0x14200 pgzero zerothread 50282 236953 0 0 3 0x14200 aiodoned aiodoned 4591 48287 0 0 3 0x14200 syncer update 57888 305893 0 0 3 0x14200 cleaner cleaner 45038 69983 0 0 3 0x14200 reaper reaper 99115 356517 0 0 3 0x14200 pgdaemon pagedaemon 92960 118926 0 0 3 0x14200 bored crynlk 54889 67755 0 0 3 0x14200 bored crypto 79234 205943 0 0 3 0x40014200 acpi0 acpi0 30171 441822 0 0 3 0x40014200 idle1 78443 403183 0 0 3 0x14200 bored softnet 26803 255149 0 0 3 0x14200 bored systqmp 72857 523479 0 0 3 0x14200 bored systq 31819 26059 0 0 3 0x40014200 bored softclock 29308 73556 0 0 3 0x40014200 idle0 22192 236812 0 0 3 0x14200 bored smr 1 466029 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47424 (syz-executor.0) thread 0xffff800020b9b080 (80771) exclusive rrwlock inode r = 0 (0xfffffd8068cc9098) 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 domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 #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 (0xffffffff8234a3d0) 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 9532 6422K 6438K 78643K 11108 0 0 pcb 25 9K 11K 78643K 636 0 0 rtable 100 3K 4K 78643K 1081 0 0 ifaddr 63 15K 15K 78643K 345 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1503 0 0 iov 0 0K 16K 78643K 120 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1192 75K 75K 78643K 1983 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 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 242 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 1249 0 0 sigio 0 0K 0K 78643K 28 0 0 proc 56 63K 71K 78643K 786 0 0 subproc 64 65538K 67586K 78643K 716 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 164 0 0 in_multi 33 2K 2K 78643K 281 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 8 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 399 0 0 pfkey data 0 0K 0K 78643K 2 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 87 21K 29K 78643K 4923 0 0 UVM aobj 64 2K 2K 78643K 66 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 66 0 0 NDP 13 0K 0K 78643K 118 0 0 temp 178 2375K 3012K 78643K 7770 0 0 kqueue 0 0K 0K 78643K 7 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 23 0 19 1 0 1 1 0 8 0 inpcbpl 280 644 0 637 1 0 1 1 0 8 0 plimitpl 152 96 0 88 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 213 0 173 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 179 0 175 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 42 0 38 1 0 1 1 0 8 0 ppxss 1128 35 0 35 6 5 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 49 0 32 1 0 1 1 0 8 0 pfstkey 112 49 0 32 1 0 1 1 0 8 0 pfstate 328 49 0 32 3 1 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 1003 0 811 12 0 12 12 0 8 0 art_table 32 1004 0 811 2 0 2 2 0 8 0 art_node 16 212 0 178 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 236 0 226 1 0 1 1 0 8 0 shmpl 112 64 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3459 0 2019 47 0 47 47 0 8 0 ffsino 272 3459 0 2019 97 0 97 97 0 8 0 nchpl 144 5442 0 3795 62 0 62 62 0 8 0 uvmvnodes 72 3914 0 0 72 0 72 72 0 8 0 vnodes 200 3914 0 0 206 0 206 206 0 8 0 namei 1024 17013 0 17012 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 8 0 8 5 5 0 1 0 8 0 scxspl 192 15427 0 15427 13 12 1 6 0 8 1 sigapl 432 1392 0 1377 2 0 2 2 0 8 0 futexpl 56 13038 0 13038 1 0 1 1 0 8 1 knotepl 112 654 0 635 1 0 1 1 0 8 0 kqueuepl 104 326 0 324 1 0 1 1 0 8 0 pipepl 112 924 0 905 4 2 2 2 0 8 1 fdescpl 488 1393 0 1377 3 0 3 3 0 8 0 filepl 152 8536 0 8437 8 3 5 7 0 8 1 lockfpl 104 259 0 259 5 4 1 1 0 8 1 lockfspl 32 154 0 154 5 4 1 1 0 8 1 sessionpl 112 38 0 27 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 1382 0 1373 1 0 1 1 0 8 0 zombiepl 144 1377 0 1376 2 1 1 1 0 8 0 processpl 840 1409 0 1376 4 0 4 4 0 8 0 procpl 600 3865 0 3822 4 0 4 4 0 8 0 srpgc 64 115 0 115 5 5 0 1 0 8 0 sosppl 128 17 0 17 5 5 0 1 0 8 0 sockpl 384 1182 0 1163 5 2 3 4 0 8 1 mcl64k 65536 599 0 0 70 6 64 64 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 120 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 672 0 0 35 0 35 35 0 8 0 bufpl 256 8294 0 1270 440 0 440 440 0 8 0 anonpl 16 150617 0 141905 83 42 41 50 0 125 4 amapchunkpl 152 8698 0 8612 21 15 6 9 0 158 2 amappl16 192 6276 0 5808 74 48 26 36 0 8 2 amappl15 184 725 0 718 1 0 1 1 0 8 0 amappl14 176 138 0 135 2 1 1 1 0 8 0 amappl13 168 84 0 81 1 0 1 1 0 8 0 amappl12 160 262 0 259 1 0 1 1 0 8 0 amappl11 152 635 0 618 1 0 1 1 0 8 0 amappl10 144 80 0 76 1 0 1 1 0 8 0 amappl9 136 683 0 680 1 0 1 1 0 8 0 amappl8 128 234 0 215 1 0 1 1 0 8 0 amappl7 120 73 0 68 1 0 1 1 0 8 0 amappl6 112 528 0 514 1 0 1 1 0 8 0 amappl5 104 306 0 292 1 0 1 1 0 8 0 amappl4 96 1576 0 1546 2 1 1 2 0 8 0 amappl3 88 325 0 317 1 0 1 1 0 8 0 amappl2 80 10904 0 10846 2 0 2 2 0 8 0 amappl1 72 39919 0 39474 25 15 10 20 0 8 0 amappl 72 4244 0 4209 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 65 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1393 0 1377 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1393 0 1377 1 0 1 1 0 8 0 vmmpekpl 168 15455 0 15431 2 0 2 2 0 8 0 vmmpepl 168 159185 0 157701 115 37 78 82 0 357 7 vmsppl 360 1392 0 1377 2 0 2 2 0 8 0 pdppl 4096 2794 0 2754 6 0 6 6 0 8 0 pvpl 32 440904 0 428911 175 57 118 132 0 265 18 pmappl 224 1392 0 1377 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 690 0 10 20 0 20 20 0 8 0