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 3788A4302E6; Tue, 21 Jul 2026 20:02:24 +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=1784664145; cv=none; b=M/OdOd1KfZhIFx5rx8RabeBnPXdL/yOhMGnQFEhzYkMLi1XKjA3zYSQGMHHP40hiQt/+rrlSiu3OcCwveMfG9/blgglm8q8PvofbgfTq/NM0nLrHdZpqIN/ZbqFmTZcjM76fTKgPSB26fNHZgpCO28apPj58uqOyWbsbwOEvNqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664145; c=relaxed/simple; bh=mu6pq5VnXcP44RB4+9Py40obVNHpsIkg6OZwKYOVVH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cj/1XFtt356fu8uJkCDZUj1ESKluE0RaD5NI6hDFIC+9bYhXgdIHKRyhlP/6ROHGxocm3wNm3gzFEz/+z8of03eOZ1cp1OXzEy8lq3Y5oPmpH9iNvCQxkxGBa9ETDua6eTH5begWNuhCeFRVT9Km4cMkkLD4qpRk8QJcK8u2a2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FNXrw0a4; 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="FNXrw0a4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 973201F00A3A; Tue, 21 Jul 2026 20:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784664144; bh=fnP4Xeotzn6nEuG+PWoKaMtTUZ7UTjIGDMa7wFdV9s8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FNXrw0a4Vplkb2oC50Vm6o+GP6R+ltN1gdxDf9MGtT76mNFco+xTiJ7VqMIqakp8n JLX+uyIllGtKDfsJ9SV8eqAFSC4BTGdsM+qpvCY0VVRDE9LfLHkTORgPwx1UDj+Aoo 9xNOpotmwHhdluZj9hroCA+ak1+jrxnlxuK3QuKU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+36256deb69a588e9290e@syzkaller.appspotmail.com, Yousef Alhouseen , Kuniyuki Iwashima , Miquel Raynal , Paolo Abeni Subject: [PATCH 6.12 1089/1276] mac802154: remove interfaces with RCU list deletion Date: Tue, 21 Jul 2026 17:25:32 +0200 Message-ID: <20260721152510.354339064@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@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 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yousef Alhouseen commit 539dfcf69105d8d3d4d677b71de6e5ede2e6dfa0 upstream. Queue wake, stop, and disable paths walk local->interfaces under RCU. The bulk hardware teardown path removes entries with list_del(), so an asynchronous transmit completion can follow a poisoned list node in ieee802154_wake_queue(). Use list_del_rcu() as in the single-interface removal path. The following unregister_netdevice() waits for in-flight RCU readers before freeing the netdevice, so no separate grace-period wait is needed. Fixes: 592dfbfc72f5 ("mac820154: move interface unregistration into iface") Reported-by: syzbot+36256deb69a588e9290e@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=36256deb69a588e9290e Cc: stable@vger.kernel.org Signed-off-by: Yousef Alhouseen Reviewed-by: Kuniyuki Iwashima Reviewed-by: Miquel Raynal Link: https://patch.msgid.link/20260701164222.9094-1-alhouseenyousef@gmail.com Signed-off-by: Paolo Abeni Signed-off-by: Greg Kroah-Hartman --- net/mac802154/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -703,7 +703,7 @@ void ieee802154_remove_interfaces(struct mutex_lock(&local->iflist_mtx); list_for_each_entry_safe(sdata, tmp, &local->interfaces, list) { - list_del(&sdata->list); + list_del_rcu(&sdata->list); unregister_netdevice(sdata->dev); }