Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 375C1606A325 for ; Tue, 1 Dec 2026 15:20:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=oZU5PLey; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KJZA31Oq Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 07EE7608EB; Tue, 1 Dec 2026 15:20:22 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id VgT6yoZC-p90; Tue, 1 Dec 2026 15:20:20 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 4DCA4607E2 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796138420; b=KBNi/a6rITVF7bwBbcBXC0QayXih1oGQGwNXIN0//9lxVYPu6wh313bKDv/vD4RD1Cas XGQ7TLu6BPRo2PPcePN5aQ+HdPYmBrCb3OpJdOHyM9g46RpurT6KD1pizE8M4YEjx0OoY Hmus0/n3USDmj7drcm7/z5E6gBVv16cTCTnOChgKGT6d/scU13VeoW1/dDqj4T6Kura2T //1onUAoAdSeF+H/fM/JQTuolMwHXi901pG4/sDXLicgIji5PUaVznzce8EYEDO/xSkhS rzMFIL0QVMwYYGrYiKV+bT0UwM8ojJHHkZsKiZpxkrRZood/qWDCanX6HyajG7M3LOw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796138420; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:From:To:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding:X-BeenThere:X-Mailman-Version: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=IiDaB2VU0YGDUl6l7BOQA+euD1+e9PIiQcMJNQWoCOc=; b=PYRVaAuvCb/CN/x1nCWgDnff47OUL0UYmUayZGI/6GNYYIgH8OPEFTFdiHqCw/2Pg+Md ZRTmbjnxdvDpYNXuyZeUl/9y0rbHPUzRR2xQrlsuDzlaFvrq2oWnVu7oTKZkO3xMa0fyk +M9+AnGd88V1r2vNFXa3AxILA+R4Z+loy+mJQD0fp0TK++HB/1VIWR00+NSHN47SQDTg8 HPwYYErex8yxv+hFHFwZoY3EQbzq33eiG8cSFim0jEKykQwXtuRioaX+JKpyn4nhy/KRs lCDycl/icennwKdW4DeJ2nXzGprY3y2gHxZ7381mFFK+f2wXuIewj8fftimoERjPXnQ== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796138420; bh=IiDaB2VU0YGDUl6l7BOQA+euD1+e9PIiQcMJNQWoCOc=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=oZU5PLeyg7NosnZifXBdoGpAusGzfnK4qgk64VMFHFw9NcjdDuhl2JIN21GxPGoN+ uvY3iDRO8WttIVsgwDVwYr2wPvunVv6DRmW5GTi31IiknwU0m1BZXM7Ah14Apd9yet n7xR72B8bpzDv5vSYPJ6p56luts9GFKUwDbQXC9lUK49Cvedc+U66XbipVxmoQoR6C SkSZleQ6/VL39bmqcsY2mAr8JyVMSY7tEUaaf9yqy4XfOOKRwSZRZpWDiKkwk++ma+ ziMlvJjuyZqGmoHmiBtG9NrI++QXAUo3lL+nG7XVnmhiSdBwWGxW1p4wXDg3l21ks7 OYCogjz5IysOg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 4DCA4607E2; Tue, 1 Dec 2026 15:20:20 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 0B1CA325 for ; Tue, 1 Dec 2026 15:20:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F0FA280F81 for ; Tue, 1 Dec 2026 15:20:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Mxgb-s5sVVLn for ; Tue, 1 Dec 2026 15:20:17 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 963C780F7B Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=198.175.65.19 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.19; helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KJZA31Oq Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by smtp1.osuosl.org (Postfix) with ESMTPS id 963C780F7B for ; Tue, 1 Dec 2026 15:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796138418; x=1827674418; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=IiDaB2VU0YGDUl6l7BOQA+euD1+e9PIiQcMJNQWoCOc=; b=KJZA31Oq4ioKNvLwbz3QlLOcXlkdJePI9KBQIdw8eZTMh9ybdcK3kDAU lMWd4OO/yOA7Zrh1o7ZxvW6prI0BQI+ka6MMgrv6JfZtw9M+7rCZNa3Lb xMMwenf1HSwGRgiWqJG9P7uB2ML7dfAB7qQzo97g7hBUMn+nGt//yT03K ESpXh+KpgG7qjI7rHAcqC+BfaW3SVWq8uksI8y59SuMEAVzudiIFIucGm cfNlDEXOU74uTet1TUUOruoBdzxY6aDmPWYjPzgMeqSzmvMK+2ta6uoaE CMotA/bJqdd8JtHYypbBM92v5E/CZGqPJTFagPi7fZIHblm6hrQlle3YY A==; X-CSE-ConnectionGUID: ZW04yzzASMOzpbFf7zOfoA== X-CSE-MsgGUID: RUvD2b3lRuKSSpAe1Pbdyg== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="5093133" X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="5093133" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 07:20:04 -0800 X-CSE-ConnectionGUID: kSsRqwGuTw2yl52Rr9YGVQ== X-CSE-MsgGUID: 1NpbmqMdShaHfOpGRpAKTg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="13112564" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by orviesa004.jf.intel.com with ESMTP; 01 Dec 2026 07:20:04 -0800 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Subject: [PATCH iwl-next v4 0/2] ice: eRoT adapter NVM update guard Date: Tue, 1 Dec 2026 16:20:00 +0100 Message-ID: <20261201152002.52045-1-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.56.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Parse the external Root of Trust capability and reject a PLDM capsule that does not carry every component an eRoT adapter authenticates, before any flash bank is erased. Changes in this v4 respin: - Apply the two nitpicks on 2/2 from Przemek's review: move the dev_caps declaration to the end of the declaration block, and use goto free_caps on the ice_discover_dev_caps() failure path. - Add the Reviewed-by tags of Przemek Kitszel and Tomasz Lichwala, given on v3 and standing with the nitpicks fixed. On the Manifest: the AQ activation select mask and the pending update capabilities have no Manifest entry, so the driver writes that bank and requests no activation for it. It can neither activate nor roll back the bank, and the devlink docs now say so. Two points still need an answer from the firmware side, and a Tested-by from a named adapter would carry the rest: whether shadow RAM word 0x4E and component ID 0x12 are the right values for the PQC Manifest, and whether the eRoT authenticates a Manifest against the active image, which decides whether writing it before the other banks are activated is safe. Two defects next to this path are not part of this series because they predate it: an ice_aq_task left linked in pf->aq_wait_list when an AQ command submission fails, because ice_aq_prep_for_event() has no undo helper, and unchecked lengths in lib/pldmfw (a 32-bit size_t wrap in pldm_check_fw_space(), and a component bitmap whose length is never checked against the component count). Fixes go out separately; the new module type ID only widens the first one. Aleksandr Loktionov (2): ice: parse external Root of Trust capability ice: reject partial NVM update on eRoT adapters Documentation/networking/devlink/ice.rst | 24 +++ .../net/ethernet/intel/ice/ice_adminq_cmd.h | 1 + drivers/net/ethernet/intel/ice/ice_common.c | 7 + .../net/ethernet/intel/ice/ice_fw_update.c | 192 +++++++++++++++--- drivers/net/ethernet/intel/ice/ice_type.h | 4 + include/linux/net/intel/libie/adminq.h | 1 + 6 files changed, 202 insertions(+), 27 deletions(-) -- 2.56.0