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 345991 72809 0 0 0x4000000 1 syz-executor.0 *246525 72809 0 0 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(ffffffff81f7e6d6,ffffffff81f80d6e,36f,ffffffff81f8ba8b) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b38018,ffff800020c4f6d0) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c4f6d0) at namei+0x88b sys/kern/vfs_lookup.c:232 sys_chroot(ffff800020b38018,ffff800020c4f848,ffff800020c4f830) at sys_chroot+0x93 change_dir sys/kern/vfs_syscalls.c:856 [inline] sys_chroot(ffff800020b38018,ffff800020c4f848,ffff800020c4f830) at sys_chroot+0x93 sys/kern/vfs_syscalls.c:829 syscall(ffff800020c4f8e0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c4f8e0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff06,0,1,1bc9f6881a0) at Xsyscall+0x128 end of kernel end trace frame: 0x1bf6ed33720, 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(ffffffff81f7e6d6,ffffffff81f80d6e,36f,ffffffff81f8ba8b) at __assert+0x2e sys/kern/subr_prf.c:155 unveil_check_final(ffff800020b38018,ffff800020c4f6d0) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c4f6d0) at namei+0x88b sys/kern/vfs_lookup.c:232 sys_chroot(ffff800020b38018,ffff800020c4f848,ffff800020c4f830) at sys_chroot+0x93 change_dir sys/kern/vfs_syscalls.c:856 [inline] sys_chroot(ffff800020b38018,ffff800020c4f848,ffff800020c4f830) at sys_chroot+0x93 sys/kern/vfs_syscalls.c:829 syscall(ffff800020c4f8e0) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c4f8e0) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff06,0,1,1bc9f6881a0) at Xsyscall+0x128 end of kernel end trace frame: 0x1bf6ed33720, count: -8 ddb{0}> show registers rdi 0xffffffff814367b7 db_enter+0x17 rsi 0x3bfd __ALIGN_SIZE+0x2bfd rbp 0xffff800020c4f470 rbx 0xffff800020c4f520 rdx 0x3bfe __ALIGN_SIZE+0x2bfe rcx 0xffff800000d66000 rax 0xffff800000d66000 r8 0xffffffff818d1a13 kprintf+0x183 r9 0x1 r10 0x25 r11 0xa665a9700e1b9589 r12 0x3000000008 r13 0xffff800020c4f480 r14 0x100 r15 0x1 rip 0xffffffff814367b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c4f460 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=246525 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=55, nice=20 forw=0xffffffffffffffff, list=0xffff800020b392d8,0xffff800020b38988 process=0xffff800020b8c018 user=0xffff800020c4a000, vmspace=0xfffffd807effd708 estcpu=5, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72809 65418 99078 0 2 0x480 syz-executor.0 72809 501931 99078 0 3 0x4000080 fsleep syz-executor.0 72809 345991 99078 0 7 0x4000000 syz-executor.0 *72809 246525 99078 0 7 0x4000000 syz-executor.0 72809 187577 99078 0 3 0x4000080 fsleep syz-executor.0 25929 458806 28163 0 3 0x82 piperd syz-executor.1 99078 425774 28163 0 2 0x482 syz-executor.0 28163 314406 14741 0 3 0x82 thrsleep syz-fuzzer 28163 65489 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 23683 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 403827 14741 0 3 0x4000082 kqread syz-fuzzer 28163 135094 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 227682 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 330509 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 232572 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 522817 14741 0 3 0x4000082 thrsleep syz-fuzzer 28163 133395 14741 0 3 0x4000082 thrsleep syz-fuzzer 14741 304406 19236 0 3 0x10008a pause ksh 19236 447057 96886 0 3 0x92 select sshd 92695 118536 1 0 3 0x100083 ttyin getty 96886 68423 1 0 3 0x80 select sshd 87103 76723 14104 74 3 0x100092 bpf pflogd 14104 442968 1 0 3 0x80 netio pflogd 94504 163100 2428 73 3 0x100090 kqread syslogd 2428 411153 1 0 3 0x100082 netio syslogd 16153 246803 1 77 3 0x100090 poll dhclient 83459 114895 1 0 3 0x80 poll dhclient 25886 163579 0 0 3 0x14200 pgzero zerothread 4853 34964 0 0 3 0x14200 aiodoned aiodoned 67709 486693 0 0 3 0x14200 syncer update 91047 391478 0 0 3 0x14200 cleaner cleaner 53291 428173 0 0 3 0x14200 reaper reaper 34870 261523 0 0 3 0x14200 pgdaemon pagedaemon 42544 470082 0 0 3 0x14200 bored crynlk 54991 431158 0 0 3 0x14200 bored crypto 75281 338193 0 0 3 0x40014200 acpi0 acpi0 96769 145228 0 0 3 0x40014200 idle1 15665 159823 0 0 3 0x14200 bored softnet 80758 360921 0 0 3 0x14200 bored systqmp 93120 3669 0 0 3 0x14200 bored systq 75958 56865 0 0 3 0x40014200 bored softclock 89575 243821 0 0 3 0x40014200 idle0 812 253345 0 0 3 0x14200 bored smr 1 274953 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 72809 (syz-executor.0) thread 0xffff800020b38018 (246525) exclusive rrwlock inode r = 0 (0xfffffd8068861700) 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 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 cache_lookup+0x300 sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1d7 sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x67 sys/kern/vfs_vops.c:90 #9 vfs_lookup+0x556 sys/kern/vfs_lookup.c:523 #10 namei+0x4b2 sys/kern/vfs_lookup.c:224 #11 sys_chroot+0x93 change_dir sys/kern/vfs_syscalls.c:856 [inline] #11 sys_chroot+0x93 sys/kern/vfs_syscalls.c:829 #12 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #12 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #13 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82349ce8) locked @ /syzkaller/managers/multicore/kernel/sys/kern/sched_bsd.c:439 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 ___mp_acquire_count+0x67 sys/kern/kern_lock.c:231 #2 mi_switch+0x3ca sys/kern/sched_bsd.c:439 #3 sleep_finish+0x110 sys/kern/kern_synch.c:312 #4 _rw_enter+0x355 sys/kern/kern_rwlock.c:256 #5 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #6 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #7 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #8 vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387 #9 namei+0x4b2 sys/kern/vfs_lookup.c:224 #10 sys_chroot+0x93 change_dir sys/kern/vfs_syscalls.c:856 [inline] #10 sys_chroot+0x93 sys/kern/vfs_syscalls.c:829 #11 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #11 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #12 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9470 6390K 6398K 78643K 10565 0 0 pcb 25 9K 10K 78643K 67 0 0 rtable 97 3K 3K 78643K 179 0 0 ifaddr 42 10K 10K 78643K 43 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 iov 0 0K 28K 78643K 5 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1212 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 6 0K 0K 78643K 6 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 30 0 0 proc 55 62K 71K 78643K 323 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 4 0 0 in_multi 33 2K 2K 78643K 34 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 30 132K 132K 78643K 30 0 0 exec 0 0K 1K 78643K 194 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 85 20K 21K 78643K 932 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 NDP 11 0K 0K 78643K 11 0 0 temp 100 2365K 2429K 78643K 3204 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 44 0 37 1 0 1 1 0 8 0 plimitpl 152 16 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 15 0 11 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 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 184 0 0 12 0 12 12 0 8 0 art_table 32 185 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1459 0 43 46 0 46 46 0 8 0 ffsino 272 1459 0 43 95 0 95 95 0 8 0 nchpl 144 1703 0 73 61 0 61 61 0 8 0 uvmvnodes 72 1505 0 0 28 0 28 28 0 8 0 vnodes 200 1505 0 0 80 0 80 80 0 8 0 namei 1024 4300 0 4299 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4317 0 4317 7 2 5 6 0 8 5 sigapl 432 229 0 214 2 0 2 2 0 8 0 futexpl 56 250 0 248 1 0 1 1 0 8 0 knotepl 112 47 0 28 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 162 0 143 2 1 1 1 0 8 0 fdescpl 488 230 0 214 3 0 3 3 0 8 0 filepl 152 1157 0 1056 5 0 5 5 0 8 1 lockfpl 104 11 0 10 2 1 1 1 0 8 0 lockfspl 32 6 0 5 2 1 1 1 0 8 0 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 51 0 42 1 0 1 1 0 8 0 zombiepl 144 214 0 214 2 1 1 1 0 8 1 processpl 840 245 0 214 4 0 4 4 0 8 0 procpl 600 280 0 236 4 0 4 4 0 8 0 sockpl 384 94 0 75 3 0 3 3 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 118 0 0 14 0 14 14 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 136 0 0 8 0 8 8 0 8 0 bufpl 256 5728 0 1143 287 0 287 287 0 8 0 anonpl 16 30291 0 21730 37 2 35 35 0 125 0 amapchunkpl 152 900 0 798 6 0 6 6 0 158 0 amappl16 192 539 0 103 22 0 22 22 0 8 0 amappl15 184 57 0 53 1 0 1 1 0 8 0 amappl14 176 27 0 23 2 1 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 18 0 16 1 0 1 1 0 8 0 amappl11 152 26 0 10 1 0 1 1 0 8 0 amappl10 144 74 0 69 1 0 1 1 0 8 0 amappl9 136 586 0 580 1 0 1 1 0 8 0 amappl8 128 135 0 121 1 0 1 1 0 8 0 amappl7 120 28 0 26 1 0 1 1 0 8 0 amappl6 112 63 0 54 1 0 1 1 0 8 0 amappl5 104 114 0 100 1 0 1 1 0 8 0 amappl4 96 458 0 428 2 0 2 2 0 8 1 amappl3 88 117 0 111 1 0 1 1 0 8 0 amappl2 80 830 0 776 2 0 2 2 0 8 0 amappl1 72 14411 0 13964 25 7 18 20 0 8 8 amappl 72 522 0 482 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 230 0 214 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 230 0 214 1 0 1 1 0 8 0 vmmpekpl 168 5972 0 5950 2 0 2 2 0 8 0 vmmpepl 168 32206 0 30751 85 10 75 75 0 357 10 vmsppl 360 229 0 214 2 0 2 2 0 8 0 pdppl 4096 468 0 428 6 0 6 6 0 8 0 pvpl 32 119114 0 107313 107 3 104 104 0 265 8 pmappl 224 229 0 214 2 0 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 437 0 4 13 0 13 13 0 8 0