Thread (13 messages) flat view 13 messages, 4 authors, 3d ago

Re: [PATCH net 1/2] ipv4: mcast: getsockopt: do not overwrite past optlen

From: Breno Leitao <leitao@debian.org>
Date: 2026-08-13 14:49:31
Also in: lkml, stable

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help