lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20190511200235.GA257@gmail.com> Date: Sat, 11 May 2019 16:02:35 -0400 From: Sowmini Varadhan <sowmini05@...il.com> To: Linus Torvalds <torvalds@...ux-foundation.org> Cc: Jason Gunthorpe <jgg@...lanox.com>, David Miller <davem@...emloft.net>, Doug Ledford <dledford@...hat.com>, linux-rdma <linux-rdma@...r.kernel.org>, Linux List Kernel Mailing <linux-kernel@...r.kernel.org>, Netdev <netdev@...r.kernel.org> Subject: Re: Annoying gcc / rdma / networking warnings On (05/11/19 12:52), Linus Torvalds wrote: > > So David, arguably the kernel "struct sockaddr" is simply wrong, if it > can't contain a "struct sockaddr_in6". No? Is extending it a huge > problem for other users that don't need it (mainly stack, I assume..)? The ipv6 working group came up with sockaddr_storage to solve this. See RFC 2553. However, in practice, since sizeof(struct sockaddr_storage) is much larger than simply creating a union of sockaddr_in and sockaaddr_in6, most userspace networking applications will do the latter. The strucut sockaddr is the mereely the generic pointer cast that is expected to be used for the common posix fucntions like bind/connect etc. > Also equally arguably, the rdma code could just use a "struct > sockaddr_in6 for this use and avoid the gcc issue, couldn't it? It has Yes, that would be the right solution. --Sowmini
Powered by blists - more mailing lists