Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1288017rdg; Fri, 13 Oct 2023 17:20:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJbnMA5f2hmSMb2OV2TR/ziyBqYa0F/ueK2IEwCt6sbZczIiy5SPr7Ds9lFasbvkHaVi6H X-Received: by 2002:a05:6a20:4292:b0:157:1b5:61ce with SMTP id o18-20020a056a20429200b0015701b561cemr34720155pzj.4.1697242857378; Fri, 13 Oct 2023 17:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697242857; cv=none; d=google.com; s=arc-20160816; b=f7au10cN+sTlaeboiPHFw37Z7IkMCdylftRlRVBZcCWQXzf3j8rYwFEEh9bS2SryYH 1hDdSpSeY5GmiqtMqwo4jTEHgDqpd1qSWYWS8JhtItEjKzwqYEbcVr0lvSejmo2WuI0J dXIgNVUuE/j2JQMc7cARAaP4+N/4ISPgRN+fNs4KBqtO5x5br6ls0IBtslffkojjpJ01 cVMB2qTdxv3KNUYsLwylb1Ra54hYa2CsjPVTLRrfzrTeOpwSHt5AlHV16oR200+6uZeu QI0G2mS8ygjbHfRUL3sFrvIacXY9NabqEHR4VHEVzXHbF20bW9U9QUe+qqGpNJZpF+Nt /CuA== 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=Rm8gQc7LxzImMUAQYSA7zPXi1FiL6KyPhAle9IRxng8=; fh=hunzdrcnk7f9Hpi6a/hPgEesRVujvi+cugiG7+XHdBs=; b=mhPCypXXoMY04HJJZ0pMcP94kHPbQLB5LZeRhbi6HLf6qcjQstpRYH+wE3yR+3hGtj stvjofQXDhkMTTcMbxgNhpz8BZC/AdpRPh0tkNDnz6S5wPxWzxLKp3URyhQLFW4tS8Nz 87KCtMGwbsKoT6Iqvw498m/5YOrPOmV9gJkCBtHB9YXNqmIuD1uInU0AP4CMk/utbqG4 DxxExzcFB+PLstRHOpZp/ucO98q1XuRWsorctISJSh03XE5xTe3bKsWn40Rq0BYlBlnj qWXvK98uNocfnWJNcDyxItw8ykUMcTuhPWlDYwIk3NjfnZMqzzagzck3IFWDV/5EBnLe F6Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PY68IhxN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ip9-20020a17090b314900b0027761a3a4b0si1349131pjb.0.2023.10.13.17.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 17:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PY68IhxN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-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 agentk.vger.email (Postfix) with ESMTP id CEEC880BD52D; Fri, 13 Oct 2023 17:20:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232021AbjJNAU2 (ORCPT + 99 others); Fri, 13 Oct 2023 20:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJNAU0 (ORCPT ); Fri, 13 Oct 2023 20:20:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E0EB7 for ; Fri, 13 Oct 2023 17:20:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0E68AC433C9; Sat, 14 Oct 2023 00:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697242825; bh=cfRnollf93GlHOWzLc4/JD5iRWpUYQRm38D3NguFwmY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=PY68IhxNr7JF9rn7y9V501IfKAKXIjMdOPJfj2HJNewGGSYvH7XQuQue3s+tAYjFM Hn9gFyfY7C5XpM7Xl6l4RDGT8atOIIUU+Xqj+qC5NNeDVEjLRu5+k8UL7dOmuWwrB+ +EO9JSbMQbIGGrI49j/Bleq4gFB8Pm7bBnl/2usFfI6XJTUAdQ1KeoTbwYpC1qhBrB AxMS1ZmFF/naDs3iEynF6zeYHuFIlFyDd/ic5+dk8QeJbmULv1TDvNCVaT9RkUiPN0 2riEIhWvyCvkdkCEuOUO0djfhm1qrNgPO2VRuAqH1K38w7Abjg+qttkt9U9LqCHPY0 DAEwcopkkzAMw== 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 EA824E1F666; Sat, 14 Oct 2023 00:20:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] nfp: replace deprecated strncpy with strscpy From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169724282495.20328.14649814507738116651.git-patchwork-notify@kernel.org> Date: Sat, 14 Oct 2023 00:20:24 +0000 References: <20231011-strncpy-drivers-net-ethernet-netronome-nfp-nfpcore-nfp_resource-c-v1-1-7d1c984f0eba@google.com> In-Reply-To: <20231011-strncpy-drivers-net-ethernet-netronome-nfp-nfpcore-nfp_resource-c-v1-1-7d1c984f0eba@google.com> To: Justin Stitt Cc: louis.peens@corigine.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, oss-drivers@corigine.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 17:20:41 -0700 (PDT) Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 11 Oct 2023 21:48:39 +0000 you wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We expect res->name to be NUL-terminated based on its usage with format > strings: > | dev_err(cpp->dev.parent, "Dangling area: %d:%d:%d:0x%0llx-0x%0llx%s%s\n", > | NFP_CPP_ID_TARGET_of(res->cpp_id), > | NFP_CPP_ID_ACTION_of(res->cpp_id), > | NFP_CPP_ID_TOKEN_of(res->cpp_id), > | res->start, res->end, > | res->name ? " " : "", > | res->name ? res->name : ""); > ... and with strcmp() > | if (!strcmp(res->name, NFP_RESOURCE_TBL_NAME)) { > > [...] Here is the summary with links: - nfp: replace deprecated strncpy with strscpy https://git.kernel.org/netdev/net-next/c/d273e99b5623 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html