Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1203616rwo; Wed, 2 Aug 2023 10:09:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFOtzu/0aYTEBhAHToOiStDo6YgAjQIWL0goHkM/VSBo8jPa3Wzo9uGAZ4sANQX34DGDrix X-Received: by 2002:a17:90a:bb12:b0:267:faba:705 with SMTP id u18-20020a17090abb1200b00267faba0705mr13872383pjr.10.1690996177827; Wed, 02 Aug 2023 10:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690996177; cv=none; d=google.com; s=arc-20160816; b=VZPoxYN+IOKi4UsAvsuN5EnnSdSfbB9WFO2iFusefIrhlEg1ppwmDBEWGz+6/eBpGD bOy11VYKk7lY9V7EeAow5Vq/BDcjKuYpwUG6hZ0Ars3n0K7Jwt035IA4SW8LaFNKlx/a cbGWHGgaiWu54LDrWUpmTZANqcix3vTmP5f0gVE8BbBKYO7+2M3TqpWzp/ae8orHNXEC PwW9xP74UWZVIhifYr8sYBSc9rbvqsaGOGu/Ph7PnLvvWriFZHSNOCTJ+ukPQcaa04Hd j2sb22skf113JmOarrcWtJrADQcxBGrS6IA1u+OLciFCv3CCVjbM2w96nTYaD7tOIWSX FAFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=C2Io7wRybw3VvwLpHsF3qjheTyag6x30dXLM5MgV+uA=; fh=Ev0tTnz2k/sxMbuBqoCtf3n40tPNX6fTWOR0Nv2o4fw=; b=VPUL/+Nwbe/e4d6BY4Vb3r45z/doyk3VM6hgvG9drLThgl+K0SADtFsflxkGxJZBk7 L5If/LleZBeGOxO4bc3WuXTuKI8ycEtiqBYNW+eaQY8PBphgiwaVZSVz2FjtcRwt7SeJ 1lU6W2D3qBSFWlW8UzwwIFEUr3nzP83rV7ymnZOfzkK9nulDwSolooDCNbcMYf1eUOY3 Z0fsGYXsqlUq4588xVKTBDwyfA29VDIab6FiyORdqv8L+0yMMyvM+i/XKbP3m6Ikg3Se gAM/ZzBuApGYbxNWfrXLEc7+oL7UTJrwRXSZA7udioxZAS+fLbDunn7kSernliZQPqbW xFrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="OvN2f/YW"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a17090a098600b0025c1ff9cd67si1439483pjo.184.2023.08.02.10.09.30; Wed, 02 Aug 2023 10:09:37 -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=@kernel.org header.s=k20201202 header.b="OvN2f/YW"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjHBQ4I (ORCPT + 58 others); Wed, 2 Aug 2023 12:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHBQ4H (ORCPT ); Wed, 2 Aug 2023 12:56:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B7A31706; Wed, 2 Aug 2023 09:56:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4D3F61A0D; Wed, 2 Aug 2023 16:56:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1FD5C433C8; Wed, 2 Aug 2023 16:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690995365; bh=p1sOEq/Q5nf8WlIzq4mgPmomVrjieac3zXBR6jgM+OU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=OvN2f/YWa13qB7U/C1Y1ULILB3AHOJkcW25odca03FJ/yyeEdSMQ6A7kl/s80T1qZ kwCbLAgLc9moV6NqBoANm0Np/D9q5JlFycmREfmKm0AjcyF924bAsJyQiJWz/h06H1 YzzkcYNIu3g+po5M7REs+zOGgNlxZtfBwk0pVScvpr2K6Kji4WFtyJvWxDmVL7EglQ LR9UTNKTWxdZF3U7PCWVUxzLH4hl0c3+Esh6gVM+8ys34z2zs13Y6tu3x6ogQX03QA /Q75UwbQanIYD5BelieZVmojpHi5XCrPbw5NbOmOyTleOYyF8MvrSSW5LqNwpaP5OP u5Nwz/NX3n9rA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath12k: fix memcpy array overflow in ath12k_peer_assoc_h_he From: Kalle Valo In-Reply-To: <20230703123737.3420464-1-arnd@kernel.org> References: <20230703123737.3420464-1-arnd@kernel.org> To: Arnd Bergmann Cc: Jeff Johnson , Balamurugan Selvarajan , P Praneesh , Baochen Qiang , Karthikeyan Periyasamy , Arnd Bergmann , Ramya Gnanasekar , Wen Gong , Karthik M , Aditya Kumar Singh , Aishwarya R , Carl Huang , ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169099536007.463701.11948665209748140465.kvalo@kernel.org> Date: Wed, 2 Aug 2023 16:56:01 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Arnd Bergmann wrote: > Two memory copies in this function copy from a short array into a longer one, > using the wrong size, which leads to an out-of-bounds access: > > include/linux/fortify-string.h:592:4: error: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror,-Wattribute-warning] > __read_overflow2_field(q_size_field, size); > ^ > include/linux/fortify-string.h:592:4: error: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror,-Wattribute-warning] > 2 errors generated. > > Fixes: d889913205cf7 ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Arnd Bergmann > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 603cf6c2fcdc wifi: ath12k: fix memcpy array overflow in ath12k_peer_assoc_h_he() -- https://patchwork.kernel.org/project/linux-wireless/patch/20230703123737.3420464-1-arnd@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches