From: Alexandra Winter <wintera@linux.ibm.com>
To: Kees Cook <kees@kernel.org>, Jakub Kicinski <kuba@kernel.org>
Cc: linux-kernel@vger.kernel.org, ",
linux-s390@vger.kernel.org" <linux-s390@vger.kernel.org>, ",
netdev" <netdev@vger.kernel.org>
Subject: Re: [PATCH] net: Convert proto_ops::getname to sockaddr_storage
Date: Wed, 18 Dec 2024 13:26:37 +0100 [thread overview]
Message-ID: <aa6c671d-f4f4-446d-b024-923555c3f041@linux.ibm.com> (raw)
In-Reply-To: <20241217023417.work.145-kees@kernel.org>
I had to shorten the CC-List to get this message through our mailserver, sorry about that.
On 17.12.24 03:34, Kees Cook wrote:
> diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
> index 7929df08d4e0..2612382e1a48 100644
> --- a/net/iucv/af_iucv.c
> +++ b/net/iucv/af_iucv.c
> @@ -848,14 +848,14 @@ static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
> return err;
> }
>
> -static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
> - int peer)
> +static int iucv_sock_getname(struct socket *sock,
> + struct sockaddr_storage *addr, int peer)
> {
> DECLARE_SOCKADDR(struct sockaddr_iucv *, siucv, addr);
> struct sock *sk = sock->sk;
> struct iucv_sock *iucv = iucv_sk(sk);
>
> - addr->sa_family = AF_IUCV;
> + siucv->sa_family = AF_IUCV;
This does not compile, it needs to be:
siucv->siucv_family = AF_IUCV;
>
> if (peer) {
> memcpy(siucv->siucv_user_id, iucv->dst_user_id, 8);
With this change feel free to add my
Acked-by: Alexandra Winter <wintera@linux.ibm.com>
next prev parent reply other threads:[~2024-12-18 12:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 2:34 [PATCH] net: Convert proto_ops::getname to sockaddr_storage Kees Cook
2024-12-17 3:59 ` Christoph Hellwig
2024-12-17 14:38 ` Chuck Lever
2024-12-18 12:26 ` Alexandra Winter [this message]
2024-12-18 21:44 ` Kees Cook
2024-12-19 9:36 ` Alexandra Winter
2025-01-14 20:59 ` Allison Henderson
2025-01-16 7:53 ` Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa6c671d-f4f4-446d-b024-923555c3f041@linux.ibm.com \
--to=wintera@linux.ibm.com \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox