# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/09/11272305
- Thread: https://ratatoskr.run/netdev/2023/09/11272121/t.md

```text
On Mon, Sep 18, 2023 at 4:49 PM Jordan Rife [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
>
> > 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.
```
