login: 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 285232 82597 0 0 0 1 syz-executor.0 *402892 49281 0 0 0x4000000 0K 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(ffff800020b759e0,ffff800020bf59d8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020bf59d8) at namei+0x88b sys/kern/vfs_lookup.c:232 dorenameat(ffff800020b759e0,ffffff9c,20000000,ffffff9c,0) at dorenameat+0x8a sys/kern/vfs_syscalls.c:2758 syscall(ffff800020bf5c00) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bf5c00) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffc2,0,2,f686fa910d8) at Xsyscall+0x128 end of kernel end trace frame: 0xf6a95554e50, 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(ffff800020b759e0,ffff800020bf59d8) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020bf59d8) at namei+0x88b sys/kern/vfs_lookup.c:232 dorenameat(ffff800020b759e0,ffffff9c,20000000,ffffff9c,0) at dorenameat+0x8a sys/kern/vfs_syscalls.c:2758 syscall(ffff800020bf5c00) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bf5c00) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffc2,0,2,f686fa910d8) at Xsyscall+0x128 end of kernel end trace frame: 0xf6a95554e50, count: -8 ddb{0}> show registers rdi 0xffffffff81e2e757 db_enter+0x17 rsi 0x37b9 __ALIGN_SIZE+0x27b9 rbp 0xffff800020bf56b0 rbx 0xffff800020bf5760 rdx 0x37ba __ALIGN_SIZE+0x27ba rcx 0xffff800002d66000 rax 0xffff800002d66000 r8 0xffffffff811c43a3 kprintf+0x183 r9 0x1 r10 0x25 r11 0xa441b8ceac08b381 r12 0x3000000008 r13 0xffff800020bf56c0 r14 0x100 r15 0x1 rip 0xffffffff81e2e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020bf56a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=402892 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b75788,0xffff800020b74be0 process=0xffff800020b8c6a8 user=0xffff800020bf0000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82597 285232 13741 0 7 0 syz-executor.0 82597 475661 13741 0 2 0x4000000 syz-executor.0 82597 442957 13741 0 2 0x4000000 syz-executor.0 49281 154650 52087 0 2 0 syz-executor.1 49281 82201 52087 0 2 0x4000000 syz-executor.1 *49281 402892 52087 0 7 0x4000000 syz-executor.1 13741 365078 16926 0 2 0x482 syz-executor.0 76339 268935 1 0 3 0x100083 ttyin getty 27760 126067 0 0 3 0x14200 bored sosplice 52087 89757 16926 0 2 0x482 syz-executor.1 16926 12498 26701 0 3 0x82 thrsleep syz-fuzzer 16926 203466 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 204648 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 411648 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 91683 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 442601 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 124853 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 189575 26701 0 3 0x4000082 thrsleep syz-fuzzer 16926 305125 26701 0 3 0x4000082 kqread syz-fuzzer 16926 415139 26701 0 3 0x4000082 thrsleep syz-fuzzer 26701 68760 47459 0 3 0x10008a pause ksh 47459 410985 5143 0 3 0x92 select sshd 5143 218243 1 0 3 0x80 select sshd 54511 299480 70345 74 3 0x100092 bpf pflogd 70345 9145 1 0 3 0x80 netio pflogd 46139 296501 79247 73 3 0x100090 kqread syslogd 79247 66834 1 0 3 0x100082 netio syslogd 50097 350230 1 77 3 0x100090 poll dhclient 37363 105348 1 0 3 0x80 poll dhclient 59924 465892 0 0 2 0x14200 zerothread 62860 142241 0 0 3 0x14200 aiodoned aiodoned 65779 309757 0 0 3 0x14200 syncer update 15052 311773 0 0 3 0x14200 cleaner cleaner 69343 270249 0 0 3 0x14200 reaper reaper 86222 522665 0 0 3 0x14200 pgdaemon pagedaemon 80314 427830 0 0 3 0x14200 bored crynlk 13016 53125 0 0 3 0x14200 bored crypto 34401 146067 0 0 3 0x40014200 acpi0 acpi0 10940 80902 0 0 3 0x40014200 idle1 60388 485517 0 0 3 0x14200 bored softnet 77344 159097 0 0 3 0x14200 bored systqmp 50470 50086 0 0 3 0x14200 bored systq 6652 60420 0 0 3 0x40014200 bored softclock 36720 320805 0 0 3 0x40014200 idle0 68352 392899 0 0 3 0x14200 bored smr 1 202651 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 49281 (syz-executor.1) thread 0xffff800020b759e0 (402892) 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 9508 10502K 10505K 78643K 10662 0 0 pcb 25 9K 10K 78643K 177 0 0 rtable 100 3K 4K 78643K 314 0 0 ifaddr 55 12K 12K 78643K 88 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1474 0 0 iov 0 0K 16K 78643K 30 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1344 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 0K 0K 78643K 46 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 253 0 0 sigio 0 0K 0K 78643K 10 0 0 proc 56 63K 71K 78643K 431 0 0 subproc 64 65538K 67586K 78643K 170 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 43 0 0 in_multi 33 2K 2K 78643K 79 0 0 ether_multi 1 0K 0K 78643K 6 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 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 219 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 82 20K 29K 78643K 1646 0 0 UVM aobj 9 2K 2K 78643K 10 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 10 0 0 NDP 13 0K 0K 78643K 27 0 0 temp 132 2367K 2434K 78643K 3989 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 7 0 3 1 0 1 1 0 8 0 inpcbpl 280 168 0 161 1 0 1 1 0 8 0 plimitpl 152 24 0 16 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 70 0 30 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 58 0 54 1 0 1 1 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 ppxss 1128 3 0 3 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 16 0 3 1 0 1 1 0 8 0 pfstkey 112 16 0 3 1 0 1 1 0 8 0 pfstate 328 16 0 3 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 309 0 123 12 0 12 12 0 8 0 art_table 32 310 0 123 2 0 2 2 0 8 0 art_node 16 69 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 42 0 32 1 0 1 1 0 8 0 shmpl 112 8 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1819 0 386 47 0 47 47 0 8 0 ffsino 272 1819 0 386 96 0 96 96 0 8 0 nchpl 144 2393 0 755 61 0 61 61 0 8 0 uvmvnodes 72 1925 0 0 35 0 35 35 0 8 0 vnodes 200 1925 0 0 102 0 102 102 0 8 0 namei 1024 6721 0 6720 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 6219 0 6219 10 6 4 7 0 8 4 sigapl 432 444 0 428 2 0 2 2 0 8 0 futexpl 56 2951 0 2951 1 0 1 1 0 8 1 knotepl 112 152 0 133 1 0 1 1 0 8 0 kqueuepl 104 51 0 49 1 0 1 1 0 8 0 pipepl 112 258 0 239 1 0 1 1 0 8 0 fdescpl 488 445 0 428 3 0 3 3 0 8 0 filepl 152 2497 0 2397 5 0 5 5 0 8 1 lockfpl 104 103 0 102 2 1 1 1 0 8 0 lockfspl 32 143 0 142 2 1 1 1 0 8 0 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 434 0 425 1 0 1 1 0 8 0 zombiepl 144 428 0 428 1 0 1 1 0 8 1 processpl 840 461 0 428 4 0 4 4 0 8 0 procpl 600 922 0 876 4 0 4 4 0 8 0 srpgc 64 20 0 20 1 0 1 1 0 8 1 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 384 304 0 285 3 0 3 3 0 8 1 mcl64k 65536 372 0 0 47 0 47 47 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 119 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 457 0 0 27 0 27 27 0 8 0 bufpl 256 6103 0 1143 310 0 310 310 0 8 0 anonpl 16 54183 0 46922 48 2 46 46 0 125 10 amapchunkpl 152 2232 0 2149 10 3 7 9 0 158 2 amappl16 192 1717 0 1259 34 0 34 34 0 8 11 amappl15 184 130 0 124 1 0 1 1 0 8 0 amappl14 176 33 0 30 1 0 1 1 0 8 0 amappl13 168 32 0 28 1 0 1 1 0 8 0 amappl12 160 18 0 15 1 0 1 1 0 8 0 amappl11 152 113 0 98 1 0 1 1 0 8 0 amappl10 144 84 0 81 1 0 1 1 0 8 0 amappl9 136 649 0 642 1 0 1 1 0 8 0 amappl8 128 198 0 183 1 0 1 1 0 8 0 amappl7 120 47 0 42 1 0 1 1 0 8 0 amappl6 112 138 0 131 1 0 1 1 0 8 0 amappl5 104 109 0 95 1 0 1 1 0 8 0 amappl4 96 685 0 652 2 0 2 2 0 8 0 amappl3 88 121 0 116 1 0 1 1 0 8 0 amappl2 80 2734 0 2670 2 0 2 2 0 8 0 amappl1 72 19033 0 18570 27 17 10 20 0 8 0 amappl 72 1176 0 1141 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 445 0 428 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 445 0 428 1 0 1 1 0 8 0 vmmpekpl 168 7605 0 7579 2 0 2 2 0 8 0 vmmpepl 168 55468 0 53912 96 12 84 84 0 357 16 vmsppl 360 444 0 428 2 0 2 2 0 8 0 pdppl 4096 898 0 856 6 0 6 6 0 8 0 pvpl 32 181890 0 171287 125 3 122 122 0 265 24 pmappl 224 444 0 428 3 1 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 524 0 3 15 0 15 15 0 8 0