Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1796372rwb; Tue, 27 Sep 2022 19:26:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56haWj7R0eW3YjD+4qpp5pQCYM5JsUOWFM5mdTfRxjZm7siinJuDRB5lYVaAzIDX5s8kKO X-Received: by 2002:a17:907:8b0f:b0:783:6169:5bc5 with SMTP id sz15-20020a1709078b0f00b0078361695bc5mr12632104ejc.200.1664332004562; Tue, 27 Sep 2022 19:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664332004; cv=none; d=google.com; s=arc-20160816; b=kFMBMGU22P8M1K6TZque5L+a/r1hRFlzfWuJxiUWUOaFnp1A6l8FuNE5cQFcW3XC4I zbiZwy0BJI5hti0wFNxd9VXx+r08L05ij+kqNBuj0+Z9ASBG4pTJl2Ms3zzfDEg31mME I/R561C3KxVPsbrTI9c3Z1GCvgigLWx+LR/WOD7TU0Z2bJLjs8i1MNGVv4JDQAmrqLY+ cGBPntXQwF5cW9h/2TeaQI1Qx5IWn2J5lEEuVHCTB2M2RyRvmywCPhgpePY1p04Pqm7U r8ncDK+vph82EDpPdhJlhnLxtckZciPZLhsktOA/tf+FSzbmjHi+vEIvYKWgRpH8MVZz bS6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=dWk4JVusx0c9sUDsMh+L3TwzuU391sDFV2FxKpVBvhw=; b=O3Xw8pAxysW5nXzsxtw6iwm/I7a0vf/h5zTTRHQoIWF9dwf3pFjduCBMXQ0oryO/Wx y10ms7g/wCg6ThT5awanQoLc4pYy1b0PRqrBusNKS0J7siFbg7fgm8FSUGlJbk4akp2e UHyRNUQTGhbStr327KXpDE16jXFhsEjCr45hYRfTC4IrEHY4w+tfCF+9h2lxpjdMLVQf eVJk+90P5EF/+74vFflFH9gcrNbxnw8mBCX4JxIWKVHrisHtttnLCVfd6qAz2esSQDX6 fuDB3vHNet5PPWWda/4nBxUYmbg442OAXM3GSTIlb+kGVWlzSV5jTv541YsI+ZgO5sqe Zjkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B29KIaB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 d12-20020a50ea8c000000b004575e8f3d5dsi3454871edo.242.2022.09.27.19.26.18; Tue, 27 Sep 2022 19:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=B29KIaB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232084AbiI1CAX (ORCPT + 99 others); Tue, 27 Sep 2022 22:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbiI1CAU (ORCPT ); Tue, 27 Sep 2022 22:00:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1135161CD7; Tue, 27 Sep 2022 19:00:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 48E7E61C4B; Wed, 28 Sep 2022 02:00:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9548CC4347C; Wed, 28 Sep 2022 02:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664330418; bh=C2/ags9atpaX4TGKxqEvxbE7WIB0bOC3jCQn+XcnZDk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=B29KIaB47VKv3cI9VFnGfu3KfhdUBCbOPnhZefoeslkrwx30ah5oSL6KKOejQYLwW v9ETdFjsd9XsHaQ5EHhLHEtMMkX9oEXuzFfuIx/RaHiqRdUoXrmCj9G0YEWCRgMMdL p+VXL1/nQo6C8ZdSv/3oRc2aMM9Aw8qlmQHIK9PsNweX8z9wT4DVssUvpb0B6tqSNc Cov9sykcgC6/j4U5UuYN6FxRsbL85SfYDjraMKy3FOEHsSCfGNs22DDiLPf222OxQC QJnas2eaf7OV6U5aGct/UFS+qKk1N0a2M9/OWnH8gP/QV4xERZDDdd1CktxvwzPiZA 9vFQeevyXLmYQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 71DDDE21EC6; Wed, 28 Sep 2022 02:00:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] mlxsw: core_acl_flex_actions: Split memcpy() of struct flow_action_cookie flexible array From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166433041846.32421.13784055301688350147.git-patchwork-notify@kernel.org> Date: Wed, 28 Sep 2022 02:00:18 +0000 References: <20220927004033.1942992-1-keescook@chromium.org> In-Reply-To: <20220927004033.1942992-1-keescook@chromium.org> To: Kees Cook Cc: idosch@nvidia.com, petrm@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-Spam-Status: No, score=-7.2 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 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-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Mon, 26 Sep 2022 17:40:33 -0700 you wrote: > To work around a misbehavior of the compiler's ability to see into > composite flexible array structs (as detailed in the coming memcpy() > hardening series[1]), split the memcpy() of the header and the payload > so no false positive run-time overflow warning will be generated. > > [1] https://lore.kernel.org/linux-hardening/20220901065914.1417829-2-keescook@chromium.org > > [...] Here is the summary with links: - mlxsw: core_acl_flex_actions: Split memcpy() of struct flow_action_cookie flexible array https://git.kernel.org/netdev/net-next/c/d89318bbdf2b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html