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 8CFF73FD12E for ; Mon, 15 Jun 2026 15:22:21 +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=1781536942; cv=none; b=bwZj5ETDul6nKZY4aLdrRtsg322sXAWkWCar8y8Ch3x1tSp84gw2aHEzGjmFLOgsa1zOS1SZQmiy1v0+5kuGL3J9jx164Qa7BoZ7yWAr41vpJb19flEs8tkx3gyrEtYlb+ajCSaVRtIe0B8vGftAx7dezPKxPf5Psh724XThFqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781536942; c=relaxed/simple; bh=OnMJ0FbcU2Vhmj+PZ5+1UmhAt3857Dk2E8pzDVdx7Fs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=oofESyIP3phlpZUSHh0re2wawDwvlditWEU7yaBSVr4DCIqQubnMfbOVMA5vQ7hbD3IAQHk8mGT/XRbSgm5xmXfvAbVA2avv7g0FubJPwlxjsDFX3b2lxYUIpn/WraXSmXdVJaMm3IMwwCyTwbGHq2WYth1LAREmetC7iRQw+j4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AT8D31US; 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="AT8D31US" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D8511F000E9; Mon, 15 Jun 2026 15:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781536941; bh=JRb13pY4P2MQwL37wSjR9mus+mGfNGAuQwJ3DXirKnE=; h=Subject:To:Cc:From:Date; b=AT8D31US7hLxC1N06Jqal4n/p0FFAsccXF3f7eMdY3DxWTr7RPBLQDu+OVAQFctby jeJCLsjipLr/cAfe8nAWNJtsLCpsqAVBHTo+OYE5Y4pLP+ozAkXd5/g+ECqI+ApM41 zqVlP5fq4PlQXUlveIWGdGLb4br9DPqtfWSI1vgo= Subject: FAILED: patch "[PATCH] net: phonet: free phonet_device after RCU grace period" failed to apply to 6.1-stable tree To: santosh.kalluri129@gmail.com,horms@kernel.org,kuba@kernel.org,remi@remlab.net Cc: From: Date: Mon, 15 Jun 2026 16:50:45 +0200 Message-ID: <2026061545-rival-anything-e56f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 71de0177b28da751f407581a4515cf4d762f6296 # git commit -s git send-email --to '' --in-reply-to '2026061545-rival-anything-e56f@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 71de0177b28da751f407581a4515cf4d762f6296 Mon Sep 17 00:00:00 2001 From: Santosh Kalluri Date: Wed, 3 Jun 2026 17:08:43 -0700 Subject: [PATCH] net: phonet: free phonet_device after RCU grace period MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit phonet_device_destroy() removes a phonet_device from the per-net device list with list_del_rcu(), but frees it immediately. RCU readers walking the same list can still hold a pointer to the object after it has been removed, leading to a slab-use-after-free. Use kfree_rcu(), matching the lifetime rule already used by phonet_address_del() for the same object type. Fixes: eeb74a9d45f7 ("Phonet: convert devices list to RCU") Cc: stable@vger.kernel.org Signed-off-by: Santosh Kalluri Acked-by: Rémi Denis-Courmont Reviewed-by: Simon Horman Signed-off-by: Jakub Kicinski diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 86325b7fc1b6..ad44831d6745 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c @@ -108,7 +108,7 @@ static void phonet_device_destroy(struct net_device *dev) for_each_set_bit(addr, pnd->addrs, 64) phonet_address_notify(net, RTM_DELADDR, ifindex, addr); - kfree(pnd); + kfree_rcu(pnd, rcu); } }