[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251127222710.324357cf@robin>
Date: Thu, 27 Nov 2025 22:27:10 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Kees Cook <kees@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, linux-hardening@...r.kernel.org,
Linux Trace Kernel <linux-trace-kernel@...r.kernel.org>, Masami Hiramatsu
<mhiramat@...nel.org>, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Linus Torvalds <torvalds@...ux-foundation.org>, "Gustavo A. R. Silva"
<gustavoars@...nel.org>
Subject: Re: [PATCH] overflow: Introduce struct_offset() to get offset of
member
On Thu, 27 Nov 2025 18:00:01 -0800
Kees Cook <kees@...nel.org> wrote:
> I'd rather it keep the same API style as struct_size() if it's going to share the naming style.
Fair enough. Then I won't change it.
>
> If you have an instance and not a pointer, just slap on a & :)
:-p
I guess that would work. Although it will kinda look a bit strange.
At least to me.
-- Steve
Powered by blists - more mailing lists