panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83438bf0) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e698e,ffffffff833a0f21,bc,ffffffff8335b1eb) at __assert+0x29 unveil_destroy(ffff8000374a86d0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c591228,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c591228,ffff80002a896300,ffff80002a896250) at sys_exit+0x1a syscall(ffff80002a896300) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a896300) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b3d06a38c0, 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 *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83438bf0) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e698e,ffffffff833a0f21,bc,ffffffff8335b1eb) at __assert+0x29 unveil_destroy(ffff8000374a86d0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c591228,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c591228,ffff80002a896300,ffff80002a896250) at sys_exit+0x1a syscall(ffff80002a896300) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a896300) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b3d06a38c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a896040 rbx 0xffffffff83852dc7 cpu_info_full_primary+0x2dc7 rdx 0 rcx 0xffff80003c591228 rax 0xffffffff83851ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x1164357b1c040cc3 r11 0xecaa0d215d378df0 r12 0xffffffff83852bc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81441685 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a896030 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=464363 pid=83619 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c591228 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c591c68,0xffff80003c5902d8 process=0xffff8000374a86d0 user=0xffff80002a891000, vmspace=0xfffffd806beb0ac8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79655 172278 73512 0 2 0 syz-executor 79655 360779 73512 0 3 0x4000080 sbwait syz-executor 1449 56726 64115 0 2 0x480 syz-executor 1449 195781 64115 0 3 0x4000080 netcon syz-executor 1449 152592 64115 0 3 0x4000080 fsleep syz-executor 12136 43721 80516 0 2 0x480 syz-executor 12136 3932 80516 0 3 0x4000080 msgwait syz-executor 12136 323230 80516 0 3 0x4000080 fsleep syz-executor 59053 24438 82167 0 2 0x480 syz-executor 59053 411738 82167 0 3 0x4000080 kqread syz-executor 59053 216184 82167 0 3 0x4000080 fsleep syz-executor 88364 408073 14410 0 2 0x480 syz-executor 88364 201860 14410 0 3 0x4000080 msgwait syz-executor 88364 510191 14410 0 3 0x4000080 fsleep syz-executor 51237 500990 0 0 3 0x14200 bored sosplice 66651 428957 97181 0 2 0x482 syz-executor 32950 468477 0 0 3 0x14280 nfsidl nfsio 66839 25564 0 0 3 0x14280 nfsidl nfsio 23374 304361 0 0 3 0x14280 nfsidl nfsio 94694 183865 0 0 3 0x14280 nfsidl nfsio 13496 425329 0 0 3 0x14280 nfsidl nfsio 36955 222863 0 0 3 0x14280 nfsidl nfsio 45054 391757 0 0 3 0x14280 nfsidl nfsio 26724 414098 0 0 3 0x14280 nfsidl nfsio 39430 227110 0 0 3 0x14280 nfsidl nfsio 27672 117421 0 0 3 0x14280 nfsidl nfsio 91207 499804 0 0 3 0x14280 nfsidl nfsio 78127 439222 0 0 3 0x14280 nfsidl nfsio 90333 505824 0 0 3 0x14280 nfsidl nfsio 99052 26605 0 0 3 0x14280 nfsidl nfsio 12564 165006 0 0 3 0x14280 nfsidl nfsio 15077 279458 0 0 3 0x14280 nfsidl nfsio 80296 465822 0 0 3 0x14280 nfsidl nfsio 93904 373766 0 0 3 0x14280 nfsidl nfsio 86472 238539 0 0 3 0x14280 nfsidl nfsio 40638 424007 0 0 3 0x14280 nfsidl nfsio 14410 31227 97181 0 2 0x482 syz-executor 76985 374123 97181 0 2 0x482 syz-executor 82167 380483 97181 0 2 0x482 syz-executor 64115 216594 97181 0 2 0x482 syz-executor 40715 36913 97181 0 3 0x82 wait syz-executor 80516 501470 97181 0 2 0x482 syz-executor 73512 305057 97181 0 2 0x482 syz-executor 97181 37201 83775 0 3 0x82 kqread syz-executor 83775 162521 80396 0 3 0x10008a sigsusp ksh 80396 143037 85353 0 3 0x98 kqread sshd-session 85353 345213 20450 0 3 0x92 kqread sshd-session 3375 162742 1 0 3 0x100083 ttyin getty 20450 113005 1 0 3 0x88 kqread sshd 16538 288675 42780 74 3 0x1100092 bpf pflogd 42780 183276 1 0 3 0x80 sbwait pflogd 40818 219442 65456 73 3 0x1100090 kqread syslogd 65456 146131 1 0 3 0x100082 sbwait syslogd 15178 88125 1 0 3 0x100080 kqread resolvd 21577 376738 38683 77 3 0x100092 kqread dhcpleased 88112 505515 38683 77 3 0x100092 kqread dhcpleased 38683 129563 1 0 3 0x80 kqread dhcpleased 78308 318647 0 0 3 0x14200 bored smr 9999 494994 0 0 3 0x14200 pgzero zerothread 78520 268917 0 0 3 0x14200 aiodoned aiodoned 42109 421043 0 0 3 0x14200 syncer update 12238 157830 0 0 3 0x14200 cleaner cleaner 56708 424118 0 0 2 0x14200 reaper 43624 477189 0 0 3 0x14200 pgdaemon pagedaemon 32756 194826 0 0 3 0x14200 bored viomb 38280 429677 0 0 3 0x40014200 acpi0 acpi0 20511 50205 0 0 3 0x40014200 idle1 39834 380791 0 0 3 0x14200 bored softnet3 19101 486164 0 0 3 0x14200 bored softnet2 56722 169601 0 0 3 0x14200 bored softnet1 51125 248440 0 0 3 0x14200 bored softnet0 47118 230071 0 0 3 0x14200 bored systqmp 19166 186668 0 0 3 0x14200 bored systq 47136 72990 0 0 3 0x14200 tmoslp softclockmp 84265 130738 0 0 2 0x40014200 softclock 47471 25554 0 0 3 0x40014200 idle0 1 67451 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 56708 (reaper) thread 0xffff8000ffffd488 (424118) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10199 11085K 11410K 166960K 11544 0 pcb 20 12K 12K 166960K 60 0 rtable 200 6K 7K 166960K 422 0 pf 33 17K 19K 166960K 50 0 ifaddr 39 6K 7K 166960K 51 0 ifgroup 51 2K 2K 166960K 59 0 sysctl 2 1K 1K 166960K 2 0 counters 62 36K 36K 166960K 66 0 ioctlops 0 0K 4K 166960K 1510 0 iov 1 4K 16K 166960K 16 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1374 86K 87K 166960K 1552 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 361 0 sigio 0 0K 0K 166960K 6 0 proc 76 115K 128K 166960K 589 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 42 0 in_multi 88 6K 7K 166960K 125 0 ether_multi 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 398 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 73K 87K 166960K 4906 0 UVM aobj 14 2K 2K 166960K 15 0 pinsyscall 43 86K 108K 166960K 1495 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 20 0 NDP 11 0K 2K 166960K 32 0 temp 44 8636K 8710K 166960K 16008 0 kqueue 13 20K 28K 166960K 63 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 48 0 45 1 0 1 1 0 8 0 rtentry 112 132 0 41 4 0 4 4 0 8 0 unpcb 144 217 0 197 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 199 0 192 8 7 1 8 0 8 0 arp 120 22 0 6 1 0 1 1 0 8 0 inpcb 376 400 0 386 9 7 2 8 0 8 0 nd6 136 29 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 4 0 3 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 32 0 0 1 0 1 1 0 8 0 pfstkey 128 32 0 0 2 0 2 2 0 8 0 pfstate 376 32 0 0 4 0 4 4 0 8 0 pfrule 1344 23 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 575 0 167 30 0 30 30 0 8 2 art_table 32 576 0 167 4 0 4 4 0 8 0 art_node 16 131 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semapl 112 9 0 3 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1940 0 433 95 0 95 95 0 8 0 ffsino 280 1940 0 433 109 0 109 109 0 8 0 nchpl 144 2436 0 749 63 0 63 63 0 8 0 uvmvnodes 80 2159 0 0 45 0 45 45 0 8 0 vnodes 216 2159 0 0 120 0 120 120 0 8 0 namei 1024 7913 0 7913 1 0 1 1 0 8 1 percpumem 16 47 0 2 1 0 1 1 0 8 0 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 7945 0 7945 10 2 8 8 1 8 8 plimitpl 152 190 0 170 1 0 1 1 0 8 0 sigapl 424 687 0 616 9 1 8 9 0 8 0 futexpl 64 3496 0 3492 1 0 1 1 0 8 0 knotepl 120 301 0 0 10 0 10 10 0 8 0 kqueuepl 216 99 0 89 1 0 1 1 0 8 0 pipepl 328 124 0 96 3 0 3 3 0 8 0 fdescpl 504 648 0 617 5 0 5 5 0 8 0 filepl 152 3015 0 2712 12 0 12 12 0 8 0 lockfpl 104 81 0 79 1 0 1 1 0 8 0 lockfspl 48 32 0 30 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 348 0 334 1 0 1 1 0 8 0 zombiepl 144 625 0 622 1 0 1 1 0 8 0 processpl 1168 687 0 616 6 0 6 6 0 8 0 procpl 656 1047 0 965 8 0 8 8 0 8 0 srpgc 96 4 0 4 2 1 1 1 0 8 1 sosppl 168 3 0 2 2 1 1 1 0 8 0 sockpl 688 677 0 640 9 5 4 9 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mtagpl 96 135 0 0 4 0 4 4 0 8 0 mbufpl 256 254 0 0 16 0 16 16 0 8 0 bufpl 280 2781 0 137 189 0 189 189 0 8 0 anonpl 24 113948 0 110495 48 2 46 46 0 184 23 amapchunkpl 152 15061 0 14514 31 9 22 30 0 158 0 amappl16 200 2099 0 2065 17 3 14 14 0 8 12 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 122 0 110 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 1315 0 1283 3 1 2 2 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 56 0 56 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 110 0 98 1 0 1 1 0 8 0 amappl6 120 188 0 185 1 0 1 1 0 8 0 amappl5 112 131 0 120 1 0 1 1 0 8 0 amappl4 104 318 0 298 1 0 1 1 0 8 0 amappl3 96 2693 0 2567 4 0 4 4 0 8 0 amappl2 88 660 0 598 2 0 2 2 0 8 0 amappl1 80 8490 0 7917 16 3 13 16 0 8 0 amappl 88 4510 0 4323 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 648 0 616 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 648 0 616 1 0 1 1 0 8 0 vmmpekpl 168 6828 0 6786 3 0 3 3 0 8 0 vmmpepl 168 45282 0 43346 94 0 94 94 0 357 9 vmsppl 456 647 0 616 5 0 5 5 0 8 0 rwobjpl 64 17217 0 14088 54 0 54 54 0 8 3 pdppl 4096 1303 0 1232 105 34 71 85 0 8 0 pvpl 32 14217 0 0 117 2 115 115 0 265 0 pmappl 248 647 0 616 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 295 0 44 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83438bf0) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e698e,ffffffff833a0f21,bc,ffffffff8335b1eb) at __assert+0x29 unveil_destroy(ffff8000374a86d0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c591228,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c591228,ffff80002a896300,ffff80002a896250) at sys_exit+0x1a syscall(ffff80002a896300) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a896300) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b3d06a38c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029a9bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8398e688) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8398e688) at __mp_lock+0x192 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff8398e688,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x24f sys/kern/kern_synch.c:414 msleep(ffff8000374a7028,ffff8000374a7110,20,ffffffff833eb32c,0) at msleep+0x13b sys/kern/kern_synch.c:249 exit1(ffff80003c591c68,0,0,1) at exit1+0x35e sys/kern/kern_exit.c:179 sys_exit(ffff80003c591c68,ffff80003c4e8880,ffff80003c4e87d0) at sys_exit+0x1a syscall(ffff80003c4e8880) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e8880) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c846bf717c0, count: 3 ddb{1}> trace x86_ipi_db(ffff800029a9bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8398e688) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8398e688) at __mp_lock+0x192 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff8398e688,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x24f sys/kern/kern_synch.c:414 msleep(ffff8000374a7028,ffff8000374a7110,20,ffffffff833eb32c,0) at msleep+0x13b sys/kern/kern_synch.c:249 exit1(ffff80003c591c68,0,0,1) at exit1+0x35e sys/kern/kern_exit.c:179 sys_exit(ffff80003c591c68,ffff80003c4e8880,ffff80003c4e87d0) at sys_exit+0x1a syscall(ffff80003c4e8880) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e8880) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c846bf717c0, count: -12