From: Chris Down <chris@chrisdown.name>
To: Christian Brauner <brauner@kernel.org>
Cc: Omar Sandoval <osandov@osandov.com>,
Andrew Morton <akpm@linux-foundation.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
linux-debuggers@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@meta.com
Subject: Re: [PATCH v3] proc/kcore: allow disabling /proc/kcore at boot
Date: Sun, 22 Nov 2026 22:11:21 -0800 [thread overview]
Message-ID: <awPZCeNqLKVpnbKj@chrisdown.name> (raw)
In-Reply-To: <20261118-masken-disput-miesmacher-27d6baaae6a8@brauner>
Hi Christian,
Thanks for picking this up!
Christian Brauner writes:
>Iow, it would be nicer if someone took the time and came up with some
>boot setting that is a list of memory protection settings instead of
>spraying ever more kernel command line switches that nobody can
>reasonably remember or use.
Hmm, I agree that would be nicer, but I don't see a good way to do it. How
would you suggest going about it?
In my mind, the model one would have for a list like that is mitigations=,
but it didn't replace the specific switches, right? For example, retbleed=
and mds= have nevertheless stayed. In that case, the list sets their
defaults, but more specific switches win out over it.
These are the problems I see with a list like that:
1. I don't know where the list would live. A list of memory protection
settings in procfs would cover two switches today (that is, kcore= and
proc_mem.force_override=). Anything wider crosses into mm and security
(I have similar switches out for slab hardening and mseal, for example),
and it isn't clear to me who would own that or decide what goes on it.
2. Lockdown already has a list of what gives access to kernel memory,
with entries for /proc/kcore, /dev/mem, kprobes and so on (although
not for FOLL_FORCE), but lockdown= only takes the two levels.
Selecting individual entries was proposed last year, and the lockdown
maintainers turned it down because most entries can be bypassed when
they are used on their own [1]. So a wider list would have to be a
second one next to lockdown's.
Did you have something specific in mind in terms of a design and what it
would encompass?
Chris
[1] https://lore.kernel.org/r/2vldrnqs6fbljqqp6vbwmkushx6dxcpephgb6svmu5i64lijpy@lg37aflddv3b
prev parent reply other threads:[~2026-11-23 6:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 10:20 Chris Down
2026-11-18 13:11 ` Christian Brauner
2026-11-23 6:11 ` Chris Down [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=awPZCeNqLKVpnbKj@chrisdown.name \
--to=chris@chrisdown.name \
--cc=akpm@linux-foundation.org \
--cc=brauner@kernel.org \
--cc=corbet@lwn.net \
--cc=kernel-team@meta.com \
--cc=linux-debuggers@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=osandov@osandov.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.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®