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 *261751 24139 0 0 0x4000000 0K syz-executor.0 185515 59569 0 0 0 1 syz-executor.1 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(ffff800020b38e28,ffff800020c516e8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c516e8) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b38e28,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c519a0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c519a0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,2936152b010) at Xsyscall+0x128 end of kernel end trace frame: 0x295e3b55120, 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(ffffffff81f7eb2c,ffffffff81f800b9,36f,ffffffff81f8afb5) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b38e28,ffff800020c516e8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c516e8) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b38e28,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c519a0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c519a0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,2936152b010) at Xsyscall+0x128 end of kernel end trace frame: 0x295e3b55120, count: -8 ddb{0}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x3933 __ALIGN_SIZE+0x2933 rbp 0xffff800020c51490 rbx 0xffff800020c51540 rdx 0x3934 __ALIGN_SIZE+0x2934 rcx 0xffff800000966000 rax 0xffff800000966000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x2cd5e74689e64087 r12 0x3000000008 r13 0xffff800020c514a0 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c51480 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=261751 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b384c8,0xffff800020b38988 process=0xffff800020b8d3c8 user=0xffff800020c4c000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24139 165485 59380 0 3 0x80 nanosleep syz-executor.0 *24139 261751 59380 0 7 0x4000000 syz-executor.0 24139 196851 59380 0 3 0x4000080 fsleep syz-executor.0 59569 185515 28514 0 7 0 syz-executor.1 59569 319338 28514 0 3 0x4000080 kqread syz-executor.1 59569 196150 28514 0 2 0x4000000 syz-executor.1 54699 414603 0 0 3 0x14200 bored sosplice 28514 262607 54146 0 3 0x82 nanosleep syz-executor.1 59380 25091 54146 0 3 0x82 nanosleep syz-executor.0 54146 72996 34805 0 3 0x82 thrsleep syz-fuzzer 54146 385586 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 110563 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 134557 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 363024 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 516124 34805 0 3 0x4000082 kqread syz-fuzzer 54146 269450 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 375339 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 294835 34805 0 3 0x4000082 thrsleep syz-fuzzer 54146 504459 34805 0 3 0x4000082 thrsleep syz-fuzzer 34805 224090 4914 0 3 0x10008a pause ksh 4914 502150 61342 0 3 0x92 select sshd 84398 474400 1 0 3 0x100083 ttyin getty 61342 254463 1 0 3 0x80 select sshd 74743 356652 50865 74 3 0x100092 bpf pflogd 50865 345558 1 0 3 0x80 netio pflogd 8128 433032 36081 73 3 0x100090 kqread syslogd 36081 306368 1 0 3 0x100082 netio syslogd 55569 438783 1 77 3 0x100090 poll dhclient 30957 205066 1 0 3 0x80 poll dhclient 4778 169526 0 0 2 0x14200 zerothread 37430 178008 0 0 3 0x14200 aiodoned aiodoned 43901 361992 0 0 3 0x14200 syncer update 80547 271926 0 0 3 0x14200 cleaner cleaner 93881 488470 0 0 3 0x14200 reaper reaper 80249 458568 0 0 3 0x14200 pgdaemon pagedaemon 66167 68370 0 0 3 0x14200 bored crynlk 67309 387885 0 0 3 0x14200 bored crypto 29826 179040 0 0 3 0x40014200 acpi0 acpi0 16970 218112 0 0 3 0x40014200 idle1 94450 322036 0 0 3 0x14200 bored softnet 20728 439294 0 0 3 0x14200 bored systqmp 53650 146346 0 0 3 0x14200 bored systq 56713 226549 0 0 3 0x40014200 bored softclock 10421 294573 0 0 3 0x40014200 idle0 38150 192647 0 0 3 0x14200 bored smr 1 174927 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 24139 (syz-executor.0) thread 0xffff800020b38e28 (261751) exclusive rrwlock inode r = 0 (0xfffffd807cdfa3c8) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9491 6404K 6406K 78643K 10629 0 0 pcb 25 9K 10K 78643K 141 0 0 rtable 100 3K 4K 78643K 234 0 0 ifaddr 50 12K 12K 78643K 76 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 iov 0 0K 16K 78643K 16 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 75K 78643K 1287 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 3 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 18 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 155 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 57 63K 71K 78643K 355 0 0 subproc 64 65538K 67586K 78643K 68 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 19 0 0 in_multi 33 2K 2K 78643K 45 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 209 0 0 pfkey data 0 0K 0K 78643K 1 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 25K 78643K 1351 0 0 UVM aobj 8 2K 2K 78643K 8 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 14 0 0 NDP 9 0K 0K 78643K 19 0 0 temp 112 2365K 2431K 78643K 3587 0 0 kqueue 0 0K 0K 78643K 2 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 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 103 0 96 1 0 1 1 0 8 0 plimitpl 152 22 0 14 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 45 0 5 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpqe 32 10 0 10 1 1 0 1 0 8 0 tcpcb 544 32 0 28 1 0 1 1 0 8 0 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 6 0 6 1 0 1 1 0 8 1 pffrent 40 2 0 2 1 0 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 12 0 2 1 0 1 1 0 8 0 pfstkey 112 12 0 2 1 0 1 1 0 8 0 pfstate 328 12 0 2 1 0 1 1 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 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 42 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1712 0 300 46 0 46 46 0 8 0 ffsino 272 1712 0 300 95 0 95 95 0 8 0 nchpl 144 2143 0 510 61 0 61 61 0 8 0 uvmvnodes 72 1768 0 0 33 0 33 33 0 8 0 vnodes 200 1768 0 0 94 0 94 94 0 8 0 namei 1024 5731 0 5730 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 5605 0 5605 11 10 1 6 0 8 1 sigapl 432 354 0 338 2 0 2 2 0 8 0 futexpl 56 1640 0 1639 1 0 1 1 0 8 0 knotepl 112 101 0 82 1 0 1 1 0 8 0 kqueuepl 104 67 0 64 1 0 1 1 0 8 0 pipepl 112 194 0 175 3 2 1 1 0 8 0 fdescpl 488 355 0 338 4 1 3 3 0 8 0 filepl 152 1964 0 1862 5 0 5 5 0 8 1 lockfpl 104 52 0 52 2 1 1 1 0 8 1 lockfspl 32 60 0 60 2 1 1 1 0 8 1 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 297 0 288 1 0 1 1 0 8 0 zombiepl 144 338 0 338 3 2 1 1 0 8 1 processpl 840 371 0 338 4 0 4 4 0 8 0 procpl 600 703 0 657 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 384 209 0 190 3 0 3 3 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 132 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 159 0 0 8 0 8 8 0 8 0 bufpl 256 6069 0 1143 308 0 308 308 0 8 0 anonpl 16 40740 0 32018 40 3 37 37 0 125 1 amapchunkpl 152 1679 0 1589 6 0 6 6 0 158 2 amappl16 192 1072 0 617 24 0 24 24 0 8 1 amappl15 184 128 0 122 1 0 1 1 0 8 0 amappl14 176 94 0 89 3 2 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 82 0 78 2 1 1 1 0 8 0 amappl11 152 23 0 8 1 0 1 1 0 8 0 amappl10 144 68 0 66 1 0 1 1 0 8 0 amappl9 136 586 0 583 1 0 1 1 0 8 0 amappl8 128 134 0 117 1 0 1 1 0 8 0 amappl7 120 29 0 26 1 0 1 1 0 8 0 amappl6 112 53 0 48 1 0 1 1 0 8 0 amappl5 104 178 0 160 1 0 1 1 0 8 0 amappl4 96 524 0 498 2 1 1 2 0 8 0 amappl3 88 187 0 179 1 0 1 1 0 8 0 amappl2 80 1979 0 1913 2 0 2 2 0 8 0 amappl1 72 17437 0 16967 26 16 10 20 0 8 0 amappl 72 935 0 897 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 355 0 338 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 355 0 338 1 0 1 1 0 8 0 vmmpekpl 168 6842 0 6817 2 0 2 2 0 8 0 vmmpepl 168 44978 0 43413 95 23 72 76 0 357 3 vmsppl 360 354 0 338 2 0 2 2 0 8 0 pdppl 4096 718 0 676 7 1 6 6 0 8 0 pvpl 32 150140 0 138088 121 16 105 105 0 265 7 pmappl 224 354 0 338 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 459 0 6 13 0 13 13 0 8 0