login: panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020afba48) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b384c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b384c8,ffff800020c232f0,ffff800020c23360) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c233d0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c233d0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd2888) at Xsyscall+0x128 end trace frame: 0x0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020afba48) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b384c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b384c8,ffff800020c232f0,ffff800020c23360) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c233d0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c233d0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd2888) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c230f0 rbx 0xffff800020c231a0 rdx 0xffff800020b384c8 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xa3a55569c74bddd1 r12 0x3000000008 r13 0xffff800020c23100 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c230e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=11215 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b39c38,0xffffffff82341258 process=0xffff800020afba48 user=0xffff800020c1e000, vmspace=0xfffffd807effe168 estcpu=36, cpticks=7, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1137 13671 86786 0 3 0x82 nanosleep syz-executor.1 75288 351965 1 0 3 0x100083 ttyin getty 12551 299177 86786 0 3 0x82 nanosleep syz-executor.0 12705 388233 0 0 3 0x14200 bored sosplice 86786 76961 765 0 3 0x82 thrsleep syz-fuzzer 86786 428616 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 63841 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 444334 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 280862 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 81880 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 323421 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 51488 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 172410 765 0 3 0x4000082 thrsleep syz-fuzzer 86786 319192 765 0 3 0x4000082 kqread syz-fuzzer 765 370684 85615 0 3 0x10008a pause ksh 85615 512311 2689 0 3 0x92 select sshd 2689 385219 1 0 3 0x80 select sshd 35902 418942 86856 74 3 0x100092 bpf pflogd 86856 52316 1 0 3 0x80 netio pflogd 56278 408382 31151 73 3 0x100090 kqread syslogd 31151 45365 1 0 3 0x100082 netio syslogd 10786 205770 1 77 3 0x100090 poll dhclient 39162 74972 1 0 3 0x80 poll dhclient 51889 307117 0 0 3 0x14200 pgzero zerothread 19815 63409 0 0 3 0x14200 aiodoned aiodoned 48521 285178 0 0 3 0x14200 syncer update 25640 58728 0 0 3 0x14200 cleaner cleaner 58490 291914 0 0 3 0x14200 reaper reaper 16740 473146 0 0 3 0x14200 pgdaemon pagedaemon 36728 73349 0 0 3 0x14200 bored crynlk 96484 406797 0 0 3 0x14200 bored crypto 77179 296112 0 0 3 0x40014200 acpi0 acpi0 26273 121099 0 0 3 0x40014200 idle1 50188 54995 0 0 3 0x14200 bored softnet 11382 117332 0 0 3 0x14200 bored systqmp 57608 212031 0 0 3 0x14200 bored systq 70047 148218 0 0 3 0x40014200 bored softclock 40563 201826 0 0 7 0x40014200 idle0 85241 441270 0 0 3 0x14200 bored smr 1 497578 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9544 6418K 7055K 78643K 12962 0 0 pcb 25 9K 12K 78643K 509 0 0 rtable 111 4K 5K 78643K 664 0 0 ifaddr 67 14K 15K 78643K 204 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1511 0 0 iov 0 0K 16K 78643K 100 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1192 75K 75K 78643K 2079 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 14 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 165 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 1289 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 56 63K 91K 78643K 700 0 0 subproc 64 65538K 69634K 78643K 272 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 97 0 0 in_multi 33 2K 2K 78643K 118 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 333 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 87 21K 30K 78643K 4855 0 0 UVM aobj 57 3K 3K 78643K 59 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 58 0 0 NDP 15 0K 1K 78643K 62 0 0 temp 193 2732K 2860K 78643K 10045 0 0 kqueue 0 0K 0K 78643K 6 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 18 0 12 1 0 1 1 0 8 0 inpcbpl 280 552 0 545 1 0 1 1 0 8 0 plimitpl 152 71 0 63 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 111 0 67 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 220 0 216 1 0 1 1 0 8 0 nd6 48 24 0 18 1 0 1 1 0 8 0 ppxss 1128 23 0 23 2 1 1 1 0 8 1 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 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 23 0 17 1 0 1 1 0 8 0 pfstkey 112 23 0 17 1 0 1 1 0 8 0 pfstate 328 23 0 17 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 469 0 274 13 0 13 13 0 8 0 art_table 32 470 0 274 2 0 2 2 0 8 0 art_node 16 110 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 17 2 1 1 1 0 8 0 semapl 112 163 0 153 1 0 1 1 0 8 0 shmpl 112 57 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3203 0 1766 47 0 47 47 0 8 0 ffsino 272 3203 0 1766 97 0 97 97 0 8 0 nchpl 144 5078 0 3423 62 0 62 62 0 8 0 uvmvnodes 72 3858 0 0 71 0 71 71 0 8 0 vnodes 200 3858 0 0 204 0 204 204 0 8 0 namei 1024 17407 0 17407 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 26975 0 26975 8 7 1 6 0 8 1 sigapl 432 1471 0 1456 4 2 2 3 0 8 0 futexpl 56 14025 0 14025 1 0 1 1 0 8 1 knotepl 112 314 0 295 1 0 1 1 0 8 0 kqueuepl 104 198 0 196 1 0 1 1 0 8 0 pipepl 112 808 0 789 5 4 1 2 0 8 0 fdescpl 488 1472 0 1457 4 1 3 3 0 8 1 filepl 152 9616 0 9517 7 2 5 7 0 8 1 lockfpl 104 276 0 276 2 1 1 1 0 8 1 lockfspl 48 109 0 109 2 1 1 1 0 8 1 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 37 0 26 1 0 1 1 0 8 0 ucredpl 96 2638 0 2629 1 0 1 1 0 8 0 zombiepl 144 1457 0 1455 2 1 1 1 0 8 0 processpl 840 1488 0 1455 4 0 4 4 0 8 0 procpl 600 3874 0 3832 4 0 4 4 0 8 0 srpgc 64 36 0 36 5 5 0 1 0 8 0 sosppl 128 9 0 9 4 3 1 1 0 8 1 sockpl 384 1000 0 981 5 2 3 4 0 8 1 mcl64k 65536 364 0 0 46 1 45 46 0 8 1 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 117 0 0 14 0 14 14 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 521 0 0 30 0 30 30 0 8 0 bufpl 256 27654 0 21443 390 0 390 390 0 8 0 anonpl 16 142715 0 131507 66 19 47 55 0 125 0 amapchunkpl 152 8622 0 8506 16 11 5 10 0 158 0 amappl16 192 5952 0 5352 51 19 32 42 0 8 1 amappl15 184 691 0 687 1 0 1 1 0 8 0 amappl14 176 72 0 69 2 1 1 1 0 8 0 amappl13 168 215 0 215 3 3 0 1 0 8 0 amappl12 160 146 0 145 1 0 1 1 0 8 0 amappl11 152 471 0 450 2 1 1 2 0 8 0 amappl10 144 179 0 176 1 0 1 1 0 8 0 amappl9 136 694 0 691 1 0 1 1 0 8 0 amappl8 128 213 0 195 1 0 1 1 0 8 0 amappl7 120 152 0 147 1 0 1 1 0 8 0 amappl6 112 454 0 445 1 0 1 1 0 8 0 amappl5 104 288 0 274 1 0 1 1 0 8 0 amappl4 96 1747 0 1712 2 1 1 2 0 8 0 amappl3 88 483 0 478 1 0 1 1 0 8 0 amappl2 80 11739 0 11680 2 0 2 2 0 8 0 amappl1 72 41592 0 41148 26 16 10 20 0 8 0 amappl 72 4238 0 4199 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 58 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1472 0 1456 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1472 0 1456 1 0 1 1 0 8 0 vmmpekpl 168 15393 0 15365 2 0 2 2 0 8 0 vmmpepl 168 160294 0 158686 155 74 81 109 0 357 7 vmsppl 360 1471 0 1456 2 0 2 2 0 8 0 pdppl 4096 2952 0 2912 7 1 6 6 0 8 0 pvpl 32 412339 0 397886 171 47 124 140 0 265 6 pmappl 232 1471 0 1456 3 2 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 611 0 6 18 0 18 18 0 8 0