Re: [PATCH net v2 2/3] net: prevent rewrite of msg_name in sock_sendmsg()

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2023-09-18 21:26:05
Reply to
Jordan Rife, 2023-09-18
On Mon, Sep 18, 2023 at 4:49 PM Jordan Rife [off-list ref] wrote:
Just a heads up, there are also kernel_recvmsg/sock_recvmsg functions
that mirror the kernel_sendmsg/sock_sendmsg. If we are are doing this
quoted
1) Rename the current kernel_sendmsg() function to
kernel_sendmsg_kvec() and name  our new function kernel_sendmsg(). To
me this makes some sense, considering the new function is the more
generic of the two, and the existing kernel_sendmsg() specifically
accepts "struct kvec".
it creates an asymmetry between *sendmsg and *recvmsg function names.
If we wanted these to be similar then it means a rename to these
functions (e.g. kern_recvmsg becomes kern_recvmsg_kvec, rename
sock_recvmsg to kern_recvmsg).
I see. That's definitely outside the realm of bug fix.

If we have to keep the two consistent, then I suppose your existing
fix is the best approach for net. And any renaming to clarify the API
is best left for net-next.
Thread (14 messages) 14 messages, 2 authors, last reply 2023-09-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help