https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272965
--- Comment #15 from [email protected] --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9ee759f3676f700f8224a95216f659f87f5d9ae9 commit 9ee759f3676f700f8224a95216f659f87f5d9ae9 Author: Michal Meloun <[email protected]> AuthorDate: 2025-05-01 08:54:05 +0000 Commit: Michal Meloun <[email protected]> CommitDate: 2025-05-04 11:48:04 +0000 Decorate IPv4 structures used for byte buffer overlays as packed. The C language only allows pointer casting to another type if both sides have compatible alignments, unaligned casts causes undefined behavior. Since we do not have declared (and therefore not checked) mbuf alignments for the various input functions in the IP stack, the worst case (alignment to char*) should be expected. A lot of work still needs to be done on IPv6, especially on the terrible accesses to in6_addr members. It should have no performance impact on all unaligned architectures. MFC after: 1 month Reviewed by: kib PR: 272965 Differential Revision: https://reviews.freebsd.org/D50103 sys/netinet/dccp.h | 2 +- sys/netinet/ip.h | 4 ++-- sys/netinet/ip_var.h | 2 +- sys/netinet/pim.h | 2 +- sys/netinet/tcp.h | 2 +- sys/netinet/udp.h | 2 +- tests/sys/netinet/ip_reass_test.c | 12 ++++++++---- 7 files changed, 15 insertions(+), 11 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.
