Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5495634rwd; Mon, 5 Jun 2023 04:42:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qcrS9jPwfehPGTmKNuQxHaTZigZmYoB3hz/MUHZTQt9fglAaXBlidiqPVOoNPuEPXHzxF X-Received: by 2002:a05:6358:ba99:b0:129:cc42:dd94 with SMTP id dg25-20020a056358ba9900b00129cc42dd94mr894845rwb.12.1685965361526; Mon, 05 Jun 2023 04:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685965361; cv=none; d=google.com; s=arc-20160816; b=ileZvoQrPBFsP9JkQSvygFAnxsNHOjOo4NHJq+of/S5KDiW/k4I4NOe0SVcTgRMsQ6 gKGcXYLPeY5IK+f1cZAiz3fgiLqUfil/xBkCPNngnZ9OTFnIC4CrR99UtAFqg95Nbd9p Sbtl6mZvcWwR5F2FwPbCg6ULuboU4gWM1O/9Qru89BQSPMom+0NXXjz1NBplFAEhOdkl SdsRXvGaIAiLElD9s9+sA/6EcOwEtcMlIC6NxAECCqWdWmHPkHb8MvnzgvQtGLrPvH8/ hqKYRyQw1BGIxEmn8O4vRXwfBZrFF5oS0xpOFI7VvKqxFFrGpGvzrEGrWlenXnh7ihv+ 4Ejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Q05Sht0M/UTJAa12ckxTm287Qi60jCMnj7q/oBAgy3Q=; b=KICZkneNv9T3dbENXgfJEqYEManUT8+H7tlfs9FWC6xmJWB4H5ssJf03nP+mGM31Qg GfldVLMYdzAFDly3O/aBDuS0dLjMsB6OKM60GZj8SAKALtzTHXU1Mbfvl1aDcoHf1dTp zC/Pfq1tz25TXjuQYkco8r5Z69jhFYwFu4qO6QIxj36lX95FYvvMY/nvEzBQ6b3xbogM lLyLHJxv02GPdgDmzvcy2jepmRHvkevfvpLhNh4J5OPh8zNBYDx3VVD1FpOjuKDZ0ETX q0opBx6ZOUszoXbwckGSVJcHMKYL0uGE5AqmaIq1DOYsJvtqCJlen6zRSbp3BN1DyhtV 0fyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=SgsqyDwy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa13-20020a17090b4fcd00b00233e301c780si7471891pjb.31.2023.06.05.04.42.33; Mon, 05 Jun 2023 04:42:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=SgsqyDwy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbjFELiu (ORCPT + 63 others); Mon, 5 Jun 2023 07:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbjFELit (ORCPT ); Mon, 5 Jun 2023 07:38:49 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B85B9196 for ; Mon, 5 Jun 2023 04:38:37 -0700 (PDT) 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=Q05Sht0M/UTJAa12ckxTm287Qi60jCMnj7q/oBAgy3Q=; t=1685965117; x=1687174717; b=SgsqyDwyxDlJ0mJPoEynOWL3U+Dd/7T7huxMNBv890eYek1 aH4ZuzCFJvw24tVc8HkprUKaXAxEuO1ZIDKt2XJP1v/NrLe0hfrP1BXgMdbE6ErgxAOlN4sWfEuwn B2g1wpbUwrcNpU6OswAy5TEo86jBT059qh95jdIT402yhn6UuP9SMkHbyx3AyOK/s88dzfzM//dsh tGN1pktDKDHAez4Voz9fPEbe3qGIpt0fwYq+42F3azxP1npQ2fDk0RVyzNVrxiW6SYpZ1H5QJH0uM LAnP6tyaYjn4YspXypEcphNQx667ri0J3oNXDse7itbsQl4AMxlyoZq4zcwiXdpw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q68Xi-00ER1W-2c; Mon, 05 Jun 2023 13:38:34 +0200 Message-ID: <74f52855912292d48ea80d76f4685998a1c3beec.camel@sipsolutions.net> Subject: Re: [PATCH 09/11] wifi: cfg80211: Add null check for ie data From: Johannes Berg To: gregory.greenman@intel.com Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya Date: Mon, 05 Jun 2023 13:38:34 +0200 In-Reply-To: <20230504134511.828474-10-gregory.greenman@intel.com> References: <20230504134511.828474-1-gregory.greenman@intel.com> <20230504134511.828474-10-gregory.greenman@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.2 (3.48.2-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2023-05-04 at 16:45 +0300, gregory.greenman@intel.com wrote: > From: Mukesh Sisodiya >=20 > It's valid to pass NULL "ies" pointer to cfg80211_sme_get_conn_ies(). > Add the corresponding NULL-check to avoid NULL pointer access. Yes ... but it's not valid to do that when ies_len is 0, since you can't have NULL ies with a length ... So ... maybe we can do this patch but certainly the description is bogus. Maybe you're trying to fix some static checker warnings or something, which maybe is fine, but there was never any chance for an NPD. johannes