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 98E05347BC6; Tue, 21 Jul 2026 22:54:26 +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=1784674467; cv=none; b=BKSvk3SdRfP0AKWowgk5jLUx0B7hqVvfb/qTb3lb9U0CC6Xsfxx0QSJTeE+4TPUmAwrdvuJYo9FW6Z4tpqbOqlmzrPxm0gVaAmUd4+2EroFvV8KaUSvbCUFlxutzfmpvMUQR56wOaBYdM4D4aKPhbEOIk9ql8eYXhgl/IdYM8Hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784674467; c=relaxed/simple; bh=QDwrYKnGt6FEpciQ0aq5wZwol53+iIkXO7Hsatgr+7k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QP85Cl8wSwFgiIUh91sRsnwE/NhBeEVOekKeBPe+81YpqyjjlBYrMJUyUVY6Nl0IrEfTwbJrTw7vq7VR3TyI/HvDHuKAvpcExMNoSOKOZBMFZpqDpSi9Uwff+DjYK0T8sVaBOoKPARoRMEfACz2c1qeoXlD7WjihzQJ5lywEjNk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q2YFHyMj; 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="q2YFHyMj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09E771F00A3A; Tue, 21 Jul 2026 22:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784674466; bh=3giEoUy56IFSnN07SJj0ks3ym6Ekovu6PcoYvHfeRJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=q2YFHyMjsjtnSr9oYX4KsN8FRvyFzZb205HCENnJD8ZMu16306WhXxiq13JiOwmr1 Fq4GA6D13AXqADwFUQqnlfRmoKE8jqwjBKR3yd5ISZu+XNHzfQrGmVHyToVzpMmyOk aB3J0rffqfLC/qnaRZ1r90c9ZbFubgHZqNmtV0KQ= 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 5.10 553/699] mac802154: remove interfaces with RCU list deletion Date: Tue, 21 Jul 2026 17:25:12 +0200 Message-ID: <20260721152408.180503077@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152355.667394603@linuxfoundation.org> References: <20260721152355.667394603@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 5.10-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 @@ -705,7 +705,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); }