Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp334734lqc; Thu, 7 Mar 2024 21:11:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWj2clZBhdCaHmpRfm0P9LnLskj/VXybBmxf3SyhGZ2Yr1lEgyULM67WY2wT7Kn4Nf+YN9B+BTo3FRNlGkao/yecqykf6VTyyjX1CseNw== X-Google-Smtp-Source: AGHT+IF8TDW99buLtX41RRe0LLW/uED8RIpbOc4AjgfN93fQ4XTS9Rmsh1F8C82smPtyQJOkQVR6 X-Received: by 2002:a17:906:d0d6:b0:a45:ad59:cbc6 with SMTP id bq22-20020a170906d0d600b00a45ad59cbc6mr6373203ejb.26.1709874705006; Thu, 07 Mar 2024 21:11:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709874704; cv=pass; d=google.com; s=arc-20160816; b=HthsGRD8Jjn4BDwBRsANEPbShJjhNA6KRtY9uO/b/k439k69HkNRs8k4Z4U+5Ck3YY BdxbRds5hpHaYk/EDLOQjXXdbC+dht+bgZUD0LAKxF+FV/lcRq8wmtKZA7P/vCkSMyc5 xq9BZWMsyq2NZf+gMHIxJIg2w50juyZDxTtLvSnNwgbKMiHMEjMR6LwS5qdZ7NDIPkFv s00XnmRKJOLLgLHUBoO/WXWUFTFJVl7w+fx22tQLWJuSTVysmMbXlqrtYSZ2H2dxEz5O GSL0q8dwrpHNH7+wi7HfF8rYJrigHNiVsq8TOO1W7NiP9qUEi7Xx/gQlRmdMkBPfdyVe QERg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7c7DCl5tHRd02QLwo//WwbvkDNPX9svF1WEwOb1bLwo=; fh=JAVg7ZZdTFGKxsXn6hf/IGTi3Han8pWamgngTJyCytw=; b=nUXXpIuvhBLDoc2YqF74VuF/KTt4/OZZzhHgDvTaKPBY6dI0gYVp7earaJu6U4KeY2 RwufuhRy+LH93RzXIhQRhtS8jQtGQgz3pFUGVyu+3MzSsVIrYvl1FW9mbPntL9ZVKduj vYZH5eyUKyTIFaQgAjx/PXVbB9HRXxYQI5V4aJCKGCrgeAsjgFnepSwSGso3UFUhzs0R Djt892KANvkTU1vGxGraklLNqvFXUH0TK80twbsHctt1XM6BRYBnqgU9Hz89TwElKYpL NXlvokwrH7nwVoYgWMHqLeQMkS2bP/78YBrOeGxXU5i9pG8nf3zxiCIerckJkvPCtHv0 NnMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bues.ch); spf=pass (google.com: domain of linux-wireless+bounces-4482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4482-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hd9-20020a170907968900b00a44e046bb71si5583752ejc.142.2024.03.07.21.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 21:11:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bues.ch); spf=pass (google.com: domain of linux-wireless+bounces-4482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4482-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BC0201F21716 for ; Fri, 8 Mar 2024 05:11:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD0F63399C; Fri, 8 Mar 2024 05:11:03 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from bues.ch (bues.ch [80.190.117.144]) (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 988132EAE6; Fri, 8 Mar 2024 05:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.190.117.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709874663; cv=none; b=evROyZ3HZgQPdl9lugrXom+sW90guUV7hDEA4szbOgv5kbC/T72dU2v5PoulsQ97t7nbuf9O8rVlGwcA6erszOGbEo2vTBocLFMd5qn+5jETTT+P8PXCSuLck08pUEYE5GyQpd1hC8kVu8emv1S4XGFhofIwXMC9UqLzuCPOjSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709874663; c=relaxed/simple; bh=7c7DCl5tHRd02QLwo//WwbvkDNPX9svF1WEwOb1bLwo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WHl1vgEzXWq6Yh4UR0RB8o1XtlkNPqSPwsTnAvzTDekzgeLuY1qF9nrhntajlLtS9xj7OdzF1lKZ0ofoAx72CJdEHQNjFtAbPfmNRCvqZNY3Wh/w2K2QVRa84ZjvhwHrlQ/KrbAXmLdeetCYzy3pjJ9R8iOa/5IDD1dcRo0Lho0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bues.ch; spf=pass smtp.mailfrom=bues.ch; arc=none smtp.client-ip=80.190.117.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bues.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bues.ch Received: by bues.ch with esmtpsa (Exim 4.96) (envelope-from ) id 1riSVT-0006Q4-1x; Fri, 08 Mar 2024 06:10:54 +0100 Date: Fri, 8 Mar 2024 05:50:49 +0100 From: Michael =?UTF-8?B?QsO8c2No?= To: James Dutton Cc: Rand Deeb , deeb.rand@confident.ru, jonas.gorski@gmail.com, khoroshilov@ispras.ru, kvalo@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, voskresenski.stanislav@confident.ru Subject: Re: [PATCH v3] ssb: Fix potential NULL pointer dereference in ssb_device_uevent Message-ID: <20240308055049.50a830fc@barney> In-Reply-To: References: <20240307192405.34aa9841@barney> <20240307211928.170877-1-rand.sec96@gmail.com> <20240307223849.13d5b58b@barney> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Rhyzgt75tD3LaJRP/HlHUF7"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Sig_/Rhyzgt75tD3LaJRP/HlHUF7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 7 Mar 2024 22:02:29 +0000 James Dutton wrote: > If one does a NULL check after it has been previously dereferenced, > the compiler will totally remove the NULL check anyway, I think the kernel uses -fno-delete-null-pointer-checks. But anyway, this doesn't invalidate the point of having a NULL check. The intent of the code was very clear. So don't remove it. --=20 Michael B=C3=BCsch https://bues.ch/ --Sig_/Rhyzgt75tD3LaJRP/HlHUF7 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmXqmSkACgkQ9TK+HZCN iw5FQw//bOaVLWgfyhfI4G/Yl8Syd1+U+W3zc5f7fIpIbNGqn7UnWyWhgb196In1 knUBwNb5lyCmjtSBnMxl3xrm8LatJgwFnFk8sVjbljGrEpdL5pVTrABdYQA5d6br xZOWm7vFQWTGLTNdvjmLP6CqF96yVCiFMyCtQ8xnOw0zplPFnG/kO3yz5t/hFxER 2JHGwdJMatyBXVyPjFqkKOdU0+i9heOUvvwTfcQby5kbaP8r2iPy4JEewnCQLQEV DCvUyOE6Gv8PNDngX9EcMyxoBe7teYDxX6wWlVx9eldRVlATl0g2Qgl52PPh8hAE dr8UetddVgX7yA2VwZT4IYfL1tu4GAd+8DjPh98r79V28DrmRcnxE+eGM0mCfTaJ TwLDSd9UGPTe1EDBqMkNG5JtpzNHKaFAz84HOUS8bf/QlQtOBnZUo9c4IPWtWdNv mbqAd5FgVEfjRpCSyJ8A5ty8lplQH80ORx/z8ty7Rpp2JqYq6yyrGhQkU42IEH8D WJvwoWEh7yyluL1o1J8p0xwMI+OxTB36uCb1EkuV2jEjfBjOWhYXr7BEQtQBRBs3 6GH2UKmL5h0nVhGsKXgo0vUIPFeG+jpG1wGaSPtyUBn/xo+JU7APxpNOCob12DhH 1umDjHtUlf1K0FZ6sfDAa5FMIvCwsaKRyrxbfiqTY2+gi5Z1wAA= =3Ich -----END PGP SIGNATURE----- --Sig_/Rhyzgt75tD3LaJRP/HlHUF7--