Thread (8 messages) 8 messages, 3 authors, 2025-11-28

Re: [PATCH] overflow: Introduce struct_offset() to get offset of member

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-11-28 03:27:20
Also in: linux-hardening, lkml

On Thu, 27 Nov 2025 18:00:01 -0800
Kees Cook [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help