Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2906585lqo; Tue, 21 May 2024 00:12:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVy0yNqJTBmV1K5vf+jzKl0cq2EFfmvQzPe8Ypcq9au3fs6vwVwch/LEHqDhD+PfZmdiF81Sk9qa/WqXZg40MjDcozN8kMUJicyVEhH1g== X-Google-Smtp-Source: AGHT+IGOzwHv1jFSjn917T5oAmf2kfB+aj4iRbtc70dmwCnP/1ZW/ke54Rb81qJ3lrRJPxG1ovBg X-Received: by 2002:a05:6a20:9498:b0:1ab:b369:7bd3 with SMTP id adf61e73a8af0-1afde1c572amr28527855637.38.1716275561089; Tue, 21 May 2024 00:12:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716275561; cv=pass; d=google.com; s=arc-20160816; b=gC3Hbe4HQv7N6M7hGG02i4TWa2jO00zFtX1calvaQt8qTBYqNx2cKa7osfOQPcn1bC bTiu3YFRJrx9/QwjYuPgC3v7NynlUsGXWqIDbVO7i6bVWg5hxP5K8ZE0keb1HbIwdQAF 2ruzFgM+TGkixdvHlY6XdB5Cs5dJVDQPIe6lNXeI8QgwUnU0WWo/PmBaZSK4d1uqqNkk a/XDXyApqg4wNnGloeFnQvI99DuASx9t/uKHzTC40OrftCOnaFLG1f0YW/VBTfbh+DYL 2VzuvAHFFQgwDX9zz5f7jVu6qDQqHpJl1uWEefq41s6oKZbT0PMX1r3YfkYNRogkzXOj XtQA== ARC-Message-Signature: i=2; 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=kDc7UT5LoZBe6PeytpnUZ/gKC0Dp4tl9wAP7S5bANS0=; fh=Dw1qkAGyiyVk8M7rGuzXXenLi+iXt9VexjiXCRYtl3Q=; b=DV0zVNsb20tWs30dHJI14RBKDFJPwm6C9k23sUmo3k+hhCPj3nijIJ7iPl/AcHaAPV j/6RgAwRJB6g+KfOKALuK7/VtR3D/hDAcVFNRvDXfDeOGw1V78f6uXZd9dIoOR4wGei5 d/hfdGa5I56wrEEILWoQSjSKpvnJ7qsIg5dHi/qpVPjjRQzBiMFv44k5PvuBS5uutyR8 OIsJcl3Y+UOUNjdnJ7TbJ+5Urp6Ly1d7jEWQ3IlhBUakDLR/y44/diEnWdiQAdocn4pk PHl34if2GmT8G5sVObtGDSbJmUpgNBHWQcTd8vWFoaCMKgW4a3h9AGCx8LgQNNkxOGPJ bffQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=gcEqeiaI; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7867-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-65c22cf6095si597977a12.725.2024.05.21.00.12.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:12:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7867-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=gcEqeiaI; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7867-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7867-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 86ADA281FCF for ; Tue, 21 May 2024 07:12:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D3904B5A6; Tue, 21 May 2024 07:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="gcEqeiaI" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 128274AEEF; Tue, 21 May 2024 07:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716275556; cv=none; b=SLDVcZ/cgRS5Sy2nNXvjzdmdLyxkRyhSDr4wG/bDMMhg4JzrPIUFMUWA9zKGaCsxsf3J0nhtWMqqhuFIZ3unMcPis7w3zrzTnAYaTQWwl5wZiJcXW0Gk8KIkoS3ybl1lV5OSuj7vkbS36x39L21mmVY9Uv4EAdG5xOdfX2lp28s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716275556; c=relaxed/simple; bh=kDc7UT5LoZBe6PeytpnUZ/gKC0Dp4tl9wAP7S5bANS0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=nHs0qtGisTZRF2wobFKrknQVIL66t6IR+cYRbfNiEPdKDoYCJLqexJ7JjxtgEDRTlemNxynh0lkfEdUV4hdETHkZRM+nK9neF2Det+DUZrG8BNQiH+FIgB0VCjkolfJSbvOpFksNHAYpKraiwdtCHKa3hqFkB3d1recPMc+r10g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=gcEqeiaI; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net 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=kDc7UT5LoZBe6PeytpnUZ/gKC0Dp4tl9wAP7S5bANS0=; t=1716275553; x=1717485153; b=gcEqeiaIBAEQlA3ZdaifoTh8dKXjtyYu5wDQFVQ2ewFCSbm BZjeQQMiHPWUDMxe/ZkHJDKxDamYkg8O6EX12AyW8/rRqRv2gxKJlDwNdczPbjIVQ2Jnn/VsBwVJx LO6VI75mUuVdPcClssLJGEJKektZL40inuU+szJEEbs8uUnA/Wcmr+tGqI4ScV/O7azP1+/CcpSbo z4KIcxD/Dv0flaRa9NGI2kIOxxhsDxq6t1RTu36dKGNEWMThWd4+586jKAEQVIy1zIcw1DdNBeF6x sTs6HX8zVGPLzXdmVxB/nMhtEyB+xKGNBQQrnYiw2NsrM2243y2vj5yes536+6aA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s9Jfg-00000001uhb-32p0; Tue, 21 May 2024 09:12:28 +0200 Message-ID: <0f42ab000dc2cdaf7a9b781a9ca7dad9478b705f.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: cfg80211: Lock wiphy in cfg80211_get_station From: Johannes Berg To: Remi Pommarel Cc: Antonio Quartulli , linux-wireless@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, linux-kernel@vger.kernel.org Date: Tue, 21 May 2024 09:12:26 +0200 In-Reply-To: <983b24a6a176e0800c01aedcd74480d9b551cb13.1716046653.git.repk@triplefau.lt> References: <983b24a6a176e0800c01aedcd74480d9b551cb13.1716046653.git.repk@triplefau.lt> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-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 Sat, 2024-05-18 at 17:50 +0200, Remi Pommarel wrote: > Wiphy should be locked before calling rdev_get_station() (see lockdep > assert in ieee80211_get_station()). >=20 > This fixes the following kernel NULL dereference: How do you get a NULL pointer dereference from a locking issue? Was something else removing the station simultaneously? johannes