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 *205441 99650 32767 0x10 0x4000000 0 syz-executor.1 22249 59977 32767 0x10 0 1 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(ffff800020b38bd0,ffff800020c1b438) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c1b438) at namei+0x88b sys/kern/vfs_lookup.c:232 unp_bind(ffff800004d55880,fffffd8068bee500,ffff800020b38bd0) at unp_bind+0x1f8 sys/kern/uipc_usrreq.c:452 uipc_usrreq(fffffd806f6c4a80,2,0,fffffd8068bee500,0,ffff800020b38bd0) at uipc_usrreq+0x182 sys/kern/uipc_usrreq.c:131 sys_bind(ffff800020b38bd0,ffff800020c1b778,ffff800020c1b760) at sys_bind+0x1af sys/kern/uipc_syscalls.c:187 syscall(ffff800020c1b810) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1b810) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,fffffffffffffefd,0,3,317d5348010) at Xsyscall+0x128 end of kernel end trace frame: 0x31a87063060, count: 5 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(ffff800020b38bd0,ffff800020c1b438) at unveil_check_final+0x81d sys/kern/kern_unveil.c:879 namei(ffff800020c1b438) at namei+0x88b sys/kern/vfs_lookup.c:232 unp_bind(ffff800004d55880,fffffd8068bee500,ffff800020b38bd0) at unp_bind+0x1f8 sys/kern/uipc_usrreq.c:452 uipc_usrreq(fffffd806f6c4a80,2,0,fffffd8068bee500,0,ffff800020b38bd0) at uipc_usrreq+0x182 sys/kern/uipc_usrreq.c:131 sys_bind(ffff800020b38bd0,ffff800020c1b778,ffff800020c1b760) at sys_bind+0x1af sys/kern/uipc_syscalls.c:187 syscall(ffff800020c1b810) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1b810) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,fffffffffffffefd,0,3,317d5348010) at Xsyscall+0x128 end of kernel end trace frame: 0x31a87063060, count: -10 ddb{0}> show registers rdi 0xffffffff81266357 db_enter+0x17 rsi 0x38cf __ALIGN_SIZE+0x28cf rbp 0xffff800020c1b1d0 rbx 0xffff800020c1b280 rdx 0x38d0 __ALIGN_SIZE+0x28d0 rcx 0xffff80000114a000 rax 0xffff80000114a000 r8 0xffffffff813481d3 kprintf+0x183 r9 0x1 r10 0x25 r11 0xe5d0a3062f1feb54 r12 0x3000000008 r13 0xffff800020c1b1e0 r14 0x100 r15 0x1 rip 0xffffffff81266358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c1b1c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=205441 stat=onproc flags process=10 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020b399e0,0xffff800020b384d8 process=0xffff800020b3b078 user=0xffff800020c16000, vmspace=0xfffffd807effe708 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 56849 327212 59977 32767 2 0x10 syz-executor.0 56849 431623 59977 32767 2 0x4000010 syz-executor.0 99650 171572 11330 32767 2 0x10 syz-executor.1 *99650 205441 11330 32767 7 0x4000010 syz-executor.1 11330 370801 61697 32767 3 0x90 nanosleep syz-executor.1 61697 247264 51209 0 3 0x82 wait syz-executor.1 59977 22249 33353 32767 7 0x10 syz-executor.0 33353 25740 51209 0 3 0x82 wait syz-executor.0 10531 287219 0 0 3 0x14200 bored sosplice 51209 294390 18449 0 3 0x82 thrsleep syz-fuzzer 51209 281697 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 218176 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 315401 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 493964 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 403137 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 333523 18449 0 3 0x4000082 kqread syz-fuzzer 51209 437645 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 159847 18449 0 3 0x4000082 thrsleep syz-fuzzer 51209 136187 18449 0 3 0x4000082 thrsleep syz-fuzzer 18449 294512 16026 0 3 0x10008a pause ksh 16026 49561 63678 0 3 0x92 select sshd 77609 133242 1 0 3 0x100083 ttyin getty 63678 12626 1 0 3 0x80 select sshd 73924 193108 73967 73 3 0x100090 kqread syslogd 73967 179420 1 0 3 0x100082 netio syslogd 56922 421592 1 77 3 0x100090 poll dhclient 41467 304950 1 0 3 0x80 poll dhclient 87416 251432 0 0 2 0x14200 zerothread 73106 72295 0 0 3 0x14200 aiodoned aiodoned 39891 241819 0 0 3 0x14200 syncer update 84727 414858 0 0 3 0x14200 cleaner cleaner 16135 168843 0 0 3 0x14200 reaper reaper 49166 305919 0 0 3 0x14200 pgdaemon pagedaemon 58044 215679 0 0 3 0x14200 bored crynlk 55406 253889 0 0 3 0x14200 bored crypto 52386 69138 0 0 3 0x40014200 acpi0 acpi0 49169 455971 0 0 3 0x40014200 idle1 70246 149825 0 0 3 0x14200 bored softnet 79365 104654 0 0 3 0x14200 bored systqmp 67703 238141 0 0 3 0x14200 bored systq 3449 221508 0 0 2 0x40014200 softclock 94584 132897 0 0 3 0x40014200 idle0 11112 454991 0 0 3 0x14200 bored smr 1 346330 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 99650 (syz-executor.1) thread 0xffff800020b38bd0 (205441) exclusive rrwlock inode r = 0 (0xfffffd806947b1a8) 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 unp_bind+0x1f8 sys/kern/uipc_usrreq.c:452 #8 uipc_usrreq+0x182 sys/kern/uipc_usrreq.c:131 #9 sys_bind+0x1af sys/kern/uipc_syscalls.c:187 #10 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #10 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #11 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82397440) locked @ /syzkaller/managers/setuid/kernel/sys/kern/uipc_socket2.c:288 #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 9460 6321K 6321K 78643K 10782 0 0 pcb 25 9K 10K 78643K 472 0 0 rtable 97 3K 3K 78643K 1694 0 0 ifaddr 36 11K 11K 78643K 324 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 70 0 0 iov 0 0K 24K 78643K 116 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 3765 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 0K 78643K 763 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 8 25K 29K 78643K 2371 0 0 sigio 0 0K 0K 78643K 13 0 0 proc 44 50K 58K 78643K 1368 0 0 subproc 68 69634K 69634K 78643K 1666 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 593 0 0 in_multi 33 2K 2K 78643K 1194 0 0 ether_multi 1 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 435 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 31K 78643K 7605 0 0 UVM aobj 71 5K 5K 78643K 76 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 64 0 0 NDP 7 0K 0K 78643K 150 0 0 temp 121 2378K 2444K 78643K 10910 0 0 kqueue 0 0K 0K 78643K 10 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 51 0 47 1 0 1 1 0 8 0 inpcbpl 280 1218 0 1211 1 0 1 1 0 8 0 plimitpl 152 152 0 143 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 464 0 424 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpqe 32 28 0 28 1 1 0 1 0 8 0 tcpcb 544 910 0 906 1 0 1 1 0 8 0 nd6 48 98 0 94 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2152 0 1965 12 0 12 12 0 8 0 art_table 32 2153 0 1965 2 0 2 2 0 8 0 art_node 16 463 0 429 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 1 1 0 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 761 0 751 1 0 1 1 0 8 0 shmpl 112 74 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5417 0 3947 48 0 48 48 0 8 0 ffsino 272 5417 0 3947 100 1 99 99 0 8 0 nchpl 144 8351 0 6712 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 32342 0 32341 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 19316 0 19316 12 9 3 6 0 8 3 sigapl 432 2400 0 2384 2 0 2 2 0 8 0 futexpl 56 25871 0 25871 1 0 1 1 0 8 1 knotepl 112 1321 0 1302 1 0 1 1 0 8 0 kqueuepl 104 315 0 313 1 0 1 1 0 8 0 pipepl 112 1268 0 1249 6 5 1 2 0 8 0 fdescpl 488 2401 0 2384 3 0 3 3 0 8 0 filepl 152 19576 0 19478 12 7 5 7 0 8 1 lockfpl 104 215 0 215 7 6 1 1 0 8 1 lockfspl 32 387 0 387 7 6 1 1 0 8 1 sessionpl 112 64 0 54 1 0 1 1 0 8 0 pgrppl 48 82 0 72 1 0 1 1 0 8 0 ucredpl 96 10429 0 10420 1 0 1 1 0 8 0 zombiepl 144 2384 0 2384 3 2 1 1 0 8 1 processpl 840 2417 0 2384 4 0 4 4 0 8 0 procpl 600 6122 0 6078 4 0 4 4 0 8 0 srpgc 64 276 0 276 6 5 1 1 0 8 1 sosppl 128 6 0 6 3 3 0 1 0 8 0 sockpl 384 1710 0 1691 9 6 3 3 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 21 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 137 0 0 16 0 16 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 895 0 0 56 1 55 55 0 8 0 bufpl 256 8701 0 1682 439 0 439 439 0 8 0 anonpl 16 232321 0 226596 91 51 40 44 0 125 10 amapchunkpl 152 14922 0 14839 29 24 5 11 0 158 1 amappl16 192 9517 0 9128 87 59 28 32 0 8 8 amappl15 184 722 0 718 1 0 1 1 0 8 0 amappl14 176 309 0 304 3 2 1 1 0 8 0 amappl13 168 287 0 283 1 0 1 1 0 8 0 amappl12 160 331 0 329 2 1 1 1 0 8 0 amappl11 152 745 0 729 1 0 1 1 0 8 0 amappl10 144 367 0 363 3 2 1 1 0 8 0 amappl9 136 1344 0 1339 1 0 1 1 0 8 0 amappl8 128 1010 0 986 1 0 1 1 0 8 0 amappl7 120 290 0 283 1 0 1 1 0 8 0 amappl6 112 733 0 726 1 0 1 1 0 8 0 amappl5 104 448 0 438 1 0 1 1 0 8 0 amappl4 96 2487 0 2458 2 1 1 2 0 8 0 amappl3 88 315 0 310 1 0 1 1 0 8 0 amappl2 80 18559 0 18497 2 0 2 2 0 8 0 amappl1 72 65174 0 64715 24 14 10 19 0 8 0 amappl 72 6716 0 6681 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 75 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2401 0 2384 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2401 0 2384 1 0 1 1 0 8 0 vmmpekpl 168 20545 0 20523 2 0 2 2 0 8 0 vmmpepl 168 274480 0 272955 122 44 78 79 0 357 11 vmsppl 360 2400 0 2384 2 0 2 2 0 8 0 pdppl 4096 4810 0 4768 6 0 6 6 0 8 0 pvpl 32 669963 0 660862 219 108 111 119 0 265 27 pmappl 224 2400 0 2384 6 5 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 645 0 6 19 0 19 19 0 8 0