From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.amicon.ru (unknown [77.108.111.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7064E37AA63; Wed, 18 Mar 2026 12:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.108.111.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773836446; cv=none; b=Jg9gX6PBEwVhOKxLjPKl9E584ARBwEY9rPx29fo6YuAyBel5ouYDusfvzYd8k3Ra+OUISuyHXQsuIAuMyW4ahTWlnmlXcH/dxhrxgNTyx4PsGmP9NApSiw2R4EgRrTMDBCFoVwAQVg/taVKNE8pfn+pm/UNXIrjjZhq75GGtB/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773836446; c=relaxed/simple; bh=ItOuvsOZrEPLHOd5gWwx5fQdWlJ4DU7hNyCbq1giguU=; h=Content-Type:From:To:CC:Subject:Date:Message-ID:MIME-Version; b=gC0myHuUym+rnTEsgsxsE8eXJHSf+CUMWXabdSDRKIewzG10JJvyIGIBtNQfubxLjt04xKGQ3+16guH+9S7luc+XzKLBs8sp7yjDU2fPwdxdfAsyafu+XsCCJoEctuBI7InQff1XX/DF++zUYtVrgwMo0FUuQS0/kbHm/nIwF2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amicon.ru; spf=pass smtp.mailfrom=amicon.ru; dkim=pass (2048-bit key) header.d=amicon.ru header.i=@amicon.ru header.b=FDTv+W2I; arc=none smtp.client-ip=77.108.111.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amicon.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amicon.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amicon.ru header.i=@amicon.ru header.b="FDTv+W2I" Content-Transfer-Encoding: 8bit Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; d=amicon.ru; s=mail; c=simple/simple; t=1773835531; h=from:subject:to:date:message-id; bh=ItOuvsOZrEPLHOd5gWwx5fQdWlJ4DU7hNyCbq1giguU=; b=FDTv+W2IZK87rI9ZMckRMex3s4IPtz7Ep4mzUZIZ14/ZYQu+fbGmG5g0EIHwYZv9Cw+BZQT95vm xG7LiN9iG1V8yNCs9+TM9224RVmtLqjUG1NbNQlb8zMwYfxCOhXumt7RvDlH1OyYQ/fFMKdIWnACm IFJrIpTvaYYXszKUnz/ckQ57a1XItP/U1OpzWVZU6vyCkqrZGXWB/uGacjY3s8xElmfjIYcTP09yr ihjgcCUvlQ8gZ/DdnFwWa1dbz1enCBi9rYI/Qviv5fJeh77Petpz18txs7wYCWwIaQHrMhPHUIE78 RYSGsdThtw7zk9tqX+P8qiUZu9K0IMfb0++g== Received: from example.com (172.16.2.46) by mail.amicon.lan (192.168.0.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.27; Wed, 18 Mar 2026 15:05:30 +0300 From: Agalakov Daniil To: Tony Nguyen CC: Agalakov Daniil , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , , , , , "Daniil Iskhakov" , Roman Razov Subject: [PATCH net 0/3] e1000/e1000e: fix uninitialized memory access in EEPROM write Date: Wed, 18 Mar 2026 15:05:04 +0300 Message-ID: <20260318120512.687149-1-ade@amicon.ru> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: mail.amicon.lan (192.168.0.59) To mail.amicon.lan (192.168.0.59) This series addresses a common issues related to uninitialized memory access during EEPROM write operations in the e1000 and e1000e drivers. In the e1000 driver, the return value of e1000_read_eeprom() was not checked, and both e1000 and e1000e drivers performed endianness conversion on the entire buffer, including uninitialized interior words. The changes are: - add missing error checks for e1000_read_eeprom() in e1000; - limit endianness conversion to the boundary words being read, avoiding a loop over entire (and partially uninitialized) buffer in both e1000 and e1000e. Patch 1: e1000: check return value of e1000_read_eeprom Patch 2: e1000: fix endianness conversion of uninitialized words Patch 3: e1000e: fix endianness conversion of uninitialized words Co-developed-by: Iskhakov Daniil Signed-off-by: Iskhakov Daniil Signed-off-by: Agalakov Daniil --- .../net/ethernet/intel/e1000/e1000_ethtool.c | 18 +++++++++++++----- drivers/net/ethernet/intel/e1000e/ethtool.c | 19 ++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) -- 2.51.0