From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 21AED46C4AD; Tue, 21 Jul 2026 15:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784649539; cv=none; b=WlWl2dgVWmko7E1CNtpqG26Tj2n+WyRDj3hfzR9WcP9wQNXFFt3jUthrKaGElEYt2YTxCAnKdZhFa/2TxljIXxAjtJHOeKitoayF39Hz2o++bQq/0f4Ov77suLcZKj7TFlyr32io5IVBjEN1bnIzyHoUXTLoS3cqIDpda728ovE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784649539; c=relaxed/simple; bh=L/w5J5edgvg54H/TGsZZ38YuaoIov72drRrmTytcFWg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=drAIj5X0XBI/5/CziPxvOQ6IAY+bhed2trtHWuffF+KJGziqkgnJfO+j7e0U/m2ceBUhCZe/Al6Q8QH7vSk+eP+Qs7PZNR0I4+Xg1PDtCs3L7o/2C3y7yFP1d9a4qAkR0eRCXn7UC5EeXFnT0R8pp9qYQFRo1Q3v91L4Nze2CV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h6Tx+/5/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="h6Tx+/5/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 823E31F000E9; Tue, 21 Jul 2026 15:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784649538; bh=5rtA4KLDT46MU/RqSp/N0i7SW+9j0APjR122vVqD6oM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=h6Tx+/5/P7DF8y5DVMyODtA1wPxBX/pOJCzow5/MOzaNPEfTK+VvLvjf+U+rMh3oh TQKEIsUU9wid5oEzIAfB7AMWKsFeZQ8KlIBh15Al/KA3bg1/a2ln2zZo/ZXARPkFaC vROy+LsSrB9Oxq2/LwQl8RE8rN4VxOo4U2oluUrk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Faizal Rahim , KhaiWenTan , Aleksandr Loktionov , Tony Nguyen , Sasha Levin Subject: [PATCH 7.1 0616/2077] igc: skip RX timestamp header for frame preemption verification Date: Tue, 21 Jul 2026 17:04:49 +0200 Message-ID: <20260721152607.334025690@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152552.646164743@linuxfoundation.org> References: <20260721152552.646164743@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: KhaiWenTan [ Upstream commit 38b7a274cf84af9b1f4b602b8e2741565b81947b ] When RX hardware timestamping is enabled, a 16-byte inline timestamp header is added to the start of the packet buffer, causing FPE handshake verification to fail. Because an incorrect packet buffer is passed to igc_fpe_handle_mpacket(), the mem_is_zero() check inspects the timestamp metadata instead of the actual mPacket payload. As a result, valid Verify/Response mPackets can be missed when inline RX timestamps are present. Pass pktbuf + pkt_offset to igc_fpe_handle_mpacket() so it inspects the actual mPacket payload instead of the timestamp header. Fixes: 5422570c0010 ("igc: add support for frame preemption verification") Co-developed-by: Faizal Rahim Signed-off-by: Faizal Rahim Signed-off-by: KhaiWenTan Reviewed-by: Aleksandr Loktionov Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igc/igc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 8ac16808023cc6..c470d2354ce8ff 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -2649,7 +2649,7 @@ static int igc_clean_rx_irq(struct igc_q_vector *q_vector, const int budget) } if (igc_fpe_is_pmac_enabled(adapter) && - igc_fpe_handle_mpacket(adapter, rx_desc, size, pktbuf)) { + igc_fpe_handle_mpacket(adapter, rx_desc, size, pktbuf + pkt_offset)) { /* Advance the ring next-to-clean */ igc_is_non_eop(rx_ring, rx_desc); cleaned_count++; -- 2.53.0