Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2975915rdb; Mon, 4 Dec 2023 12:50:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5DfgtuH/FZp/PThN2urb6k6N4pJ/fewtjWoV7aZ/InHhVD4M9tYMDBiaCNSp512YphpQv X-Received: by 2002:a17:902:ced2:b0:1cf:c5db:937b with SMTP id d18-20020a170902ced200b001cfc5db937bmr5971691plg.48.1701723046133; Mon, 04 Dec 2023 12:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701723046; cv=none; d=google.com; s=arc-20160816; b=lJd78qI5L+ZLj5YAt4CBoyGZ4aRKzDNAj8G49+s2bMI6HssMWNaDMv5xD2/0yM9IOL ZvlmbAhs2JOY+Y9Wj5ZLIzGjV7iX8jU+WMHzrYNsymJp6OAyymvtxcm/jpkhLJ6AxMWq LvxonheQGgttNnEZ2pdqW/1t517yN025ptNAPUgFjbgMPiUbgL4lE1x1LqCzlbK5q9OR XfRfII3LxHPLSWZGyQyQfGnNPo3WQyb72Z/xzH51C2Hld0dWXiMlBNHyC2CLB3jcjx6S Fg3gN0UoirXgxz1TMCSyCinJ+aDhUDFQvpi1L7qLyQlJdTnwkMpteGzDr6r8UrnkLxTP VYZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=IvcuO1hSSnoLO74Nmy5OlV/+o+qw+L0ddRc9j5Pdrsw=; fh=l6BrhxX45MMaC5134hTlhpmPPu60SXPj1hO08VzQEcc=; b=Jwd60F48FWBNb71s0x/XU1jm5UeSeVo0UZTluIl4oO5u7eX6YLqG5Ww9QM+34HxYhR /JDg2mDsMb2CDzOmUVaV6Sy9sANp9xfk0xsMPbD6j7hOE1nIrgYDyae1EUdN5FYK2/Q2 Pd1Kl+0B6GvkK/kOYm23kBZ3IDBpNGnOznr0vYN+rtIo7AwqxSfyr7YReACHaqE8XPhS YFtQx7c1fFHJ92PrWXZcV3xHC3HjVQY0M3KCORrOC0xvCsPf+0gcswiq/xsvPMxz+wP1 EAfPj8I4v697JJVfvbTWDmluvIcUKH5Jxl337JaYltYrEU5iL6QYbKuJj5UKrvDA92F0 MsIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CT36PECD; spf=pass (google.com: domain of linux-wireless+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p10-20020a1709026b8a00b001d051143067si6286572plk.317.2023.12.04.12.50.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CT36PECD; spf=pass (google.com: domain of linux-wireless+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B5B79B20AFA for ; Mon, 4 Dec 2023 20:50:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2D2433094; Mon, 4 Dec 2023 20:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="CT36PECD" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1216C6; Mon, 4 Dec 2023 12:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=IvcuO1hSSnoLO74Nmy5OlV/+o+qw+L0ddRc9j5Pdrsw=; t=1701723034; x=1702932634; b=CT36PECD5yMVg7dW6ttKWy5WxO34gZuf8tZ8YZLpO9v7gqV dGXGRrVlLKshihCIfetnS2kv+oH5D8nNFUgJ2zBhpktqrRVeVkZz8rvf7xCHlBIftcigZh9HlPj7e p6kfoY5uJk9SFdxxNUXqjBRPjZvLnldBUcFbvjBbOEE5lTiYgz/OxOyZqtDawQoiOU4l0abwyg7Rl JvPTmdE4TUnwYFe4m48cBpXZ2DcDVgMRQ/aBGm6faGYoAN52Fg5qvQUArrecEpcpXMCiU6gBcdeKD nvvnAe/pWWoiOzEJgsRPtfTYsd2Iw7FCBoVBVhCPrvJb08bNcdw5TSGud4Fr7W6w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rAFte-0000000FFlL-3cj6; Mon, 04 Dec 2023 21:50:31 +0100 Message-ID: <71d0f8424661b0d7b2c371e422416854790e477a.camel@sipsolutions.net> Subject: Re: [PATCH AUTOSEL 4.14] wifi: cfg80211: lock wiphy mutex for rfkill poll From: Johannes Berg To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: syzbot+7e59a5bfc7a897247e18@syzkaller.appspotmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Date: Mon, 04 Dec 2023 21:50:29 +0100 In-Reply-To: <20231204203735.2095033-1-sashal@kernel.org> References: <20231204203735.2095033-1-sashal@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.1 (3.50.1-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2023-12-04 at 15:37 -0500, Sasha Levin wrote: >=20 > +++ b/net/wireless/core.c > @@ -202,7 +202,9 @@ static void cfg80211_rfkill_poll(struct rfkill *rfkil= l, void *data) > { > struct cfg80211_registered_device *rdev =3D data; > =20 > + wiphy_lock(&rdev->wiphy); This can't even _build_ on this old kernel?! Anyway, my locking rework only went into 6.7, so this doesn't make sense in any stable kernel, it's just not required. johannes