* [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types
[not found] <sjomqddm5sik7zufnpozmagkbgnjiu55vbozruh4nsehg7hqqi@hl3jl5yde5pl>
@ 2023-04-21 20:27 ` Alejandro Colomar
2023-04-21 20:35 ` Eric Blake
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2023-04-21 20:27 UTC (permalink / raw)
To: linux-man
Cc: Alejandro Colomar, Bastien Roucariès, Eric Blake, glibc,
GCC, Stefan Puiu, Igor Sysoev, Rich Felker, Andrew Clayton,
Richard Biener, Zack Weinberg, Florian Weimer, Joseph Myers,
Jakub Jelinek, Sam James
Link: <https://austingroupbugs.net/view.php?id=1641>
Reported-by: Bastien Roucariès <rouca@debian.org>
Reported-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Cc: glibc <libc-alpha@sourceware.org>
Cc: GCC <gcc@gcc.gnu.org>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Cc: Igor Sysoev <igor@sysoev.ru>
Cc: Rich Felker <dalias@libc.org>
Cc: Andrew Clayton <andrew@digital-domain.net>
Cc: Richard Biener <richard.guenther@gmail.com>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Joseph Myers <joseph@codesourcery.com>
Cc: Jakub Jelinek <jakub@redhat.com>
Cc: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
Hi Eric,
I took your informal review as a "Reviewed-by". Please confirm.
I've also modified the small wording thingy you suggested.
I'll float this patch in the list in case anyone has comments, and
will push some time this weekend (depending on many variables).
Cheers,
Alex
man3type/sockaddr.3type | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/man3type/sockaddr.3type b/man3type/sockaddr.3type
index 2fdf56c59..cf8d601f5 100644
--- a/man3type/sockaddr.3type
+++ b/man3type/sockaddr.3type
@@ -117,6 +117,14 @@ .SH HISTORY
was invented by POSIX.
See also
.BR accept (2).
+.PP
+These structures were invented before modern ISO C strict-aliasing rules.
+If aliasing rules are applied strictly,
+these structures would be extremely difficult to use
+without invoking Undefined Behavior.
+POSIX Issue 8 will fix this by requiring that implementations
+make sure that these structures
+can be safely used as they were designed.
.SH NOTES
.I socklen_t
is also defined in
--
2.40.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types
2023-04-21 20:27 ` [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types Alejandro Colomar
@ 2023-04-21 20:35 ` Eric Blake
0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2023-04-21 20:35 UTC (permalink / raw)
To: Alejandro Colomar
Cc: linux-man, Alejandro Colomar, Bastien Roucariès, glibc, GCC,
Stefan Puiu, Igor Sysoev, Rich Felker, Andrew Clayton,
Richard Biener, Zack Weinberg, Florian Weimer, Joseph Myers,
Jakub Jelinek, Sam James
On Fri, Apr 21, 2023 at 10:27:18PM +0200, Alejandro Colomar wrote:
> Link: <https://austingroupbugs.net/view.php?id=1641>
> Reported-by: Bastien Roucariès <rouca@debian.org>
> Reported-by: Alejandro Colomar <alx@kernel.org>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> Cc: glibc <libc-alpha@sourceware.org>
> Cc: GCC <gcc@gcc.gnu.org>
> Cc: Stefan Puiu <stefan.puiu@gmail.com>
> Cc: Igor Sysoev <igor@sysoev.ru>
> Cc: Rich Felker <dalias@libc.org>
> Cc: Andrew Clayton <andrew@digital-domain.net>
> Cc: Richard Biener <richard.guenther@gmail.com>
> Cc: Zack Weinberg <zack@owlfolio.org>
> Cc: Florian Weimer <fweimer@redhat.com>
> Cc: Joseph Myers <joseph@codesourcery.com>
> Cc: Jakub Jelinek <jakub@redhat.com>
> Cc: Sam James <sam@gentoo.org>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
> ---
>
> Hi Eric,
>
> I took your informal review as a "Reviewed-by". Please confirm.
> I've also modified the small wording thingy you suggested.
For the avoidance of doubt ;)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-21 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <sjomqddm5sik7zufnpozmagkbgnjiu55vbozruh4nsehg7hqqi@hl3jl5yde5pl>
2023-04-21 20:27 ` [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types Alejandro Colomar
2023-04-21 20:35 ` Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).