Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3394696rdg; Tue, 17 Oct 2023 13:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZoMWcmUHi/ONmCvQiXQmYxn0pzocZqhkGIKKJ/6jeoVu9QyelJ/4yqp1vr/2Ubdj1MHe2 X-Received: by 2002:a05:6358:611e:b0:166:9c14:a842 with SMTP id 30-20020a056358611e00b001669c14a842mr2970793rws.15.1697574137868; Tue, 17 Oct 2023 13:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697574137; cv=none; d=google.com; s=arc-20160816; b=lqx4TNoFYCktjqQ68s8KNJ7jiXJWdDV6AHILCJod2q+ZL6lSknq0MMERPMaYEeXOUV eo6N/UTbZS95sEd4h9X6hjeNm2hzDTVVUmBevq3aVlXDY21d4KQcuD4qVPr/7rULOzEa wzNX2ZiuOHX4wiClT7R+AUHp4TfY6Q/ctreyp7OSNmXOF+gSnOCC+UpYjrN9reaLYZDC XcpjyZ9nWAQ7gkxWMOGPz5aYWjM61KKZb66kFlCZSvWqE4STEzd0dGirLV06dVXZ78OL UDs1DBkw6f4Y8+2C3jww/EGQ2XNzKWonU/j2m/q5BpcS8TsFrNDudsOBQI+VxMjEC+44 f9Vg== 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=/qf3pasEzmjys+cMl5PwEBlVeKLc105W8ndPVPmEegU=; fh=7O2oE7l1tGeOwGMuA2a3p45Fr4/hR89m7WZCY+sr1uw=; b=qqhkcX5Znx243bI1z9R7iZvXPY8v9IbECo2svxh2nOeWs9vAT/cIHYDDigFewie8ND z3HRNSmkpS6S5D9AHW0NSulb0QT53mHMK5A6/LROhSs0efUMtbWe+oBAyt4+GpKM4PXn K/M1h/h+87cBh7shtMAZVATGwBafUpQXzW+mXsxPzCyPy4914sT+ukMO6OL7Q3JZb29H U0dhXqvTgNX08RN7SuYB8g/NNZVoMuzb2xMh8/u2MfjWE34CJu2FCEsiYHTh49z/CyK2 jPi/mXPlnfnFQhAr7RUrK0xumyQfMN3dSi7F2crfPVkirG9XTD9v8E3iFIfLi6iGviML aezg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ezxgBamU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q140-20020a632a92000000b00565335587absi497641pgq.802.2023.10.17.13.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ezxgBamU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DE97C80284CE; Tue, 17 Oct 2023 13:22:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233635AbjJQUWL (ORCPT + 52 others); Tue, 17 Oct 2023 16:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJQUWK (ORCPT ); Tue, 17 Oct 2023 16:22:10 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04699E; Tue, 17 Oct 2023 13:22:05 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39HIBKkw026527; Tue, 17 Oct 2023 20:21:55 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=/qf3pasEzmjys+cMl5PwEBlVeKLc105W8ndPVPmEegU=; b=ezxgBamU3b5h403v98h6ggxdCUu8eVPvT5YQkTgXYC+FcaQVxEZbPrFVF7hxhHbM5UEr BBBt9X2NO+1qMNZT7/56eipjtfC44l/5cnQ/Y6JXeRAJ5aeoYag02yGmE3jj21SXtR2O 954NDLmFS0aYWTh4lC3ETDr53ekAYvaGTFU1rDQGpE8FgdTGMMgOGVM2s5jdZiLG4pzx /EahPVdBPutYkiGME/CMJFK16EIDQgBWs4TkJqMeaZ6iPyeK3alJCSlyqn4pKFE6Nj8z tsMWHKsBlWjMXqyxQcTrfMcR2sLY+CQTCy9nSgp834yUQZ9Cvfmt2bJ9/sSfHEa17gCw VA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ts85fukf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 20:21:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39HKLsOM032450 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 20:21:54 GMT Received: from [10.111.183.229] (10.49.16.6) 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.39; Tue, 17 Oct 2023 13:21:53 -0700 Message-ID: Date: Tue, 17 Oct 2023 13:21:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] wifi: wilc1000: use vmm_table as array in wilc struct Content-Language: en-US To: =?UTF-8?Q?Alexis_Lothor=C3=A9?= , Claudiu Beznea , Kalle Valo , Michael Walle CC: , , Thomas Petazzoni , Ajay Singh , References: <20231017-wilc1000_tx_oops-v3-1-b2155f1f7bee@bootlin.com> From: Jeff Johnson In-Reply-To: <20231017-wilc1000_tx_oops-v3-1-b2155f1f7bee@bootlin.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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-ORIG-GUID: _NdsBOsBRAUb3_eFgsyulir8muyyx9GT X-Proofpoint-GUID: _NdsBOsBRAUb3_eFgsyulir8muyyx9GT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-17_03,2023-10-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 suspectscore=0 mlxlogscore=583 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170173 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 13:22:13 -0700 (PDT) On 10/17/2023 1:43 AM, Alexis Lothoré wrote: > From: Ajay Singh > > Enabling KASAN and running some iperf tests raises some memory issues with > vmm_table: > > BUG: KASAN: slab-out-of-bounds in wilc_wlan_handle_txq+0x6ac/0xdb4 > Write of size 4 at addr c3a61540 by task wlan0-tx/95 > > KASAN detects that we are writing data beyond range allocated to vmm_table. > There is indeed a mismatch between the size passed to allocator in > wilc_wlan_init, and the range of possible indexes used later: allocation > size is missing a multiplication by sizeof(u32) > > Fixes: 40b717bfcefa ("wifi: wilc1000: fix DMA on stack objects") > Cc: stable@vger.kernel.org > Signed-off-by: Ajay Singh > Signed-off-by: Alexis Lothoré Reviewed-by: Jeff Johnson