[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4418ac5b-bdca-6a8d-16b1-302568482350@intel.com>
Date: Wed, 1 Mar 2023 14:27:10 -0800
From: Jesse Brandeburg <jesse.brandeburg@...el.com>
To: Petr Oros <poros@...hat.com>, <netdev@...r.kernel.org>
CC: <aleksander.lobakin@...el.com>, <anthony.l.nguyen@...el.com>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <scott.w.taylor@...el.com>,
<intel-wired-lan@...ts.osuosl.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net v3] ice: copy last block omitted in
ice_get_module_eeprom()
On 3/1/2023 12:47 PM, Petr Oros wrote:
> ice_get_module_eeprom() is broken since commit e9c9692c8a81 ("ice:
> Reimplement module reads used by ethtool") In this refactor,
> ice_get_module_eeprom() reads the eeprom in blocks of size 8.
> But the condition that should protect the buffer overflow
> ignores the last block. The last block always contains zeros.
...
>
> Fixes: e9c9692c8a81 ("ice: Reimplement module reads used by ethtool")
> Signed-off-by: Petr Oros <poros@...hat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Tested-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Thanks Petr!
Powered by blists - more mailing lists