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 4332B43901B; Tue, 21 Jul 2026 22:24:05 +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=1784672646; cv=none; b=I+gyVUsHmBElFLCcF7mmh9/N4f858VOMkFoFlsrRP65MTTzCDpnnC6jAys/yhilkxCxbaZo1yQgxjrLuIxedADbl2sQfB92/kIZhxJdTLQreLLX8ADVZTe3P40ev6oy8mtvVOhrUsiCWYUjEhSE29gomBNhTvRIdQJfa9uA5AGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784672646; c=relaxed/simple; bh=peS7T21gnLZ/qYdzsl6hRAV9O5xreoxBF3H9bU2JegM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d5PDtSJO5bcZxSLnTe0eI3eMk35X3NV+3zDPk8jtjGQGW9kKgVA60Qb2LtuunCt57nvljkntOuNWTMZ7Ft48P+l/CW1bAnie3eS58AmaIJarBtpHLPqWCTpPXwLIxTirJsnZYdiewgAL1XKCtUbQedBtzGQ/ShmkXOqQBSOKBxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cTmIoM/V; 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="cTmIoM/V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A998F1F000E9; Tue, 21 Jul 2026 22:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784672645; bh=PTKjbYnYditAdKa2wez4ICuEvWiBxfuUjT9w2uGs0Ug=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cTmIoM/V5I1SA2nwYQMS80/nHB+CDPwCyZYWHUZehl5CMwMCrpt6RBdsJauWIkd+i upGOuVKANGKKzvyfwsFDc2Mki308D/idBN65vaY0TXnmW+1izwrwbED5YKNAswSg3V 6vzaHKwVJ9xle7ssLkAac/FwznahzY8XbU0cjdtw= 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.15 703/843] mac802154: remove interfaces with RCU list deletion Date: Tue, 21 Jul 2026 17:25:38 +0200 Message-ID: <20260721152421.863025531@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152405.946368001@linuxfoundation.org> References: <20260721152405.946368001@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-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); }