[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <090742d5-e801-4c12-a49f-b3e06adde82d@redhat.com>
Date: Tue, 1 Oct 2024 10:57:38 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Aleksander Jan Bajkowski <olek2@...pl>, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, horms@...nel.org,
jacob.e.keller@...el.com, john@...ozen.org, ralf@...ux-mips.org,
ralph.hempel@...tiq.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net v3 1/1] net: ethernet: lantiq_etop: fix memory
disclosure
On 9/23/24 23:49, Aleksander Jan Bajkowski wrote:
> When applying padding, the buffer is not zeroed, which results in memory
> disclosure. The mentioned data is observed on the wire. This patch uses
> skb_put_padto() to pad Ethernet frames properly. The mentioned function
> zeroes the expanded buffer.
>
> In case the packet cannot be padded it is silently dropped. Statistics
> are also not incremented. This driver does not support statistics in the
> old 32-bit format or the new 64-bit format. These will be added in the
> future. In its current form, the patch should be easily backported to
> stable versions.
>
> Ethernet MACs on Amazon-SE and Danube cannot do padding of the packets
> in hardware, so software padding must be applied.
>
> Fixes: 504d4721ee8e ("MIPS: Lantiq: Add ethernet driver")
> Signed-off-by: Aleksander Jan Bajkowski <olek2@...pl>
For future submissions, please avoid adding the cover letter in case of
a single patch.
Thanks,
Paolo
Powered by blists - more mailing lists