Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp827475rwl; Thu, 10 Aug 2023 02:08:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeryAEqX4TVHb5WMMQqWu8F+CEK0RUlm7FdAb2N0qbVpbbtZ7rrg6dwEvdmA/a5WzLYQMT X-Received: by 2002:a05:6358:2796:b0:135:73b0:cc6c with SMTP id l22-20020a056358279600b0013573b0cc6cmr2091180rwb.28.1691658480750; Thu, 10 Aug 2023 02:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691658480; cv=none; d=google.com; s=arc-20160816; b=ARbk5+ppPettNhJpULTfYzG4IJsL1aDEPizShoWjOxYXJ9z6aBU3ZwPEOEhGWygVMA C71Jx67M5Aa0Qe0CbBlFSvnmc9WKYDsK6/T/MzIfkSMBKg9ZrKPukqXzU3rynv+fkLYw WFOTJe50qcPHPiOFLlV4DV+p8x7aagHomjkRNcb5D8HPXjqE4/hBOn9dNJLhJX57EDPo OUveHUdORoBoU3wbNiVRIyx7hViRtD6VDAOwg0BUbVXbY6YVOvZ/hAAhKacW5zyX7kUx nrz2xYOiWw+mZYer/olGieD4jTaM7osiveKoDM+L1GlKAfl2Nt6WXFJb4nvi0tCnGab9 /56g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tdX0uGppUULsBxleRWSticHxr/dKu/KeYYQi2pz1Brk=; fh=W8cZqa2zVhREci1VcVkzVC/lo0/QWzGRfuSibCOOSzE=; b=KWL/y+grzVvIgyH7DChfDCIRhPgYVOzd7bQJCYjeAZj1RTPVy9oyUAVuaHNr/S1nn4 jhUd8clppBV5n4t2jIMAHYwxZlwk4ELPkY4DHjE5nNHcjcUUh9BUI61GRuVAeMXn6Vhk 4r1LlCpiRcl/G5bGmiuWRKbCLc+Tdm9Emy4fj050hns2VdftcA7ZskP6R3JhdIrJEMaj WDc5aZknk5mO1wTss/iCbm5CAEab29fe9W1FN3YdvGQXHt9qjWWvywfGeDBgvUkA0dpP oZ9CvHBf8Wie6W1QhfFDdZ4bzSJyhKsY6nNGWVqRM7HYbA6YELXXSIKGT9Z6+NBMlvTr NM1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="XAj/0kXX"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b00565342e3c47si1240172pgb.501.2023.08.10.02.07.52; Thu, 10 Aug 2023 02:08:00 -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=@quicinc.com header.s=qcppdkim1 header.b="XAj/0kXX"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233485AbjHJIPC (ORCPT + 56 others); Thu, 10 Aug 2023 04:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbjHJIPB (ORCPT ); Thu, 10 Aug 2023 04:15:01 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36982FE for ; Thu, 10 Aug 2023 01:15:01 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A55Eok031431; Thu, 10 Aug 2023 08:14:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=tdX0uGppUULsBxleRWSticHxr/dKu/KeYYQi2pz1Brk=; b=XAj/0kXX8pNSSO3ldf2mKP5lKuB4WCaqHo9znjIzrMjx2BAHaS1A8qSyDZ82Thz0ro8E C3o0sdNYDrtOE+yXlV0Ztk2x4g2t2pZI9U/ilBJQF4VmbFFF5TuRvc9IE2sHXMHagx4G uIqK6O/ELJwjfEGKfZJQxav+l2C66ponSvWOP0roO0TlehYYpjg/lqd9PEj7iRxZ2TNd jAYEOFRfUVdCD3c6n5nP3rstf4/pjKRKtiPAyM+EY/DYfuQyeemKYDtOim6KFJbw62Pu knN/ovIAqkwxpWnDF5dEmwNA7oEmyGcEJBlZcCNyJKY/82nAcRsrdBYP80Da8mKZoVAP 6A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3scr39geyj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 08:14:48 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37A8EleS002788 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 08:14:47 GMT Received: from [10.231.195.204] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 10 Aug 2023 01:14:46 -0700 Message-ID: Date: Thu, 10 Aug 2023 16:14:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v2] wifi: ath12k: Fix buffer overflow when scanning with extraie Content-Language: en-US To: Sven Eckelmann , Jeff Johnson , CC: References: <20230809081241.32765-1-quic_wgong@quicinc.com> <3206e181-f770-c599-87e1-364114b9746a@quicinc.com> <4161316.1IzOArtZ34@ripper> From: Wen Gong In-Reply-To: <4161316.1IzOArtZ34@ripper> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: f6xcLmL8TRRT3effa5Ou-q2hZaBXZSU0 X-Proofpoint-ORIG-GUID: f6xcLmL8TRRT3effa5Ou-q2hZaBXZSU0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_07,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=623 clxscore=1011 mlxscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308100069 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 8/10/2023 4:09 PM, Sven Eckelmann wrote: > 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 I added similar check here: [v2] wifi: ath12k: add check max message length while scanning with extraie https://patchwork.kernel.org/project/linux-wireless/patch/20230809081657.13858-1-quic_wgong@quicinc.com/