Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2190303/?format=api
{ "id": 2190303, "url": "http://patchwork.ozlabs.org/api/patches/2190303/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260129095723.7269-1-poros@redhat.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260129095723.7269-1-poros@redhat.com>", "list_archive_url": null, "date": "2026-01-29T09:57:23", "name": "[net] iavf: fix PTP use-after-free during reset", "commit_ref": null, "pull_url": null, "state": "under-review", "archived": false, "hash": "f9e71d22dfe6771165e5bc9f1b2279534d76460f", "submitter": { "id": 74657, "url": "http://patchwork.ozlabs.org/api/people/74657/?format=api", "name": "Petr Oros", "email": "poros@redhat.com" }, "delegate": { "id": 109701, "url": "http://patchwork.ozlabs.org/api/users/109701/?format=api", "username": "anguy11", "first_name": "Anthony", "last_name": "Nguyen", "email": "anthony.l.nguyen@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260129095723.7269-1-poros@redhat.com/mbox/", "series": [ { "id": 490189, "url": "http://patchwork.ozlabs.org/api/series/490189/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=490189", "date": "2026-01-29T09:57:23", "name": "[net] iavf: fix PTP use-after-free during reset", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/490189/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2190303/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2190303/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=8mHBNZOQ;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f1vhX2XWfz1xtL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 29 Jan 2026 20:57:47 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 1B66160868;\n\tThu, 29 Jan 2026 09:57:46 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id AfsChD0H2SDn; Thu, 29 Jan 2026 09:57:45 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 5AF0760862;\n\tThu, 29 Jan 2026 09:57:45 +0000 (UTC)", "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists1.osuosl.org (Postfix) with ESMTP id 3EF82D3\n for <intel-wired-lan@lists.osuosl.org>; Thu, 29 Jan 2026 09:57:44 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 2489560862\n for <intel-wired-lan@lists.osuosl.org>; Thu, 29 Jan 2026 09:57:44 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id HI8Fw5TclUeE for <intel-wired-lan@lists.osuosl.org>;\n Thu, 29 Jan 2026 09:57:42 +0000 (UTC)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 983FD6085F\n for <intel-wired-lan@lists.osuosl.org>; Thu, 29 Jan 2026 09:57:41 +0000 (UTC)", "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-329-_Kn7WWcYPY6B2Aa8H1AueA-1; Thu,\n 29 Jan 2026 04:57:36 -0500", "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 674371956096; Thu, 29 Jan 2026 09:57:33 +0000 (UTC)", "from ShadowPeak.redhat.com (unknown [10.45.225.83])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id C837A1800109; Thu, 29 Jan 2026 09:57:28 +0000 (UTC)" ], "X-Virus-Scanned": [ "amavis at osuosl.org", "amavis at osuosl.org" ], "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ", "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5AF0760862", "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 983FD6085F" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1769680665;\n\tbh=0Z7GQGT6PLKvmdoazn0BpeLlPo5mZl2/bnsp2MVA+EA=;\n\th=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:Cc:From;\n\tb=8mHBNZOQL84qzUjRpT7+2Lg09Y7HoEuHmSG81TfBSVoqMrtqssibX4NRRKRvBqjCW\n\t xtogrPP3cSVyAi9NLNxmq0cAsbejk9B5/ksC+e9IcBppLTrjjJq+WeKhQCdnnaA9He\n\t aj4YdPMBnmJ7BbPt0VMz8ISghr3rm5ivC2qPJOS07SN7I69BFVVnyBsUE5tNfoS0g9\n\t scaG0T3Nyyis6B6cCyQxlkOt3u1RAgJ+V37J64KB3G04n85rxLT8MDf8alS/kdt6jR\n\t Jsy4k0hctP0YgU0t0DFgEE0hDgMDlzM8bYe0XAQzkAwLW5bnvI6n7VixTgPgGXtYwe\n\t xU4/C3Ypbpngg==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124;\n helo=us-smtp-delivery-124.mimecast.com; envelope-from=poros@redhat.com;\n receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp3.osuosl.org 983FD6085F", "X-MC-Unique": "_Kn7WWcYPY6B2Aa8H1AueA-1", "X-Mimecast-MFC-AGG-ID": "_Kn7WWcYPY6B2Aa8H1AueA_1769680653", "From": "Petr Oros <poros@redhat.com>", "To": "netdev@vger.kernel.org", "Date": "Thu, 29 Jan 2026 10:57:23 +0100", "Message-ID": "<20260129095723.7269-1-poros@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111", "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com;\n s=mimecast20190719; t=1769680660;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=0Z7GQGT6PLKvmdoazn0BpeLlPo5mZl2/bnsp2MVA+EA=;\n b=FcEHRicMvnX1B8zt63gnVJxjxpekNQVtbkGNUVPsHjej3FOpa7daKhMVeyaIJb/9Coa8y6\n QKPs7l3Zp/RG1J0Uzf/HuH8aHdA1jf1VnAIKj7uXxtqUP1nrsDp6rR8eMJPUKXE2sOftv4\n AwBKSjfnw8C3V5KdC1+9c8LE7Ixj/Fk=", "X-Mailman-Original-Authentication-Results": [ "smtp3.osuosl.org;\n dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "smtp3.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=FcEHRicM" ], "Subject": "[Intel-wired-lan] [PATCH net] iavf: fix PTP use-after-free during\n reset", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Cc": "ivecera@redhat.com, Przemek Kitszel <przemyslaw.kitszel@intel.com>,\n Richard Cochran <richardcochran@gmail.com>,\n Eric Dumazet <edumazet@google.com>,\n linux-kernel@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,\n Tony Nguyen <anthony.l.nguyen@intel.com>, Simon Horman <horms@kernel.org>,\n Mateusz Polchlopek <mateusz.polchlopek@intel.com>,\n Jacob Keller <jacob.e.keller@intel.com>, Jakub Kicinski <kuba@kernel.org>,\n Paolo Abeni <pabeni@redhat.com>, \"David S. Miller\" <davem@davemloft.net>,\n intel-wired-lan@lists.osuosl.org", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "Commit 7c01dbfc8a1c5f (\"iavf: periodically cache PHC time\") introduced a\nworker to cache PHC time, but failed to stop it during reset or disable.\n\nThis creates a race condition where `iavf_reset_task()` or\n`iavf_disable_vf()` free adapter resources (AQ) while the worker is still\nrunning. If the worker triggers `iavf_queue_ptp_cmd()` during teardown, it\naccesses freed memory/locks, leading to a crash.\n\nFix this by calling `iavf_ptp_release()` before tearing down the adapter.\nThis ensures `ptp_clock_unregister()` synchronously cancels the worker and\ncleans up the chardev before the backing resources are destroyed.\n\nFixes: 7c01dbfc8a1c5f (\"iavf: periodically cache PHC time\")\nSigned-off-by: Petr Oros <poros@redhat.com>\n---\n drivers/net/ethernet/intel/iavf/iavf_main.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c\nindex 4b0fc8f354bc90..0dd58ce5a53ab1 100644\n--- a/drivers/net/ethernet/intel/iavf/iavf_main.c\n+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c\n@@ -3025,6 +3025,8 @@ static void iavf_disable_vf(struct iavf_adapter *adapter)\n \n \tadapter->flags |= IAVF_FLAG_PF_COMMS_FAILED;\n \n+\tiavf_ptp_release(adapter);\n+\n \t/* We don't use netif_running() because it may be true prior to\n \t * ndo_open() returning, so we can't assume it means all our open\n \t * tasks have finished, since we're not holding the rtnl_lock here.\n@@ -3200,6 +3202,8 @@ static void iavf_reset_task(struct work_struct *work)\n \tiavf_change_state(adapter, __IAVF_RESETTING);\n \tadapter->flags &= ~IAVF_FLAG_RESET_PENDING;\n \n+\tiavf_ptp_release(adapter);\n+\n \t/* free the Tx/Rx rings and descriptors, might be better to just\n \t * re-use them sometime in the future\n \t */\n", "prefixes": [ "net" ] }