Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp285723iog; Fri, 17 Jun 2022 03:41:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vFvqMi1ATsNF5WFaYp+SlB5KWeWxsBWgcLvWU8Rc+6m/gkevm/ei91+K8VlcqPHcIKUbww X-Received: by 2002:a17:903:20d3:b0:168:9928:db1e with SMTP id i19-20020a17090320d300b001689928db1emr8973578plb.45.1655462517064; Fri, 17 Jun 2022 03:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655462517; cv=none; d=google.com; s=arc-20160816; b=icMP1By8DRIzD4lUxAIp/GDw/s+a3Q/oyHVHCJNLO4yrBWAsGIrNPt90e30ZU3qVx/ p/UtlslhR7sAVf34XO6OO3GIdubfBKlczXqWe9inis69mSVLRQ5VzDzhgZvVRLWKCaBL szXT/lSSIAlfjVteQ+XLe/Y3WnSAykVjLavHQozamQ2IHLwtlBMwqh+Rg2zDg3tPtYqr 9Q1vx7F6xbfllvi7acwtU8vMUcvjbaVvPXhBu+l2ygKsVEYqOSns7TkTTrpvJzPtGThM GSXTyD7TXfP2xhT+Dzg+l4046YZxJHz00P1ozlRahhCxwzwe0ADRVkr4sXIPMNWa1i2P raiQ== 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=DfkYLX5ccc1XJakBlGwmnVp4nFbWzfA2hgdh4lrTMPg=; b=yFLag8LTomUsLfLZze6XcIMASsbZdPZH+mkYwgdwYDHi+yWjSqw06Hx0eXPrj+OwUq pJpV+2fgr+fSDaHdS6UseFf7myL7BC2Y9WpGgUY62EBgCoXfjW2naSw3jZEXXkl8yEP6 5cqjEbBkUHK/l1WpTQMJJQtYTV2H8Z6gq8CWElidflXs82G8stIpUoOMHcfX1ADPYI4n 7ASXXg4XnO7xqf9740vMSOZIsvqg4IEC7TA8h2KWKZ+RWL0EpUHoFNBjL5HKKzahi8C0 9Rahjfst1EkNhxAyWy8x+UePm1a2i0Ox9kgnqyA6sE3o1K3IdtcCyu5p6bLzwTvVLPy9 DAjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDP5Lyz4; 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 l27-20020a63ba5b000000b00408a937c0e6si6213097pgu.721.2022.06.17.03.41.44; Fri, 17 Jun 2022 03:41:57 -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=JDP5Lyz4; 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 S1381906AbiFQKkV (ORCPT + 99 others); Fri, 17 Jun 2022 06:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381741AbiFQKkS (ORCPT ); Fri, 17 Jun 2022 06:40:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96DCD6AA7D; Fri, 17 Jun 2022 03:40:17 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2CF25B8299D; Fri, 17 Jun 2022 10:40:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A10B9C341CB; Fri, 17 Jun 2022 10:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655462414; bh=FfnaDyOU4tBYtXRnV8yExF0syv6ks0IlfB02Ng05kwI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=JDP5Lyz4LmVub2ntySZweDlwak7EoUJ5kzGJ8p5L4tKwEg2n+mMnWeiUdaXVexZ4L lDpJcVvNJ+rgqdaavVaO8BkuRfDoxX6dFh09VJX8dTeNJHg++zv1ndyTWRm5ZOsAEs 7lAGH/5RTIkXpSN5V9pvinY4Rt2OK5eUDB/IxqAGoXjWJgZAkykCHaLkOivRPg4y4e xC6SYexLldfnoppE8cffdchK+HIVqppA5C2iKozZAOLzsJ8VZbNiQu2dziLPNOnaUm u+qmkXwHvAvtLGnr1R9ECndkBdez5XCEY1bvkvKAL5cw+bj2vYqnGfX61WasgD9a/n 5FXAAVyGXBo4Q== 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 8D432E6D466; Fri, 17 Jun 2022 10:40:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] hinic: Replace memcpy() with direct assignment From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165546241457.18293.10133826510983697335.git-patchwork-notify@kernel.org> Date: Fri, 17 Jun 2022 10:40:14 +0000 References: <20220616052312.292861-1-keescook@chromium.org> In-Reply-To: <20220616052312.292861-1-keescook@chromium.org> To: Kees Cook Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, leon@kernel.org, jiri@nvidia.com, olteanv@gmail.com, simon.horman@corigine.com, netdev@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-Spam-Status: No, score=-7.7 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-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Wed, 15 Jun 2022 22:23:12 -0700 you wrote: > Under CONFIG_FORTIFY_SOURCE=y and CONFIG_UBSAN_BOUNDS=y, Clang is bugged > here for calculating the size of the destination buffer (0x10 instead of > 0x14). This copy is a fixed size (sizeof(struct fw_section_info_st)), with > the source and dest being struct fw_section_info_st, so the memcpy should > be safe, assuming the index is within bounds, which is UBSAN_BOUNDS's > responsibility to figure out. > > [...] Here is the summary with links: - hinic: Replace memcpy() with direct assignment https://git.kernel.org/netdev/net-next/c/2c0ab32b73cf You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html