login: panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 879 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 310745 33380 32767 0x10 0 1 syz-executor.0 *129668 33380 32767 0x10 0x4000000 0K 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(ffffffff81f7c61c,ffffffff81f2d7dd,36f,ffffffff81f8730a) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b74720,ffff800020c3ce88) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c3ce88) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b74720,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c3d140) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3d140) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,c496870b0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xc4c28651be0, 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/setuid/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(ffffffff81f7c61c,ffffffff81f2d7dd,36f,ffffffff81f8730a) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b74720,ffff800020c3ce88) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c3ce88) at namei+0x88b sys/kern/vfs_lookup.c:232 domkdirat(ffff800020b74720,ffffff9c,20000000,0) at domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 syscall(ffff800020c3d140) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3d140) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff94,0,2,c496870b0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xc4c28651be0, count: -8 ddb{0}> show registers rdi 0xffffffff81266357 db_enter+0x17 rsi 0x4b68 __ALIGN_SIZE+0x3b68 rbp 0xffff800020c3cc30 rbx 0xffff800020c3cce0 rdx 0x4b69 __ALIGN_SIZE+0x3b69 rcx 0xffff800000b4a000 rax 0xffff800000b4a000 r8 0xffffffff813481d3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x767a09c2656535ad r12 0x3000000008 r13 0xffff800020c3cc40 r14 0x100 r15 0x1 rip 0xffffffff81266358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c3cc20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=129668 stat=onproc flags process=10 proc=4000000 pri=62, usrpri=62, nice=20 forw=0xffffffffffffffff, list=0xffff800020b74e28,0xffffffff8235ec20 process=0xffff800020b3b078 user=0xffff800020c38000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33380 310745 61736 32767 7 0x10 syz-executor.0 33380 99942 61736 32767 2 0x4000010 syz-executor.0 *33380 129668 61736 32767 7 0x4000010 syz-executor.0 13020 65726 59023 32767 2 0x10 syz-executor.1 59023 42801 42876 0 3 0x82 wait syz-executor.1 61736 462523 36686 32767 2 0x490 syz-executor.0 36686 475591 42876 0 3 0x82 wait syz-executor.0 42876 470706 52270 0 3 0x82 thrsleep syz-fuzzer 42876 416701 52270 0 2 0x4000482 syz-fuzzer 42876 140261 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 73153 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 226061 52270 0 2 0x4000482 syz-fuzzer 42876 256367 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 396497 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 2671 52270 0 3 0x4000082 kqread syz-fuzzer 42876 308095 52270 0 3 0x4000082 thrsleep syz-fuzzer 42876 207430 52270 0 3 0x4000082 thrsleep syz-fuzzer 52270 301011 9554 0 3 0x10008a pause ksh 9554 256521 25471 0 3 0x92 select sshd 28531 240945 1 0 3 0x100083 ttyin getty 25471 319537 1 0 3 0x80 select sshd 22537 483142 58062 73 3 0x100090 kqread syslogd 58062 190411 1 0 3 0x100082 netio syslogd 68725 425764 1 77 3 0x100090 poll dhclient 57893 195400 1 0 3 0x80 poll dhclient 82709 344934 0 0 3 0x14200 pgzero zerothread 77044 198387 0 0 3 0x14200 aiodoned aiodoned 54621 4571 0 0 3 0x14200 syncer update 77611 338028 0 0 3 0x14200 cleaner cleaner 35260 83772 0 0 3 0x14200 reaper reaper 6963 308823 0 0 3 0x14200 pgdaemon pagedaemon 8831 2266 0 0 3 0x14200 bored crynlk 87059 325165 0 0 3 0x14200 bored crypto 44145 202769 0 0 3 0x40014200 acpi0 acpi0 14087 225036 0 0 3 0x40014200 idle1 65143 392960 0 0 3 0x14200 bored softnet 41459 82249 0 0 3 0x14200 bored systqmp 99844 154217 0 0 3 0x14200 bored systq 68910 314861 0 0 3 0x40014200 bored softclock 76644 226054 0 0 3 0x40014200 idle0 72606 164926 0 0 3 0x14200 bored smr 1 37069 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33380 (syz-executor.0) thread 0xffff800020b74720 (129668) exclusive rrwlock inode r = 0 (0xfffffd807e412700) locked @ /syzkaller/managers/setuid/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 (0xffffffff82397440) locked @ /syzkaller/managers/setuid/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 Process 13020 (syz-executor.1) thread 0xffff800020b74270 (65726) exclusive rrwlock inode r = 0 (0xfffffd807e4124e0) locked @ /syzkaller/managers/setuid/kernel/sys/ufs/ufs/ufs_ihash.c:140 #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 ufs_ihashins+0x6d sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x143 sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0x10f sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0x76 sys/kern/vfs_vops.c:449 #8 domkdirat+0x12d sys/kern/vfs_syscalls.c:2881 #9 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #9 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807e4122c0) locked @ /syzkaller/managers/setuid/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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9456 6320K 6320K 78643K 10548 0 0 pcb 23 9K 9K 78643K 57 0 0 rtable 97 3K 3K 78643K 199 0 0 ifaddr 34 9K 9K 78643K 40 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 16 0 0 iov 0 0K 12K 78643K 3 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1225 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 7 21K 33K 78643K 59 0 0 proc 46 50K 58K 78643K 276 0 0 subproc 68 69634K 69634K 78643K 102 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 44 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 170 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 77 20K 20K 78643K 887 0 0 UVM aobj 2 2K 2K 78643K 2 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 5 0 0 NDP 7 0K 0K 78643K 12 0 0 temp 82 2364K 2430K 78643K 3029 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 5 0 1 1 0 1 1 0 8 0 inpcbpl 280 50 0 43 1 0 1 1 0 8 0 plimitpl 152 18 0 9 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 50 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpcb 544 16 0 12 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 226 0 41 12 0 12 12 0 8 0 art_table 32 227 0 41 2 0 2 2 0 8 0 art_node 16 49 0 15 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1467 0 55 46 0 46 46 0 8 0 ffsino 272 1467 0 55 95 0 95 95 0 8 0 nchpl 144 1736 0 109 61 0 61 61 0 8 0 uvmvnodes 72 1527 0 0 28 0 28 28 0 8 0 vnodes 200 1527 0 0 81 0 81 81 0 8 0 namei 1024 4186 0 4184 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4247 0 4247 8 7 1 6 0 8 1 sigapl 432 226 0 211 3 0 3 3 0 8 1 futexpl 56 256 0 256 1 0 1 1 0 8 1 knotepl 112 73 0 54 1 0 1 1 0 8 0 kqueuepl 104 12 0 10 1 0 1 1 0 8 0 pipepl 112 150 0 131 3 2 1 1 0 8 0 fdescpl 488 227 0 211 3 0 3 3 0 8 0 filepl 152 1092 0 996 6 1 5 5 0 8 1 lockfpl 104 8 0 8 2 1 1 1 0 8 1 lockfspl 32 4 0 4 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 85 0 76 1 0 1 1 0 8 0 zombiepl 144 211 0 211 3 2 1 1 0 8 1 processpl 840 242 0 211 4 0 4 4 0 8 0 procpl 600 300 0 258 4 0 4 4 0 8 0 srpgc 64 6 0 6 1 0 1 1 0 8 1 sockpl 384 96 0 79 3 0 3 3 0 8 1 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 114 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 150 0 0 9 0 9 9 0 8 0 bufpl 256 5582 0 1122 279 0 279 279 0 8 0 anonpl 16 28137 0 22215 29 1 28 28 0 125 1 amapchunkpl 152 896 0 809 5 0 5 5 0 158 1 amappl16 192 488 0 178 17 0 17 17 0 8 1 amappl15 184 50 0 45 1 0 1 1 0 8 0 amappl14 176 55 0 49 3 2 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 35 0 29 2 1 1 1 0 8 0 amappl11 152 22 0 11 1 0 1 1 0 8 0 amappl10 144 61 0 58 3 2 1 1 0 8 0 amappl9 136 546 0 543 1 0 1 1 0 8 0 amappl8 128 124 0 108 1 0 1 1 0 8 0 amappl7 120 30 0 24 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 130 0 118 1 0 1 1 0 8 0 amappl4 96 401 0 375 2 0 2 2 0 8 1 amappl3 88 141 0 134 1 0 1 1 0 8 0 amappl2 80 901 0 849 2 0 2 2 0 8 0 amappl1 72 13167 0 12718 23 5 18 19 0 8 8 amappl 72 513 0 478 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 211 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 211 1 0 1 1 0 8 0 vmmpekpl 168 5742 0 5721 2 0 2 2 0 8 0 vmmpepl 168 30877 0 29522 95 23 72 72 0 357 13 vmsppl 360 226 0 211 2 0 2 2 0 8 0 pdppl 4096 462 0 422 6 0 6 6 0 8 0 pvpl 32 113001 0 103891 112 10 102 102 0 265 24 pmappl 224 226 0 211 2 0 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 426 0 4 13 0 13 13 0 8 0