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+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800024552a00) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212ad5f0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212ad5f0,ffff80002a5cf600,ffff80002a5cf650) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a5cf6d0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a5cf6d0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71c5e336b7c0, 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+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800024552a00) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212ad5f0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212ad5f0,ffff80002a5cf600,ffff80002a5cf650) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a5cf6d0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a5cf6d0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71c5e336b7c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5cf410 rbx 0xffffffff82c33b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000212ad5f0 rax 0xffffffff82c32ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x6fd3e01de85f213c r11 0xf8da7f0d3f6d8680 r12 0xffffffff82c339a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81b35ecc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a5cf400 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=52477 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000222e4310,0xffff8000212ad348 process=0xffff800024552a00 user=0xffff80002a5ca000, vmspace=0xfffffd806994d1e8 estcpu=36, cpticks=19, pctcpu=0.3 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13259 326179 40564 0 2 0 syz-executor.5 13259 2889 40564 0 2 0x4000000 syz-executor.5 95773 489605 40381 0 2 0 syz-executor.0 53801 180725 38510 0 2 0 syz-executor.2 53801 515256 38510 0 2 0x4000000 syz-executor.2 73827 286816 21991 0 2 0x2 syz-executor.6 63124 210446 21991 0 3 0x82 nanoslp syz-executor.1 64405 18606 21991 0 2 0x2 syz-executor.3 85757 225492 21991 0 2 0x2 syz-executor.7 52632 483740 21991 0 2 0x2 syz-executor.4 40564 340164 21991 0 2 0x482 syz-executor.5 40381 355315 21991 0 3 0x82 nanoslp syz-executor.0 25868 480838 1 0 3 0x100083 ttyopn getty 61613 368825 0 0 3 0x14200 bored sosplice 38510 112271 21991 0 3 0x82 nanoslp syz-executor.2 21991 496442 46633 0 3 0x2000082 wait syz-fuzzer 21991 58648 46633 0 3 0x6000082 nanoslp syz-fuzzer 21991 435235 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 304269 46633 0 3 0x6000082 wait syz-fuzzer 21991 5987 46633 0 3 0x6000082 wait syz-fuzzer 21991 349528 46633 0 3 0x6000082 wait syz-fuzzer 21991 349208 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 156103 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 459293 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 168452 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 63572 46633 0 3 0x6000082 wait syz-fuzzer 21991 151982 46633 0 3 0x6000082 wait syz-fuzzer 21991 378995 46633 0 3 0x6000082 wait syz-fuzzer 21991 488841 46633 0 3 0x6000082 wait syz-fuzzer 21991 64182 46633 0 3 0x6000082 thrsleep syz-fuzzer 21991 183888 46633 0 3 0x6000082 kqread syz-fuzzer 46633 436432 91319 0 3 0x10008a sigsusp ksh 91319 283783 73996 0 3 0x9a kqread sshd 73996 410372 1 0 3 0x88 kqread sshd 33526 171335 11766 74 3 0x1100092 bpf pflogd 11766 32318 1 0 3 0x80 netio pflogd 19503 277601 32582 73 3 0x1100090 kqread syslogd 32582 19903 1 0 3 0x100082 netio syslogd 85079 154128 1 0 3 0x100080 kqread resolvd 26748 327160 92127 77 3 0x100092 kqread dhcpleased 34347 295150 92127 77 3 0x100092 kqread dhcpleased 92127 228149 1 0 3 0x80 kqread dhcpleased 31840 85486 0 0 3 0x14200 bored smr 85782 321144 0 0 2 0x14200 zerothread 70466 524196 0 0 3 0x14200 aiodoned aiodoned 50837 29879 0 0 3 0x14200 syncer update 89389 506500 0 0 3 0x14200 cleaner cleaner 23244 260884 0 0 2 0x14200 reaper 77002 175598 0 0 3 0x14200 pgdaemon pagedaemon 17586 395654 0 0 3 0x14200 bored viomb 84574 38783 0 0 3 0x40014200 acpi0 acpi0 60781 87450 0 0 7 0x40014200 idle1 327 39768 0 0 3 0x14200 bored softnet3 53671 499608 0 0 3 0x14200 bored softnet2 56518 461715 0 0 3 0x14200 bored softnet1 26363 214983 0 0 3 0x14200 bored softnet0 18689 440484 0 0 3 0x14200 bored systqmp 68216 159752 0 0 3 0x14200 bored systq 24443 250147 0 0 2 0x40014200 softclock 78922 186856 0 0 3 0x40014200 idle0 1 177764 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 13259 (syz-executor.5) thread 0xffff80002121e020 (2889) Process 53801 (syz-executor.2) thread 0xffff8000212ad338 (180725) Process 73827 (syz-executor.6) thread 0xffff8000222e4310 (286816) Process 85757 (syz-executor.7) thread 0xffff8000212acdc8 (225492) Process 52632 (syz-executor.4) thread 0xffff8000212ac5a0 (483740) Process 23244 (reaper) thread 0xffff8000211ac2c0 (260884) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 6505K 7601K 78643K 18493 0 pcb 13 20K 25K 78643K 1057 0 rtable 239 7K 7K 78643K 1445 0 pf 35 10K 10K 78643K 329 0 ifaddr 46 17K 18K 78643K 276 0 ifgroup 60 2K 2K 78643K 513 0 sysctl 3 1K 1K 78643K 3 0 counters 62 36K 36K 78643K 328 0 ioctlops 0 0K 4K 78643K 1745 0 iov 0 0K 28K 78643K 1192 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1600 100K 100K 78643K 8657 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 9K 78643K 188 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1852 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 15788 0 sigio 0 0K 0K 78643K 210 0 proc 74 115K 128K 78643K 2042 0 subproc 104 6K 6K 78643K 504 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 473 0 in_multi 99 7K 7K 78643K 519 0 ether_multi 1 0K 0K 78643K 10 0 mrt 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 97 440K 440K 78643K 97 0 exec 0 0K 1K 78643K 2755 0 pfkey data 0 0K 0K 78643K 8 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 486 99K 110K 78643K 152907 0 UVM aobj 131 8K 8K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 347 0 NDP 13 0K 1K 78643K 220 0 temp 74 5920K 6045K 78643K 108461 0 kqueue 12 18K 26K 78643K 893 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 773 0 770 13 12 1 3 0 8 0 rtentry 112 442 0 331 4 0 4 4 0 8 0 unpcb 144 9680 0 9665 125 123 2 9 0 8 1 syncache 296 87 0 87 25 25 0 1 0 8 0 tcpqe 32 178 0 178 15 15 0 1 0 8 0 tcpcb 808 4153 0 4147 162 161 1 14 0 8 0 arp 120 78 0 60 1 0 1 1 0 8 0 inpcb 368 12096 0 12087 256 251 5 17 0 8 4 nd6 136 121 0 96 2 0 2 2 0 8 0 pkpcb 40 28 0 28 6 6 0 1 0 8 0 kcovpl 48 38 0 30 1 0 1 1 0 8 0 ppxss 1256 48 0 48 13 13 0 1 0 8 0 pffrag 232 86 0 83 6 5 1 1 0 482 0 pffrnode 88 86 0 83 6 5 1 1 0 8 0 pffrent 40 346 0 343 8 7 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 382 0 378 1 0 1 1 0 8 0 pfstkey 128 382 0 378 2 0 2 2 0 8 0 pfstate 376 382 0 378 11 9 2 4 0 8 0 pfrule 1344 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 1783 0 1319 32 2 30 31 0 8 0 art_table 32 1784 0 1319 4 0 4 4 0 8 0 art_node 16 441 0 340 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 9 1 0 1 1 0 8 0 semapl 112 1850 0 1840 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 22811 0 21286 96 0 96 96 0 8 0 ffsino 272 22811 0 21286 102 0 102 102 0 8 0 nchpl 144 43671 0 43153 63 40 23 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 161211 0 161211 13 12 1 3 0 8 1 percpumem 16 177 0 133 1 0 1 1 0 8 0 kstatmem 264 292 0 266 4 2 2 3 0 8 0 scxspl 216 125566 0 125566 32 31 1 8 1 8 1 plimitpl 152 3043 0 3027 1 0 1 1 0 8 0 sigapl 424 16098 0 16050 12 6 6 8 0 8 0 futexpl 64 146528 0 146528 1 0 1 1 0 8 1 knotepl 120 1073 0 0 18 6 12 18 0 8 0 kqueuepl 216 2375 0 2367 44 43 1 12 0 8 0 pipepl 320 3735 0 3707 132 129 3 11 0 8 0 fdescpl 496 16033 0 16003 7 3 4 5 0 8 0 filepl 152 112966 0 112728 261 245 16 23 0 8 2 lockfpl 104 34223 0 34221 9 8 1 3 0 8 0 lockfspl 48 2841 0 2839 1 0 1 1 0 8 0 sessionpl 144 57 0 40 1 0 1 1 0 8 0 pgrppl 48 422 0 405 1 0 1 1 0 8 0 ucredpl 104 16737 0 16725 1 0 1 1 0 8 0 zombiepl 144 17749 0 17748 8 7 1 1 0 8 0 processpl 1072 16099 0 16050 5 0 5 5 0 8 0 procpl 696 42095 0 42027 18 10 8 11 0 8 0 sosppl 168 129 0 128 27 26 1 1 0 8 0 sockpl 488 22709 0 22682 654 645 9 33 0 8 5 mcl64k 65536 23 0 0 3 0 3 3 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 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 16 0 0 2 0 2 2 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 318 0 0 37 7 30 37 0 8 0 mtagpl 96 459 0 0 12 9 3 12 0 8 0 mbufpl 256 2023 0 0 124 0 124 124 0 8 0 bufpl 288 30613 0 24284 453 0 453 453 0 8 0 anonpl 24 1636630 0 1623263 327 225 102 115 0 186 0 amapchunkpl 152 481138 0 480291 118 79 39 44 0 158 0 amappl16 200 37491 0 37057 286 261 25 40 0 8 0 amappl15 192 28 0 28 2 2 0 1 0 8 0 amappl14 184 292 0 274 3 1 2 2 0 8 0 amappl13 176 15 0 14 1 0 1 1 0 8 0 amappl12 168 17147 0 17116 3 1 2 2 0 8 0 amappl11 160 55 0 40 1 0 1 1 0 8 0 amappl10 152 74 0 62 1 0 1 1 0 8 0 amappl9 144 343 0 342 2 1 1 1 0 8 0 amappl8 136 952 0 725 8 0 8 8 0 8 0 amappl7 128 117 0 101 2 1 1 2 0 8 0 amappl6 120 564 0 533 3 2 1 3 0 8 0 amappl5 112 628 0 617 1 0 1 1 0 8 0 amappl4 104 1067 0 1021 3 1 2 3 0 8 0 amappl3 96 95112 0 95036 4 1 3 3 0 8 0 amappl2 88 16789 0 16715 3 1 2 3 0 8 0 amappl1 80 67277 0 66718 28 15 13 23 0 8 0 amappl 88 151694 0 151443 7 0 7 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 16032 0 16002 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16032 0 16002 1 0 1 1 0 8 0 vmmpekpl 168 121338 0 121273 4 0 4 4 0 8 0 vmmpepl 168 957113 0 954603 485 355 130 156 0 357 0 vmsppl 464 16031 0 16002 5 1 4 5 0 8 0 rwobjpl 56 235550 0 227790 131 17 114 114 0 8 0 pdppl 4096 32072 0 32004 759 689 70 84 0 8 2 pvpl 32 4331522 0 4312212 719 537 182 368 0 265 0 pmappl 248 16031 0 16002 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2064 0 1137 28 0 28 28 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800024552a00) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212ad5f0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212ad5f0,ffff80002a5cf600,ffff80002a5cf650) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a5cf6d0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a5cf6d0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71c5e336b7c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d58ff0) at sched_idle+0x41e sys/kern/kern_sched.c:199 end trace frame: 0x0, count: 10