Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by "Mekala, SunithaX D"
Mon, 02 Nov 2026 17:30
RE: [Intel-wired-lan] [PATCH net] igb: fix uninitialized first word in igb_set_eeprom()
Author: "Mekala, SunithaX D"
Date: Mon, 02 Nov 2026 17:30
Date: Mon, 02 Nov 2026 17:30
39 lines
21289 bytes
21289 bytes
> -----Original Message-----
> From: Linkui Xiao <xiaolinkui@126.com>
> Sent: Wednesday, September 16, 2026 6:53 AM
> To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; andrew+netdev@lunn.ch; davem@davemloft.net; edumazet@google.com; >kuba@kernel.org; pabeni@redhat.com
> Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Linkui Xiao <xiaolinkui@kylinos.cn>; stable@vger.kernel.org
> Subject: [Intel-wired-lan] [PATCH net] igb: fix uninitialized first word in igb_set_eeprom()
>
> From: Linkui Xiao <xiaolinkui@kylinos.cn>
>
> igb_set_eeprom() does a read/modify/write of the first EEPROM word when
> the requested range does not start on a word boundary. The error from
> that read is stored in ret_val but never checked, so the function keeps
> going with an eeprom_buff[0] that kmalloc() left uninitialised and
> programs it into the NVM. The read failure is not even reported, because
> ret_val is overwritten by the result of the write below.
>
> The write is followed by nvm.ops.update(), so the corrupted word is
> covered by a fresh checksum and the damage survives a reload.
>
> The read of the last word already bails out on error, do the same for the
> first one. Skipping the write also keeps the stale ret_val from being
> lost, and igb_set_fw_version() is correctly not called since the NVM was
> left untouched.
>
> Fixes: 9d5c824399de ("igb: PCI-Express 82575 Gigabit Ethernet driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Linkui Xiao <xiaolinkui@kylinos.cn>
> ---
> drivers/net/ethernet/intel/igb/igb_ethtool.c | 2 ++
> 1 file changed, 2 insertions(+)
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> (A Contingent worker at Intel)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads