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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 19 Jan 2022 16:56:42 +0100 From: Ard Biesheuvel <ardb@...nel.org> To: Alexey Smirnov <s.alexey@...il.com> Cc: Arnd Bergmann <arnd@...db.de>, "David S. Miller" <davem@...emloft.net>, Grygorii Strashko <grygorii.strashko@...com>, Ilias Apalodimas <ilias.apalodimas@...aro.org>, Jakub Kicinski <kuba@...nel.org>, linux-omap <linux-omap@...r.kernel.org>, "open list:BPF JIT for MIPS (32-BIT AND 64-BIT)" <netdev@...r.kernel.org> Subject: Re: [PATCH net] net: cpsw: avoid alignment faults by taking NET_IP_ALIGN into account On Wed, 19 Jan 2022 at 15:25, Alexey Smirnov <s.alexey@...il.com> wrote: > > Doesn't CPSW_HEADROOM already include NET_IP_ALIGN and has actually more strict > alignment (by sizeof(long)) than CPSW_HEADROOM_NA? Yes, and that is exactly the problem. NET_IP_ALIGN is used to deliberately *misalign* the start of the packet in memory, so that the IP header appears aligned.
Powered by blists - more mailing lists