From: Catalin Marinas <catalin.marinas@arm.com>
To: 黄华成 <1112433017@e.gzhu.edu.cn>
Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
will <will@kernel.org>, "mark.rutland" <mark.rutland@arm.com>,
broonie <broonie@kernel.org>,
"szabolcs.nagy" <szabolcs.nagy@arm.com>,
"yury.khrustalev" <yury.khrustalev@arm.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
stable <stable@vger.kernel.org>
Subject: Re: [PATCH 1/1] arm64: gcs: bind signal GCS restore to the live GCSPR_EL0
Date: Tue, 24 Nov 2026 17:32:06 +0000 [thread overview]
Message-ID: <awXKFu9PAifaCay5@arm.com> (raw)
In-Reply-To: <tencent_122AB752205D1FCC2B359940@qq.com>
On Mon, Nov 23, 2026 at 11:56:52PM +0800, 黄华成 wrote:
> Bind the restore to the live, kernel-visible GCSPR_EL0: for every
> legitimate restore at every nesting depth the innermost frame's gcspr
> equals the live GCSPR_EL0 (the handler's return pops its trampoline
> record before rt_sigreturn). Userspace cannot move the live GCSPR_EL0
> without executing GCS instructions, which are themselves checked.
(that's a pretty malformed patch, missing sign-off, lines not wrapped,
based on an older tree)
Changing GCSPR_EL0 via sigreturn is the intended ABI (see
preserve_gcs_context() and Documentation/arch/arm64/gcs.rst). Any valid
signal cap token is acceptable, including an outer context's token.
The patch would also break handlers that call rt_sigreturn directly,
user-space stack switching and checkpoint/restore.
In conclusion, NAK.
--
Catalin
prev parent reply other threads:[~2026-11-24 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 15:56 [PATCH 1/1] arm64: gcs: bind signal GCS restore to the live GCSPR_EL0 黄华成
2026-11-24 17:32 ` Catalin Marinas [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=awXKFu9PAifaCay5@arm.com \
--to=catalin.marinas@arm.com \
--cc=1112433017@e.gzhu.edu.cn \
--cc=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=stable@vger.kernel.org \
--cc=szabolcs.nagy@arm.com \
--cc=will@kernel.org \
--cc=yury.khrustalev@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.