Re: [PATCH net 1/2] ipv4: mcast: getsockopt: do not overwrite past optlen
From: Breno Leitao
Date: Thu Aug 13 2026 - 10:54:39 EST
On Tue, Aug 11, 2026 at 06:51:27PM +0100, David Laight wrote:
> I would suggest (again) that these changes be done starting with the syscall
> 'glue' and adding an extra getsockopt_new() to the function call table(s).
> Then changing the protocols one by one to provide the new function and
> finally deleting the old entry.
> That way each protocol code only needs changing once.
Isn't this basically what we're doing today, without a new syscall?
> I'd also wrap the copy_to_iter() in an inline function so that most code
> doesn't have to care about the implementation.
That sounds doable. What would this inline function look like?
Would you mind sharing what you have in mind?
Thanks for the discussion,
--breno