Re: [RFC][PATCH] overflow: Twiddle with struct_size()

2025-03-07 Thread Kees Cook
On Wed, Mar 05, 2025 at 02:43:15PM +0100, Peter Zijlstra wrote: > Hi Kees, > > I keep getting hit by the struct_size() brigade, and I keep having > trouble reading that macro. > > I had a wee poke and ended up with the below, WDYT? Ah, and to clarify, this is just for readability? (There have be

Re: [RFC][PATCH] overflow: Twiddle with struct_size()

2025-03-06 Thread Peter Zijlstra
On Wed, Mar 05, 2025 at 11:13:00PM -0800, Kees Cook wrote: > On Wed, Mar 05, 2025 at 02:43:15PM +0100, Peter Zijlstra wrote: > > Hi Kees, > > > > I keep getting hit by the struct_size() brigade, and I keep having > > trouble reading that macro. > > > > I had a wee poke and ended up with the below