From: "Jan Sebastian Götte" <contact@jaseg.de>
To: "David Hildenbrand (Arm)" <david@kernel.org>,
"Jan Sebastian Götte" <linux@jaseg.de>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
kexec@lists.infradead.org, keyrings@vger.kernel.org,
linux-mm@kvack.org, linux-security-module@vger.kernel.org,
linux-integrity@vger.kernel.org
Subject: Re: [PATCH 3/4] mm/secretmem: zeroize secret pages before kdump
Date: Tue, 11 Aug 2026 17:05:58 +0200 [thread overview]
Message-ID: <adcafa9f-2365-484b-b31e-19006833efaa@jaseg.de> (raw)
In-Reply-To: <70c578dc-769f-465f-a146-4a4695f747c1@kernel.org>
On 8/11/26 16:53, David Hildenbrand (Arm) wrote:
> On 7/31/26 18:27, Jan Sebastian Götte wrote:
>> Register a CRASH_ZEROIZE notifier that wipes secretmem folios. As a
>> result, when CONFIG_CRASH_ZEROIZE is set, secretmem areas will be
>> cleared before the kdump kernel is kexec'ed.
>
> Are you actually using secretmem in your use case? I heard some rumors that
> secretmem isn't used all that much in practice :)
I'm aware nobody is really using secretmem. I decided to build this on
top of secretmem because it's an existing API that actually kind of fits
the use case. While I could have added a new API just for this (marking
userspace memory as wipe-on-crash), making it part of secretmem instead
gives some additional defense-in-depth protection for both users who
only need wiping, and for users who only want secretmem's additional
protection against kernel memory read primitives so I think everyone
wins here.
next prev parent reply other threads:[~2026-08-11 15:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 16:27 [PATCH 0/4] CRASH_ZEROIZE: Wipe secrets before kdump Jan Sebastian Götte
2026-07-31 16:27 ` [PATCH 1/4] of/kexec: fix typo in comment (usable-memory-range) Jan Sebastian Götte
2026-08-11 13:43 ` Rob Herring
2026-07-31 16:27 ` [PATCH 2/4] kexec: add CRASH_ZEROIZE to wipe secrets before kdump Jan Sebastian Götte
2026-07-31 16:35 ` sashiko-bot
2026-07-31 16:27 ` [PATCH 3/4] mm/secretmem: zeroize secret pages " Jan Sebastian Götte
2026-07-31 16:40 ` sashiko-bot
2026-08-11 14:53 ` David Hildenbrand (Arm)
2026-08-11 15:05 ` Jan Sebastian Götte [this message]
2026-08-11 15:14 ` David Hildenbrand (Arm)
2026-08-11 15:18 ` Jan Sebastian Götte
2026-07-31 16:27 ` [PATCH 4/4] security/keys: zeroize key payloads " Jan Sebastian Götte
2026-07-31 16:45 ` sashiko-bot
[not found] <20260731154608.153258-1-linux@jaseg.de>
[not found] ` <20260731154608.153258-4-linux@jaseg.de>
2026-08-05 4:26 ` [PATCH 3/4] mm/secretmem: zeroize secret pages " sashiko-bot
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=adcafa9f-2365-484b-b31e-19006833efaa@jaseg.de \
--to=contact@jaseg.de \
--cc=david@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kexec@lists.infradead.org \
--cc=keyrings@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-security-module@vger.kernel.org \
--cc=linux@jaseg.de \
/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