Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2434907rdg; Mon, 16 Oct 2023 04:41:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1Bsi+UUGRG5h1SsRaA+nPcNsGsnX1mzJ50v56G5sOrQ2iTwebPopPF6ze+wCSDPyid/Ul X-Received: by 2002:a05:6a20:8f1d:b0:16b:79b3:210b with SMTP id b29-20020a056a208f1d00b0016b79b3210bmr27652414pzk.31.1697456481921; Mon, 16 Oct 2023 04:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697456481; cv=none; d=google.com; s=arc-20160816; b=uGOrkVOL7UDRT15oeCkbztpFadVXNlEBeLVifyELG1sS8bMHrKkST3C+GQZV+tmLL8 fO82yxJBOdMUncJl/8YF+XHwfnN+YWGINZs2D+2OfULK9Kl1ESAPXUaXQ1ZLKtznc/BD 5CgZpswPASn3vHP/8nywdHk/dIsCD0Di2CIPhEGlZNglpfe4Twx6+EY2lDTL22wASXcG 35HFZKy4liiAFi5TPONuJmFEFnr2IoDweSS8rITVsTxKsv7BmZLJebncCh+UeZTXP78m 0AWH2gOTNu1MqvBN75sHaR7f5q+YYh+FJX5EgUXbhlU376ZtXXY7X+Y+iDRc8OUKE7Xe vRiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=fpY9NlakMZl//yMhGmbJ4S6x8pj5SbGlp81G8mAG294=; fh=TgCV58h/XZRjSfopSyN2qVQhvsnZEwwqxBrHVtWNhhs=; b=R/b5byQt7R4+/fNjZGnXxeb6rB5qfdAkh9uN6I1K3DMJRzArcCnCe4T52rkWWRGyLY Gce3votto9mkV4qAiyF0wNWKHjOCfh63pUZzQ4wnaMVgNsA2qLWj3TRKX9qP/oC6uWM9 MxBkIx4XraztA/ey3+5Mcny/mwwOb2U0drrQIrGjfaacBCP2hDCZjYUTf70vtz907QnM bhrlBZqHWHBGIIKZ+qfZxUNbb8dAnUtFXJQoaUkdbnNQ+sl8F22YUxsq0e5aqOMQbGFU xtA+UELK9176aGJ0AU1XtgZR6EPwfStB4C0++/VervpsoniYog/Jv2lyANolQuk3Lbpz lw7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bzj10yoU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 20-20020a170902c25400b001c9de48fc7asi9987668plg.170.2023.10.16.04.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 04:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bzj10yoU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A289C80B026F; Mon, 16 Oct 2023 04:41:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233128AbjJPLlM (ORCPT + 52 others); Mon, 16 Oct 2023 07:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233134AbjJPLlJ (ORCPT ); Mon, 16 Oct 2023 07:41:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7565DC; Mon, 16 Oct 2023 04:41:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 510BDC433C8; Mon, 16 Oct 2023 11:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697456466; bh=Y58rCXuF/l5eSXkcjq2QOHO2o9mynnSscDqicFlbC74=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bzj10yoU16IONm22GE6uQ4TJX7JU2wL8tAmfHBHqpKSsrPERv3w/IoQQm2x+1xOzi wjdl5dyndgqfIeo5fj1Sfmh5Q9MW7DNTgfgXCf3GXnksOpz3ZtU9yg3p+gLghSR99R yxZsbbpKuzcBDt1fee7kqrwycAunZ0/tHLIp0vCf9u4HPaQ11bKtOX2+JdqrQU1sz4 1p50qvGFjti2HRLlvjYibJWMoS6Uun8VrCtKe8rHO70LIGVfYAMrFj9NoUUx5jT23g TtXA6lKdKanO1dcEmZjlpzHefmHxpRmSdgqVovZHQq+yKZ4Fj00lTHo78KAv9VW/Ke xtWCdlkq62DDw== MIME-Version: 1.0 Date: Mon, 16 Oct 2023 13:41:01 +0200 From: Michael Walle To: =?UTF-8?Q?Alexis_Lothor=C3=A9?= Cc: Claudiu Beznea , Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Ajay Singh , stable@vger.kernel.org Subject: Re: [PATCH v2] wifi: wilc1000: use vmm_table as array in wilc struct In-Reply-To: <20231016-wilc1000_tx_oops-v2-1-8d1982a29ef1@bootlin.com> References: <20231016-wilc1000_tx_oops-v2-1-8d1982a29ef1@bootlin.com> Message-ID: X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 04:41:17 -0700 (PDT) Am 2023-10-16 10:29, schrieb Alexis Lothoré: > 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: Michael Walle -michael