From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E6A4C3A5A7 for ; Wed, 7 Dec 2022 02:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiLGCKW (ORCPT ); Tue, 6 Dec 2022 21:10:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbiLGCKU (ORCPT ); Tue, 6 Dec 2022 21:10:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5021645ECD; Tue, 6 Dec 2022 18:10:19 -0800 (PST) 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 E0EF0611D6; Wed, 7 Dec 2022 02:10:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3D9EEC433D7; Wed, 7 Dec 2022 02:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670379018; bh=dOr+qztnngszfpp2eOrSQgntQvej41Vfq61jH8VjaMI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=RW1ksyP0fxUdLoR21eUi2nzrfdGTNE6RfNWquYu0ZLpVWIJ5Mkqa8gRPGXdRqBuFp Q9dIsrqjI8tdCqG8dLJgkvGefow+BNhqRKHy0rGBDJ9nEMSc78WOqWjwiapLl8MZEx 3hmthm8fsAbDq35BsnUa7XeMotpOogAgO6JM9kMUX6o52LfmaapERurfhc7mob7vh/ P6FqUMPtNmwZPzSVt75vqT9H+tAOa9WDDu3+o1OejzIA/qmdwnfS1GlX4Z1pyI+S14 kWo+h/w7UQiJHYvdUIB/QEMF81I2vCeY1nnKq/dCfPuex9VTFvTDnQJMT+Aa8po2+o h+g3VjjCdlkYQ== 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 20AD5C395E5; Wed, 7 Dec 2022 02:10:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net/ncsi: Silence runtime memcpy() false positive warning From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167037901812.29262.11761339624947092178.git-patchwork-notify@kernel.org> Date: Wed, 07 Dec 2022 02:10:18 +0000 References: <20221202212418.never.837-kees@kernel.org> In-Reply-To: <20221202212418.never.837-kees@kernel.org> To: Kees Cook Cc: sam@mendozajonas.com, joel@jms.id.au, 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Fri, 2 Dec 2022 13:24:22 -0800 you wrote: > The memcpy() in ncsi_cmd_handler_oem deserializes nca->data into a > flexible array structure that overlapping with non-flex-array members > (mfr_id) intentionally. Since the mem_to_flex() API is not finished, > temporarily silence this warning, since it is a false positive, using > unsafe_memcpy(). > > Reported-by: Joel Stanley > Link: https://lore.kernel.org/netdev/CACPK8Xdfi=OJKP0x0D1w87fQeFZ4A2DP2qzGCRcuVbpU-9=4sQ@mail.gmail.com/ > Cc: Samuel Mendoza-Jonas > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org > Signed-off-by: Kees Cook > > [...] Here is the summary with links: - net/ncsi: Silence runtime memcpy() false positive warning https://git.kernel.org/netdev/net-next/c/b93884eea26f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html