From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD10C376BE4 for ; Wed, 1 Jul 2026 16:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782924152; cv=none; b=g+wnAOdg8CR+tFRnE1rsWd6nz4yqlgJz9VrHa3KVpJfFCkWAGOzyFCFYu0e6nugQTAhXKUu08KNzQfKWJrvwLsV5pIMHZVj38uMhWAy4XHE05AM51zVEhfNLr+k28c8STckEXaqAeCj1H3xSh5zCzEwqx2ygm34GXh68fgRB5Ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782924152; c=relaxed/simple; bh=d9ZiF7LjaiiY1OZofmWsgVZV2t94SKMbzoBzxGqUi88=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KBfrAaemc8p9ioTs95z99TgTRRMsSOJIIWPz75gtyuoBklCi7UJGBVLGqIYIK+/sPjwH0aCTdUlWmmtwQ12XmjOeRhHQzknlZBZX+CFXOrDjNe0IkNfqhvgVhd/24wzNj94K4wjqmfIQOEDjLY4lu1oE/9zpIKQBhYD/AJvDv9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZSTGIew2; arc=none smtp.client-ip=209.85.128.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZSTGIew2" Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-80e4455b9a3so12876697b3.1 for ; Wed, 01 Jul 2026 09:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782924150; x=1783528950; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HUTIvVd7hXVFaVubObi/HnQ0CBjtLgoeqk9bLxy6OA4=; b=ZSTGIew275uqpmk0BEhIxaJsx7WtTwHZ7Ty+OwzZBbP0Bm6R4kc9d3qmUMdEDjP8s8 5BuliDbXsffYVavapIaqoFTq72zweZw9RDwzH+ijFoU9ndBjQIxdNBemMlxCQwkfKrdn f3AxrXsqMm9Di0mT56nKEv/zm/yTy1e8tYeTxVx2T9xwRwvPtjehnJL4g0FiRVpC2Siq hlbGhxm39ETzbZxQIOIRYBXHXVGsGaMlOiUI+0x5094PQGAUReqqe0vnkgUyHZWKI1jx ApLlTLguAApRmNvyVz48bEpY3oBWQH6Lr9RAxGqPwmbyf48f3xVOn8bQERxcWFF3+yCm aS7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782924150; x=1783528950; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HUTIvVd7hXVFaVubObi/HnQ0CBjtLgoeqk9bLxy6OA4=; b=dVchtGm9OqX/z2ex9I4BKx4VrlbinoVs2lE7Fsx5bQn1dUNHEgoSO24GydiO1c/8vN 3zCECE1/fwBW7NxzESC5YfXtmamj7Aze5x3agHsU6/+dEo7kZPEy2De4v3i4xz8eD63F DuHfZcsQl1Ge3kCBmXws0M80E312xqXjrRKMlhirZ2i+LErdyywc1X/rgC9YPaKF9ao2 R2kliyNQK8aEpcoYd9oUXiwRWm/uo3+P04zBD8B8HrRexbMpoim3GY7ldp0ca76d3+sz msuzTGK7d3wkdOOsDABeb/XO562o3NIHkD3ct5E71KQvYmnUWecx+NJ15JBb44W9ArzS P1eA== X-Forwarded-Encrypted: i=1; AHgh+RogkMRh0I3s16xMYKGvcPGoLlFZu5m5FcBG4dNwuI/b3yWp9oD9lk9+zkeoyUA5Bqou8dnioqw=@vger.kernel.org X-Gm-Message-State: AOJu0YyYzIf1kr3PgWsPLBOdecHnfAG56nqDO++Z9H/BTyiBrbXqMNgB NlhlaE0c6UXvGfciGRLLUspaO0qb2Nj6NF49tFPO0B80ONbD5ME0UFZ/ X-Gm-Gg: AfdE7ckiarygXPeSCmCOF+9yWHj3ADb+ZxTYBzPyTeS9pYR7/ZYu0F3oBU1zk7lFxsF y9s2ARTHICFxeylmtJKt4Pl0YqoOH+GIIShLz820483otQ2hfX640qDvqptWyqG6m+ZLR6NWBNR +V+/3Ixt2dMlL/KwCJl0U7xwaLqrMAqCAfeSltqJj+oSxESCZVEtUaETp7IwAXT/TDXJE8KAg8K 5YER7N5xvRY5ytHe0rQ0bZQ+R9D+WoZzc3ZMUuidPosAEeMFN1n1+UgXMomQCFKh6ND7GWM/krl 52SyuXozCxuIQFPqKA3sAh9x/48g2o4qILdKO3SCP0/v0Y6ua0Ts32AofXujLWEWIWJODRH3hEZ HhfarAmWxfa2PoMVbJ3jUThE1W19PdxqrnaCyTz1DEhEvpTNqZhWoKDf+OCX2PF0XxkGNm4afzJ xIO8MJ14TxO/Cu5y+UKfZ6C1svZg== X-Received: by 2002:a05:690c:734a:b0:80c:85c6:8987 with SMTP id 00721157ae682-8138b95e350mr17913177b3.70.1782924149728; Wed, 01 Jul 2026 09:42:29 -0700 (PDT) Received: from Dev-Null-MSI ([2a0d:3344:52ac:a808:98a4:4381:be45:536f]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81448cd06a1sm2213857b3.21.2026.07.01.09.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2026 09:42:29 -0700 (PDT) From: Yousef Alhouseen To: alex.aring@gmail.com, stefan@datenfreihafen.org, miquel.raynal@bootlin.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, marcel@holtmann.org, kuniyu@google.com, linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, syzbot+36256deb69a588e9290e@syzkaller.appspotmail.com, Yousef Alhouseen Subject: [PATCH net v2] mac802154: remove interfaces with RCU list deletion Date: Wed, 1 Jul 2026 18:42:22 +0200 Message-ID: <20260701164222.9094-1-alhouseenyousef@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260630211808.50440-1-alhouseenyousef@gmail.com> References: <20260630211808.50440-1-alhouseenyousef@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- Changes in v2: - Drop the redundant synchronize_rcu() noted by Kuniyuki Iwashima. - Clarify that unregister_netdevice() supplies the required RCU wait. - Narrow the subject and commit message to the list deletion bug. net/mac802154/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 000be60d9580..b823720630e7 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -703,7 +703,7 @@ void ieee802154_remove_interfaces(struct ieee802154_local *local) 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); } -- 2.55.0