From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "mingo@kernel.org" <mingo@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "david@redhat.com" <david@redhat.com>,
"Xu, Pengfei" <pengfei.xu@intel.com>,
"linux-tip-commits@vger.kernel.org"
<linux-tip-commits@vger.kernel.org>,
"bp@alien8.de" <bp@alien8.de>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"john.allen@amd.com" <john.allen@amd.com>,
"rppt@kernel.org" <rppt@kernel.org>,
"x86@kernel.org" <x86@kernel.org>
Subject: Re: [tip: x86/shstk] mm: Don't allow write GUPs to shadow stack memory
Date: Fri, 21 Jul 2023 16:24:45 +0000 [thread overview]
Message-ID: <1b5d436e1b4f31c37ce1f1e6342c836fd5b2ceec.camel@intel.com> (raw)
In-Reply-To: <ZLpC/IbswCA0yUHD@gmail.com>
On Fri, 2023-07-21 at 10:34 +0200, Ingo Molnar wrote:
>
> * tip-bot2 for Rick Edgecombe <tip-bot2@linutronix.de> wrote:
>
> > The following commit has been merged into the x86/shstk branch of
> > tip:
> >
> > Commit-ID: 7c8f82db8acb9f0935703c0d96cda552bbf91ff2
> > Gitweb:
> > https://git.kernel.org/tip/7c8f82db8acb9f0935703c0d96cda552bbf91ff2
> > Author: Rick Edgecombe <rick.p.edgecombe@intel.com>
> > AuthorDate: Mon, 12 Jun 2023 17:10:48 -07:00
> > Committer: Rick Edgecombe <rick.p.edgecombe@intel.com>
> > CommitterDate: Tue, 11 Jul 2023 14:12:47 -07:00
> >
> > mm: Don't allow write GUPs to shadow stack memory
>
> JFYI, this commit was the last user of
> writable_file_mapping_allowed(),
> which breaks the x86-defconfig build:
>
> mm/gup.c:1015:13: error: ‘writable_file_mapping_allowed’ defined
> but not used [-Werror=unused-function]
>
> There's also a now orphan reference to
> writable_file_mapping_allowed() in
> the comment of folio_fast_pin_allowed().
Oh, thanks for letting me know. It looks like a rebase error on my
part. This hunk should not have been dropped in that commit:
- if (!vma_anon &&
- !writable_file_mapping_allowed(vma, gup_flags))
- return -EFAULT;
Then writable_file_mapping_allowed() would still have a reference.
As for the build breakage, I'm not sure how this slipped through. My
runtime test environment was missing CONFIG_WERROR, but I got 0day
build successes for the x86_64 and i386 defconfigs specifically. I'll
have to follow up with the 0day people.
Rick
next prev parent reply other threads:[~2023-07-21 16:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-19 22:47 tip-bot2 for Rick Edgecombe
2023-07-21 8:34 ` Ingo Molnar
2023-07-21 16:24 ` Edgecombe, Rick P [this message]
2023-07-26 18:11 ` Edgecombe, Rick P
-- strict thread matches above, loose matches on Subject: below --
2023-08-02 22:19 tip-bot2 for Rick Edgecombe
2023-06-16 19:16 tip-bot2 for Rick Edgecombe
2023-03-20 16:39 tip-bot2 for Rick Edgecombe
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=1b5d436e1b4f31c37ce1f1e6342c836fd5b2ceec.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=david@redhat.com \
--cc=john.allen@amd.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=pengfei.xu@intel.com \
--cc=rppt@kernel.org \
--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®