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
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 19 Jan 2022 16:56:42 +0100
From:   Ard Biesheuvel <>
To:     Alexey Smirnov <>
Cc:     Arnd Bergmann <>,
        "David S. Miller" <>,
        Grygorii Strashko <>,
        Ilias Apalodimas <>,
        Jakub Kicinski <>,
        linux-omap <>,
        "open list:BPF JIT for MIPS (32-BIT AND 64-BIT)" 
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 <> 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