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 3CB0A38757B for ; Tue, 22 Sep 2026 15:11:59 +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=1790089920; cv=none; b=mzWfT9LeN0xuHkjbE1c7iqsrhdgQMS2+AYnEbh2mvIJL5vV6BpIbK4I5jzHey0qXN56P42pJHRvk8sr3Z0PMkC8jL9jgXV89IS6pmgpn92oqdEn/phKoJdlWoY1w+vfs9X7tNNPFQSn1DFnlVcwyxIQN5rex5x2iN3jQuBR5Vvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790089920; c=relaxed/simple; bh=g7ixTmWjjOZc0YjtKKQHPZn4CnA5nOiRoYBs/YEDAVs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=nDe8vt6v6Q0IG1GrEPVf3y27QPtRQlC6pjSwK7yt132YnnV/1HCtiJKw7bVIu8F5E36DjsWZJM43V7Edi0aOjOywwr/1v0r8WoX0o4GArJ/A7+v+ioYmdZ3i8h5pFLBC3jMjbDh+nz7iB8sh6+GzMC0/Ph51eNzpAmsD20QSyWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g6pac91s; 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="g6pac91s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DEC91F000FF; Tue, 22 Sep 2026 15:11:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790089919; bh=NJMIB4YedVrtXX+C2n2ZZhQ5RARC0cUAZeHgDrLk5rs=; h=Subject:To:Cc:From:Date; b=g6pac91s054j9IVT5lJOw5/1yGgqThzGU+QXs6NxU+KNWz6H52TdIztOCUWSHr+dt /moDh/99tdX4yPNdm0XdSv26X0UgkIWICWTQntqPbbeThGToZkbFFKa9QMvIXBZ1y+ udkgox1Ng/caY4lB1h/kvSjMYz7eFtQvOtkaWlNU= Subject: FAILED: patch "[PATCH] wifi: mac80211: refuse to make a monitor active when it has" failed to apply to 6.18-stable tree To: lucid_duck@justthetip.ca,johannes.berg@intel.com Cc: From: Date: Tue, 22 Sep 2026 17:01:21 +0200 Message-ID: <2026092221-dislodge-perfume-02cd@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=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x 2b04d6556964ae9f89819b86a0a7801e39c3aae5 # git commit -s git send-email --to '' --in-reply-to '2026092221-dislodge-perfume-02cd@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 2b04d6556964ae9f89819b86a0a7801e39c3aae5 Mon Sep 17 00:00:00 2001 From: Devin Wittmayer Date: Fri, 4 Sep 2026 13:03:38 -0700 Subject: [PATCH] wifi: mac80211: refuse to make a monitor active when it has no queue A monitor interface only gets a TXQ if it's created active, and one can't be added later. Setting the flag on a down interface is still allowed, so the driver is handed a monitor with no queue. ath9k dereferences it: BUG: kernel NULL pointer dereference, address: 0000000000000066 RIP: 0010:ath_tx_node_init+0x49/0x170 [ath9k] ath9k_add_interface+0x10c/0x140 [ath9k] drv_add_interface+0x54/0x250 [mac80211] ieee80211_do_open+0x32f/0x800 [mac80211] Reached with CAP_NET_ADMIN by "iw dev X set monitor active" followed by "ip link set X up". RTNL is held, so netlink operations block behind it. Refuse the flag when there is no queue to give. Fixes: 79af1f866193 ("mac80211: avoid allocating TXQs that won't be used") Cc: stable@vger.kernel.org Signed-off-by: Devin Wittmayer Link: https://patch.msgid.link/20260904200338.10829-1-lucid_duck@justthetip.ca Signed-off-by: Johannes Berg diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index d3558f0c7550..a1753335eb9d 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -115,6 +115,10 @@ static int ieee80211_set_mon_options(struct ieee80211_sub_if_data *sdata, return -EBUSY; } + /* TXQs are reserved in ieee80211_if_add() and cannot be added later */ + if ((params->flags & MONITOR_FLAG_ACTIVE) && !sdata->vif.txq) + return -EOPNOTSUPP; + /* validate whether MU-MIMO can be configured */ if (!ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF) && !ieee80211_hw_check(&local->hw, NO_VIRTUAL_MONITOR) &&