From: Adrian Ratiu <adrian.ratiu@collabora.com>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Doug Anderson <dianders@chromium.org>,
Jeff Xu <jeffxu@google.com>, Jann Horn <jannh@google.com>,
Kees Cook <kees@kernel.org>, Ard Biesheuvel <ardb@kernel.org>,
Christian Brauner <brauner@kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
corbet@lwn.net, paul@paul-moore.com, jmorris@namei.org,
serge@hallyn.com, thuth@redhat.com, bp@alien8.de,
tglx@linutronix.de, jpoimboe@kernel.org, paulmck@kernel.org,
tony@atomide.com, xiongwei.song@windriver.com,
akpm@linux-foundation.org, oleg@redhat.com,
casey@schaufler-ca.com, viro@zeniv.linux.org.uk,
linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-security-module@vger.kernel.org,
Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH AUTOSEL 6.6 048/139] proc: add config & param to block forcing mem writes
Date: Thu, 26 Sep 2024 14:07:59 +0300 [thread overview]
Message-ID: <871q16ad0w.fsf@gentoo.mail-host-address-is-not-set> (raw)
In-Reply-To: <e22f3662-c985-4409-99f3-5168fa2a4b9f@p183>
On Wed, 25 Sep 2024, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Wed, Sep 25, 2024 at 08:07:48AM -0400, Sasha Levin wrote:
>> From: Adrian Ratiu <adrian.ratiu@collabora.com> [ Upstream
>> commit 41e8149c8892ed1962bd15350b3c3e6e90cba7f4 ] This adds a
>> Kconfig option and boot param to allow removing the FOLL_FORCE
>> flag from /proc/pid/mem write calls because it can be abused.
>
> And this is not a mount option why?
Hello and thanks for asking!
The only reason is nobody asked for it yet. :)
We need to be careful how we do this, so the restriction is still
enabled when remounting, otherwise I don't see any impediment,
provided we can find a way to make it clean and safe.
I am travelling these weeks (All Systems GO conf) and have a lot
going on, so please feel free to send a patch and I'll review it
ASAP, otherwise I'll try to come up with something by end of
October.
Adrian
prev parent reply other threads:[~2024-09-26 11:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240925121137.1307574-1-sashal@kernel.org>
2024-09-25 12:07 ` [PATCH AUTOSEL 6.6 048/139] proc: add config & param to block forcing mem writes Sasha Levin
2024-09-25 15:58 ` Alexey Dobriyan
2024-09-26 11:07 ` Adrian Ratiu [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=871q16ad0w.fsf@gentoo.mail-host-address-is-not-set \
--to=adrian.ratiu@collabora.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=bp@alien8.de \
--cc=brauner@kernel.org \
--cc=casey@schaufler-ca.com \
--cc=corbet@lwn.net \
--cc=dianders@chromium.org \
--cc=jannh@google.com \
--cc=jeffxu@google.com \
--cc=jmorris@namei.org \
--cc=jpoimboe@kernel.org \
--cc=kees@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=paul@paul-moore.com \
--cc=paulmck@kernel.org \
--cc=sashal@kernel.org \
--cc=serge@hallyn.com \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=thuth@redhat.com \
--cc=tony@atomide.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--cc=xiongwei.song@windriver.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;
as well as URLs for NNTP newsgroup(s).