Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp786949rwl; Thu, 10 Aug 2023 01:17:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDsOqI2TbX6PGK3jNGw7B2Yt0blZ/Ve7oLuuQYZ/NjYCxs1XpWCYAji4kJUZxYzjnKojsT X-Received: by 2002:a17:907:7708:b0:99b:bca6:cf94 with SMTP id kw8-20020a170907770800b0099bbca6cf94mr1401552ejc.14.1691655444402; Thu, 10 Aug 2023 01:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691655444; cv=none; d=google.com; s=arc-20160816; b=lcnpZOabcx6DFTEdqtPtdi4rCgf5zpdiXisva2xmBQWs+HDzfRrqdi0fvdz2v/68rk ml942CkbOH8KXKleuWcfAMtlrO1jSwI8ossq1HUbZ3lbxiCLRUQby2lJQotB+2wVISub Wu+O7c1TfvwT20+fKTWmeaTrpiUrKWcChJWWsAu40tXFNx0b19dSpFqS2IpX6Ks6KZQG 3yIXPhXh2CvffF1oGC0urfCUmqmGrPDZqo5HO/2/ak6/qR/T+aHp8AbgnEqFQQpPVsNL cN4UL+s94yggo9mo0/eJlbI5Bt/GtYzjOIPw6BqCng5utIFoI/+jOKO/vB54od0dCdFq d7GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gWf7pVy4VSkBn4LU83suocRKaD90O0axOs+3iQ7JA2s=; fh=pPU0Wt1kGDK7OkCTsqBJUMY1PPLd6epXdhccAzq0PaI=; b=ZhSd2SJKnUIUI0DW3UxMf4ivWIWvQrEICMLW5gN+Get06eLslG720IoTRoIosLKCXG LeSW/C6mySNdrCB6deXgxaAR5TzP5iYQcXbTQLRUg+5B5zo93iEifiO5KYpwnoEDtPbq DKguQIcG5rjPbESNgLOZXsa8sO2NqTmlSV0gTb15UP2XY6weEh5OmOyOD3Pe3URrbXiz IuL9A/Vg0wIiJGikzIUxsxf9RDYeapuiSgIUkI+6MG/rvYJcGIf+8OuQRJ19AYY/DBJn 8OEex8NtQoabkzMskdrWMxZzCcg2+rmoBKchenOG9Qts53yuDzrvvXHKPJK+/GDBL0r8 VOmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=n17IXXXh; 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=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k22-20020a170906a39600b0099ba3bc37a9si1088663ejz.377.2023.08.10.01.17.09; Thu, 10 Aug 2023 01:17:24 -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=@narfation.org header.s=20121 header.b=n17IXXXh; 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=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233988AbjHJIJy (ORCPT + 56 others); Thu, 10 Aug 2023 04:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233328AbjHJIJk (ORCPT ); Thu, 10 Aug 2023 04:09:40 -0400 Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8FDD2704 for ; Thu, 10 Aug 2023 01:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1691654971; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gWf7pVy4VSkBn4LU83suocRKaD90O0axOs+3iQ7JA2s=; b=n17IXXXh5p46YQz//PUBcM6ylgfUMMCLw5qoBoXGwRojP5iDssn8Uag7pylYIFd++Q+qw/ JYABeshYLWhne/4HR0kUYT+YcxKGOMmVyfSqm19Ha9vL7Xa+dStDZ99gFLRMV3F+y+KnMH yYKCX1md3cu98kJcxQJqPpwC3OMiUOQ= From: Sven Eckelmann To: Jeff Johnson , ath12k@lists.infradead.org, Wen Gong Cc: linux-wireless@vger.kernel.org Subject: Re: [PATCH v2] wifi: ath12k: Fix buffer overflow when scanning with extraie Date: Thu, 10 Aug 2023 10:09:25 +0200 Message-ID: <4161316.1IzOArtZ34@ripper> In-Reply-To: References: <20230809081241.32765-1-quic_wgong@quicinc.com> <3206e181-f770-c599-87e1-364114b9746a@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2644003.BddDVKsqQX"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 --nextPart2644003.BddDVKsqQX Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Sven Eckelmann Cc: linux-wireless@vger.kernel.org Date: Thu, 10 Aug 2023 10:09:25 +0200 Message-ID: <4161316.1IzOArtZ34@ripper> In-Reply-To: MIME-Version: 1.0 On Thursday, 10 August 2023 06:31:02 CEST Wen Gong wrote: > On 8/10/2023 2:16 AM, Jeff Johnson wrote: > > On 8/9/2023 10:31 AM, Jeff Johnson wrote: > >> On 8/9/2023 1:12 AM, Wen Gong wrote: > >>> > [...] > >> > >> Reviewed-by: Jeff Johnson > > > > Wen, can you please add a Fixes: tag since based upon the discussion > > you actually observed a crash > > > Jeff, do you mean I should add the crash call stack or other thing in > this patch? I think a reference to the commit which is fixed should be added. > The crash is observed by Sven Eckelmann on 07 Dec > 2021 here: > Subject: Re: [PATCH] ath11k: enable > IEEE80211_HW_SINGLE_SCAN_ON_ALL_BANDS for WCN6855 > https://lore.kernel.org/linux-wireless/3267805.el9kkjlfUZ@ripper/ This was for ath11k. See my patch for it in https://lore.kernel.org/r/20211207142913.1734635-1-sven@narfation.org So I doubt that it is ok to add the same backtrace for an ath12k commit. And if I compare both patches, it looks to me that you don't handle the params->extraie.len > 16 bit (see WMI_TLV_LEN) in ath12k. Kind regards, Sven --nextPart2644003.BddDVKsqQX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAmTUmzUACgkQXYcKB8Em e0aMaw/5AZ4D6mNNbQCEz4PivXFwvT/Wz/zdb5/b1JfgZXmtIdUQg6wgVJYzVO6g yL5RVKYfMKG0aITyAWQvI9eSYabuAhLZKFucdjArwtPVY1u07x0pzbH81yP8Wfkn nzYW1IG8FafG6LV0oYpQf6xr30layDjhq6VPHaVmx4Bap5yaY7kRpngNTZCtNEoc 7zpH+VgUJQu+5qMfHe3A8kgS7Tg8GhhXW/AOh1DHrKoK7QjZ5FueR+jdVq2iDyCa K7wyIurAmltLm/xJxxIeMkYd05p06tLWAYDjz7oYT8yDiNaOAFQGMAiQ6OGn/wJx h+rCNP0EdUOeGVVRGHe8CPHW+iHn91KRicNsjV7kZ0dZQ/L8a8e6ekwffw8MS9wg 1bq6+O7+n4sIMfZGqhX5+2m+a2BRZIdK0Paz1u/E27k1G+ETubk2ITCKjJ/sPLBf nl3BhRa6woAhhy7PSkAkUEGxnineoTmhhEn47yWmBtDDHQ46zDUKZ61C83iwYEPk FEkthQTXF3jN0/xYRGbwcPZN78AgnyzeeD4tUO1Os7rVMrN8QsoFhEJg8a55/xMJ neipHEWxOTKs9JR5arxDcWDokiq4TjOFDE3kcvHK2fL/cOmJJ+DKq4/88f2Ye1mo jLOTCZtO/BcxUV83E5W23VcYakZTWzkyXyJzKWJv4uuIumdLMg0= =bxKb -----END PGP SIGNATURE----- --nextPart2644003.BddDVKsqQX--