From: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
To: "jeffxu@chromium.org" <jeffxu@chromium.org>
Cc: "dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
Keith Lucas <keith.lucas@oracle.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
"x86@kernel.org" <x86@kernel.org>,
Andrew Brownsword <andrew.brownsword@oracle.com>,
Matthias Neugschwandtner <matthias.neugschwandtner@oracle.com>,
"jeffxu@google.com" <jeffxu@google.com>,
"jannh@google.com" <jannh@google.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"sroettger@google.com" <sroettger@google.com>,
"jorgelo@chromium.org" <jorgelo@chromium.org>,
"rick.p.edgecombe@intel.com" <rick.p.edgecombe@intel.com>
Subject: Re: Re [PATCH v5 4/5] x86/pkeys: Restore altstack before sigcontext
Date: Tue, 11 Jun 2024 14:08:26 +0000 [thread overview]
Message-ID: <C89ABF81-0EF8-40CB-8B04-B71868B79316@oracle.com> (raw)
In-Reply-To: <20240610214446.3380115-1-jeffxu@chromium.org>
> On Jun 10, 2024, at 2:44 PM, jeffxu@chromium.org wrote:
>
> Can we we move this patch to the first of the series? this can be an
> independent patch, the problem not only affect PKRU, but also other
> scenarios, as Rick pointed out in [1]
>
> [1] https://lore.kernel.org/lkml/d0162c76c25bc8e1c876aebe8e243ff2e6862359.camel@intel.com/
>
> -Jeff
For this patch set, the issue with rt_sigreturn() is only exposed after patch 3/5 - i.e., when
copy_fpregs_to_sigframe() calls update_pkru_in_sigframe() to update the PKRU value to
user-specified PKRU that might disable pkey 0 access, thus breaking restore_altstack().
So it seemed logical to me to have this fix as patch 4/5 of this series. I’m not strongly
opposed to moving this to patch 1/5, but this ordering is easier to understand (I think).
But if this patch needs to be broken out of this patchset and submitted independently
(for the other scenarios you mentioned) - I can do that.
Thanks,
Aruna
next prev parent reply other threads:[~2024-06-11 14:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 22:40 [PATCH v5 0/5] x86/pkeys: update PKRU to enable pkey 0 before XSAVE Aruna Ramakrishna
2024-06-06 22:40 ` [PATCH v5 1/5] x86/pkeys: Add PKRU as a parameter in signal handling functions Aruna Ramakrishna
2024-06-10 21:31 ` Re " jeffxu
2024-06-11 13:56 ` Aruna Ramakrishna
2024-06-11 21:26 ` Jeff Xu
2024-06-06 22:40 ` [PATCH v5 2/5] x86/pkeys: Add helper functions to update PKRU on sigframe Aruna Ramakrishna
2024-06-10 21:39 ` Re " jeffxu
2024-06-11 14:05 ` Aruna Ramakrishna
2024-06-11 22:13 ` Jeff Xu
2024-06-17 16:43 ` Aruna Ramakrishna
2024-06-20 19:23 ` Jeff Xu
2024-06-06 22:40 ` [PATCH v5 3/5] x86/pkeys: Update PKRU to enable minimally required pkeys before XSAVE Aruna Ramakrishna
2024-06-06 22:40 ` [PATCH v5 4/5] x86/pkeys: Restore altstack before sigcontext Aruna Ramakrishna
2024-06-10 21:44 ` Re " jeffxu
2024-06-11 14:08 ` Aruna Ramakrishna [this message]
2024-06-11 22:16 ` Jeff Xu
2024-06-06 22:40 ` [PATCH v5 5/5] selftests/mm: Add new testcases for pkeys Aruna Ramakrishna
2024-06-10 21:21 ` Re [PATCH v5 0/5] x86/pkeys: update PKRU to enable pkey 0 before XSAVE jeffxu
2024-06-26 16:51 ` Aruna Ramakrishna
2024-06-26 16:56 ` Dave Hansen
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=C89ABF81-0EF8-40CB-8B04-B71868B79316@oracle.com \
--to=aruna.ramakrishna@oracle.com \
--cc=andrew.brownsword@oracle.com \
--cc=dave.hansen@linux.intel.com \
--cc=jannh@google.com \
--cc=jeffxu@chromium.org \
--cc=jeffxu@google.com \
--cc=jorgelo@chromium.org \
--cc=keescook@chromium.org \
--cc=keith.lucas@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.neugschwandtner@oracle.com \
--cc=mingo@kernel.org \
--cc=rick.p.edgecombe@intel.com \
--cc=sroettger@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®