aboutsummaryrefslogtreecommitdiff
path: root/net/compat.c
diff options
context:
space:
mode:
authorGravatar Helge Deller <deller@kernel.org> 2024-01-26 09:32:20 +0100
committerGravatar Paolo Abeni <pabeni@redhat.com> 2024-01-30 12:43:18 +0100
commit60365049ccbacd101654a66ddcb299abfabd4fc5 (patch)
tree188301b262de1c2f1de58202bae8511012b3fcc9 /net/compat.c
parentselftests: net: add missing config for nftables-backed iptables (diff)
downloadlinux-60365049ccbacd101654a66ddcb299abfabd4fc5.tar.gz
linux-60365049ccbacd101654a66ddcb299abfabd4fc5.tar.bz2
linux-60365049ccbacd101654a66ddcb299abfabd4fc5.zip
ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
On a parisc64 kernel I sometimes notice this kernel warning: Kernel unaligned access to 0x40ff8814 at ndisc_send_skb+0xc0/0x4d8 The address 0x40ff8814 points to the in6addr_linklocal_allrouters variable and the warning simply means that some ipv6 function tries to read a 64-bit word directly from the not-64-bit aligned in6addr_linklocal_allrouters variable. Unaligned accesses are non-critical as the architecture or exception handlers usually will fix it up at runtime. Nevertheless it may trigger a performance penality for some architectures. For details read the "unaligned-memory-access" kernel documentation. The patch below ensures that the ipv6 loopback and router addresses will always be naturally aligned. This prevents the unaligned accesses for all architectures. Signed-off-by: Helge Deller <deller@gmx.de> Fixes: 034dfc5df99eb ("ipv6: export in6addr_loopback to modules") Acked-by: Paolo Abeni <pabeni@redhat.com> Link: https://lore.kernel.org/r/ZbNuFM1bFqoH-UoY@p100 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions