From: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
Cc: Kees Cook <kees@kernel.org>,
linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org,
tony.luck@intel.com, kernel-dev@igalia.com, kernel@gpiccoli.net,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH] pstore/ftrace: Factor KASLR offset in the core kernel instruction addresses
Date: Thu, 9 Apr 2026 13:13:49 -0300 [thread overview]
Message-ID: <df4c3da5-37f6-e695-dcf7-cb15f19d8fbc@igalia.com> (raw)
In-Reply-To: <f1f2408c-8fd0-2fa8-052a-176485e81961@igalia.com>
On 01/04/2026 19:28, Guilherme G. Piccoli wrote:
> On 31/03/2026 18:48, Kees Cook wrote:
>> [...]
>>> /* This doesn't need to be atomic: speed is chosen over correctness here. */
>>> static u64 pstore_ftrace_stamp;
>>> +unsigned long kaslr_off;
>>
>> This should at least be "static", but why have it sitting in the data
>> segment at all, only to be scraped out by attackers with a arbitrary read
>> primitives? Can we just call kaslr_offset() directly as needed instead
>> (it's already an inline)?
>>
>> -Kees
>>
>
> Hi Kees, thanks for the review!
>
> Totally feasible - I thought in some form of optimization, since it's
> tracing, but if you think doesn't worth, I can easily just put the call
> to kaslr_offset() there, as I did in my internal V0 heh
>
> I can try some perf measurements, let's see how it goes ...
> Cheers,
>
>
> Guilherme
Just for closing the loop here: V2 was just sent.
Link:
https://lore.kernel.org/r/20260409153830.2560633-1-gpiccoli@igalia.com/
Cheers!
next prev parent reply other threads:[~2026-04-09 16:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 20:00 [PATCH] pstore/ftrace: Factor KASLR offset in the core kernel instruction addresses Guilherme G. Piccoli
2026-03-13 20:22 ` Guilherme G. Piccoli
2026-03-13 20:28 ` Steven Rostedt
2026-03-13 20:57 ` Guilherme G. Piccoli
2026-03-15 14:09 ` Steven Rostedt
2026-03-15 15:02 ` Guilherme G. Piccoli
2026-03-28 21:47 ` Guilherme G. Piccoli
2026-03-31 21:48 ` Kees Cook
2026-04-01 22:28 ` Guilherme G. Piccoli
2026-04-09 16:13 ` Guilherme G. Piccoli [this message]
2026-04-07 3:58 ` kernel test robot
2026-04-09 16:31 ` Kees Cook
2026-04-09 18:57 ` Guilherme G. Piccoli
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=df4c3da5-37f6-e695-dcf7-cb15f19d8fbc@igalia.com \
--to=gpiccoli@igalia.com \
--cc=kees@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=kernel@gpiccoli.net \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tony.luck@intel.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