Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: patchwork-bot+linux-riscv@kernel.org
To: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, greentime.hu@sifive.com,
	vincent.chen@sifive.com, andybnac@gmail.com, pjw@kernel.org,
	palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr
Subject: Re: [PATCH v2 0/2] Optimize the allocation of vector regset
Date: Wed, 19 Nov 2025 12:30:13 +0000	[thread overview]
Message-ID: <176355541326.758643.4317027962321955415.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20251013091318.467864-1-yongxuan.wang@sifive.com>

Hello:

This series was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw@kernel.org>:

On Mon, 13 Oct 2025 17:12:30 +0800 you wrote:
> The vector regset uses the maximum possible vlenb 8192 to allocate a
> 2^18 bytes buffer to copy the vector register. But most platforms
> don’t support the largest vlenb.
> 
> The regset has 2 users, ptrace syscall and coredump. When handling the
> PTRACE_GETREGSET requests from ptrace syscall, Linux will prepare a
> kernel buffer which size is min(user buffer size, limit). A malicious
> user process might overwhelm a memory-constrainted system when the
> buffer limit is very large. The coredump uses regset_get_alloc() to
> get the context of vector register. But this API allocates buffer
> before checking whether the target process uses vector extension, this
> wastes time to prepare a large memory buffer.
> 
> [...]

Here is the summary with links:
  - [v2,1/2] riscv: ptrace: Optimize the allocation of vector regset
    https://git.kernel.org/riscv/c/f8e257e4d549
  - [v2,2/2] selftests: riscv: Add test for the Vector ptrace interface
    https://git.kernel.org/riscv/c/92678c40038b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      parent reply	other threads:[~2025-11-19 12:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13  9:12 [PATCH v2 0/2] Optimize the allocation of vector regset Yong-Xuan Wang
2025-10-13  9:12 ` [PATCH v2 1/2] riscv: ptrace: " Yong-Xuan Wang
2025-10-13  9:12 ` [PATCH v2 2/2] selftests: riscv: Add test for the Vector ptrace interface Yong-Xuan Wang
2025-10-17 21:50 ` [PATCH v2 0/2] Optimize the allocation of vector regset Andy Chiu
2025-11-19 12:30 ` patchwork-bot+linux-riscv [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176355541326.758643.4317027962321955415.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+linux-riscv@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=andybnac@gmail.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=greentime.hu@sifive.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=vincent.chen@sifive.com \
    --cc=yongxuan.wang@sifive.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox