From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE258423A97; Wed, 4 Feb 2026 15:03:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217395; cv=none; b=dXGttkPPHDPDd6cUCEiu6EbZN7u9BLy0mtZ5VtMOPgKqXqIKyxen3m7mWhpLeQBEUPFACqA82JsQb5Lc+F4siB6htrUFB8TUGUpnbcSIDEjAAVMxN6h5X1NDY7Qzcd2L6T+lq1sLLj63loJBQkcqu1up4Dq83zfmrn7d3lg6jbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217395; c=relaxed/simple; bh=58fBoT+WzU0p9Hcl5z7b9wbOZGL9fpdtlbXd0288OBQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UIZdPm6wgKRPUqn8hcifi9ph6EdGysgWi2iwc9dNjVVx1n8UEERIpJibm6PL4/YBnheT92xMMVWMO1Sri60cHXlVTalkk6tdZgYJtfNO6sjxp3+rSrtcHi/BtXlfj8GKr7H34WiIUz85if7HAYhHe282ib/a2YdNwAmJvpbN5PU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r+OHSyTp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="r+OHSyTp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B5EEC2BCAF; Wed, 4 Feb 2026 15:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217394; bh=58fBoT+WzU0p9Hcl5z7b9wbOZGL9fpdtlbXd0288OBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+OHSyTpf+1aKKrWDPFHVrLTRUiqbkRi5Y8sdywBsy9KuXvKlQNSQeeCp03IvCV3Q DfX99IuLC+Yd6w7c3zJ2iEFbk9YlNiPbP7QxgPI+vHwKnKTtBINnmgNCsHqn756yIt osW8E1vQshEi1wbf6HTEZoUyG3i1uoOXZgnqNTv4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jouni Malinen , Johannes Berg Subject: [PATCH 5.15 203/206] wifi: cfg80211: fix wiphy delayed work queueing Date: Wed, 4 Feb 2026 15:40:34 +0100 Message-ID: <20260204143905.540805147@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@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: Johannes Berg commit b743287d7a0007493f5cada34ed2085d475050b4 upstream. When a wiphy work is queued with timer, and then again without a delay, it's started immediately but *also* started again after the timer expires. This can lead, for example, to warnings in mac80211's offchannel code as reported by Jouni. Running the same work twice isn't expected, of course. Fix this by deleting the timer at this point, when queuing immediately due to delay=0. Cc: stable@vger.kernel.org Reported-by: Jouni Malinen Fixes: a3ee4dc84c4e ("wifi: cfg80211: add a work abstraction with special semantics") Link: https://msgid.link/20240125095108.2feb0eaaa446.I4617f3210ed0e7f252290d5970dac6a876aa595b@changeid Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -5,7 +5,7 @@ * Copyright 2006-2010 Johannes Berg * Copyright 2013-2014 Intel Mobile Communications GmbH * Copyright 2015-2017 Intel Deutschland GmbH - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2024 Intel Corporation */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -1624,6 +1624,7 @@ void wiphy_delayed_work_queue(struct wip unsigned long delay) { if (!delay) { + del_timer(&dwork->timer); wiphy_work_queue(wiphy, &dwork->work); return; }