From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=152.67.88.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796192486; b=NLRD3EOGmPbkxVwfRbzwV3jCHOIQWW4dOZ77eKSTEDyRwJnw0XycGMHxR+OI5UAY6mWv 41sR+0kG2tn41FDcdf5jpveeBPCd2/aySDDXBGjzCnbbg7SdnH3fXfnv8sOXDAvPoCF86 YXaombJzoMjsGbHzG/SDbjvh4T8fj6P4jGHmGChjcrLWbP4EsHN4cvP4RSLK27bj8FTsR sI0j6016pEJSOqtQtrAMdcg63pvN8/Z5JssMMSpB/l3IsKreaIhceWtdV79brslH+dIb+ KMf42iU6pZY/Qqb3Vg48EIz4JOeOydHJuub2h8QZ/LuVtf/+qsFf6K/BKolWwsAaBcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796192486; h=DMARC-Filter:DKIM-Signature:DKIM-Signature:Message-Instance: DKIM2-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=Mfpnli8anmkX5M1vzsbh3Vlp1Ays1p65nf1kBcvSfzA=; b=pcVhYVauQSr1kt/WKdIvicIt1KWQ3yl2oaZLceIbzzJqcnRga4twhnaHp9J3PDHD5qnc UT8zFwr4N398dhOtX7eIxcw8an7g0wNquBVeQI+/xLEYL0kbmDAk8r8KMzjGB2ISFdll/ 6v6byBBUhc08f4Wvo6xXZguujWBs+rKv0NG2MnHy7PWgPXDlPDp2h52JV1fHQL9zNk2/v DXhfVeUmgjY8ZbBtsn/K67cl3Zjq1ktmn3UBlSXFHte1edQQnvWyPVhf3hsaNcNgNEZBw 80dCjQ49DkhwqmXYHEbi1TC5pW8xJTQdXGgF/Xj7eKF+gU+eU64Neo/FsnwJkIp6MXQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cubiculum.net; spf=pass smtp.mailfrom=cubiculum.net; dkim=pass header.d=cubiculum.net header.i=@cubiculum.net header.a=ed25519-sha256 header.s=202501e header.b=GJoY6wO0; dkim=pass header.d=cubiculum.net header.i=@cubiculum.net header.a=rsa-sha256 header.s=202501r header.b=ZB1Qlskr; arc=none smtp.remote-ip=152.67.88.11 Received: from mail.cubiculum.net (mail.cubiculum.net [152.67.88.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1100606A331 for ; Wed, 2 Dec 2026 06:21:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F1100606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cubiculum.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cubiculum.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass header.d=cubiculum.net header.i=@cubiculum.net header.a=ed25519-sha256 header.s=202501e header.b=GJoY6wO0; dkim=pass (2048-bit key, unprotected) header.d=cubiculum.net header.i=@cubiculum.net header.a=rsa-sha256 header.s=202501r header.b=ZB1Qlskr DKIM-Signature: v=1; a=ed25519-sha256; s=202501e; d=cubiculum.net; c=relaxed/relaxed; r=y; h=Message-ID:Date:Subject:To:From; t=1796192423; bh=Mfpnli8anmkX5M1vzsbh3Vl p1Ays1p65nf1kBcvSfzA=; b=GJoY6wO01RhPUaf7ogPTr331rZHJ7fpMnmp/l8AihT6Y33xtg/ sE93QPWMW3bZODq+z3jFo7KrjkOAF5QsIkCg==; DKIM-Signature: v=1; a=rsa-sha256; s=202501r; d=cubiculum.net; c=relaxed/relaxed; r=y; h=Message-ID:Date:Subject:To:From; t=1796192423; bh=Mfpnli8anmkX5M1vzsbh3Vl p1Ays1p65nf1kBcvSfzA=; b=ZB1QlskroHv4nYJHmIHv3G7yBSBmF1qmXaDQ5R7F3Vf6bpR4Tw 3U8WSDHbwc/hcpRcUUCZzKgiej3xxNNkzSCWZ0K5K0gO4soVa+MTXWo3p8610JlFGbBrrQE0cb1 YUae4MynFhJUuU2WTR4zwVclwpjTrppOjZlvbj+mcAudJ7LBeHfeJP9DhR94t4FegpdwNUcICpp gfJq9YnHGtbPK23ADyKQfwU6yZdWcDf6FgCOa5sx00A9hoAb1cyW1oaFO8IFGDW0g+YTbraAZvC CafX3H6jwK2CpMo8ZayiGxt8+/bTbw2WOsLQmiI8cJghztf/dVRLGHkWslaoj6auCAg==; Message-Instance: m=1; h=sha256:qB7JIlQ7+N6WTwVUA/JxeFzGFDIRbXgrYMj9rT4/ CXM=:Mfpnli8anmkX5M1vzsbh3Vlp1Ays1p65nf1kBcvSfzA=; DKIM2-Signature: i=1; m=1; t=1796192423; d=cubiculum.net; mf=PGtlcm5lbEBj dWJpY3VsdW0ubmV0Pg==; rt=PGtlcm5lbEBjdWJpY3VsdW0ubmV0Pg==,PHBrc2hpaEByZWFs dGVrLmNvbT4=,PGpvaGFubmVzQHNpcHNvbHV0aW9ucy5uZXQ+,PGxpbnV4LXdpcmVsZXNzQHZn ZXIua2VybmVsLm9yZz4=; s=v2-ed25519-20260926:ed25519-sha256:ENBjOr/wka9bWAjJ urgGY8Wgy06ceXzzWIYEV8CeExX5yRZ6YlnvHw7liQdZwTkcrRqrhonCVI1WbSWC0ZmaBg==| v2-rsa-20260926:rsa-sha256:I8F0ScKPyd1LsaOvzWd9F9GKhyEaGycgJqAvdPqZodeVb6UW RaALSwZD+MkfG4F9AVx4RxJXq+E0qynfCElXOdMaDhucM+jieDxeZyvTn49fhLmBmDSYvqBa nGe8ess/t8kl/IaUTcIxq21oV8z+4s1W6uR/+aJqVaoz3GAvMtkjDu6FvuUCqiupoMlXCGgg a7KqGsyrfhXZH9IjHKBPhi4xIOcgWpU6IAGyIXysd/oSrnKLptya1VvCP8Q2jtg/Fyz8Q/7Z Ylyam+od2vlGzn8sTk3Tn+fIGXu8ocQX/WH+CrNrbeAIIswsgWPHj39KGehi2F5+MCYtqwTS 8bTSWg==; From: rcfa To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , rcfa Subject: Re: [PATCH wireless] wifi: mac80211: deauthenticate on stop if an association just completed Date: Wed, 2 Dec 2026 06:20:13 +0000 Message-ID: <20261202062013.2603976-1-kernel@cubiculum.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261101201251.1106968-1-kernel@cubiculum.net> References: <20261101201251.1106968-1-kernel@cubiculum.net> X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Johannes, One more ping on this one, because the race is real and still open. cfg80211_leave() leaves an association that is still in progress to mac80211, and ieee80211_mgd_stop() abandons it only if it is still in progress. If the association response is processed in between, ieee80211_do_stop() tears down an interface that is associated: the WARN on sta_info_flush()'s result, "destroying interface with valid links" for an MLD, and links whose channel contexts are never unassigned. Here it happened for real, not in a test: NetworkManager took the interface down for a scan MAC change in the same second as an MLO association completed. With the end state forced by a test hook and without the patch, the next round ended in a NULL pointer dereference in ieee80211_rx_mgmt_beacon(); with it, the interface deauthenticates on stop and reconnects cleanly. ieee80211_mgd_quiesce() already closes the same window for suspend (be72afe0a438); the patch does the same on stop. As far as I can see, nothing merged or posted since then touches this path. Ping-Ke guessed the patch was dropped because it reads like LLM output. It was found and written with Claude Code, and the changelog says so, as coding-assistants.rst asks. But I reproduced the problem, tested the fix on the hardware, and I stand behind it. If you'd rather fix the race another way, I'm glad to test that here. Otherwise, please reconsider this one. I can send a v2 with a shorter changelog if that helps. Thanks, rcfa (Drafted with Claude Code at my request.)