[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250709114313.GV452973@horms.kernel.org>
Date: Wed, 9 Jul 2025 12:43:13 +0100
From: Simon Horman <horms@...nel.org>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: netdev@...r.kernel.org, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
michal.kubiak@...el.com, mengyuanlou@...-swift.com,
duanqiangwen@...-swift.com, stable@...r.kernel.org
Subject: Re: [PATCH net 2/3] net: libwx: fix the using of Rx buffer DMA
On Wed, Jul 09, 2025 at 02:40:24PM +0800, Jiawen Wu wrote:
> The wx_rx_buffer structure contained two DMA address fields: 'dma' and
> 'page_dma'. However, only 'page_dma' was actually initialized and used
> to program the Rx descriptor. But 'dma' was uninitialized and used in
> some paths.
>
> This could lead to undefined behavior, including DMA errors or
> use-after-free, if the uninitialized 'dma' was used. Althrough such
> error has not yet occurred, it is worth fixing in the code.
>
> Fixes: 3c47e8ae113a ("net: libwx: Support to receive packets in NAPI")
> Cc: stable@...r.kernel.org
> Signed-off-by: Jiawen Wu <jiawenwu@...stnetic.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists