Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4998186rdb; Tue, 12 Dec 2023 16:10:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1qpfj0K7aqxJQW29kwgzj84KRYvVLleRSkXUnOmHoLKFkMKjTfgmuWjX//iZBgRGuRemb X-Received: by 2002:a17:902:680a:b0:1d0:6ffd:6115 with SMTP id h10-20020a170902680a00b001d06ffd6115mr7144836plk.55.1702426243443; Tue, 12 Dec 2023 16:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702426243; cv=none; d=google.com; s=arc-20160816; b=p/x5+AQ635QQ/paou3XZUoPgqpGcI6oJa+DPSfyX+KahdV95uF72G1ZJMu+9asU6KT N4wSJxVtA48f6/UiQozZnAil6Y8ZCk6HamYSxkLnLxqxHre8/KUz5guMuoer+4C5PyAO KCszIaRENz0MGuwy0OiipL7kb4ti53LHe7gIrspRRXwP7/IqN88W5KaGqfZLFZPyTtGo OQshMOEG+eeWwh8E6iEhxO7hmwvmuA7qlV67GdiFy78XBkpFE6QBOwJv7Nnk9ClEf8qW ADGMt4exoM6+KtW+sx8R6nJO84RR1yXnnD3OWXbmdQm5HsWnUC/eV1dH6aBXtXyXKeO8 2cig== 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=WEMSUDHg7O38NvpcwB0KP+jKHMClbcWEzwF34MuocAI=; fh=yezmEHJn0iHkAGPOv5ENZmKzQzU+gM4n3POoN1pZsuo=; b=YTlZUWsQ4jIDKjuh0/EteWa2zHzg7Z4nec7gLsC0nKbFFDEz8VuxRroEBGVBla06O7 52s+t9HsGWj1u17DCWTxoYy1snC/GRlm9aFVfaCjThPgOIRthGxM1vutYxNqAxgrj16l 4Fs+hPTqowF6OzzC6rWKQ0o2XfE7L9Ej7IW6/aF/B1VpM93vtocNkfPlZ/1OOJ4N2A3W 9YDDn+saUX75o1l3Dn1ge2+6NQXHclPmTFeiJgvL37buM07ajLHvn0kvHckxZ0PZEkUP SQdlC6T/96lT/D3KKEYO50gVVoeQK22eAiLJQ7A6NoGQyxh4pKLI6SE0Cx4g/Su9YydI Mh0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oicnRBSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id j4-20020a170902da8400b001d0b6ba6109si8848827plx.248.2023.12.12.16.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 16:10:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oicnRBSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 0A73580A6BD4; Tue, 12 Dec 2023 16:10:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377712AbjLMAKZ (ORCPT + 99 others); Tue, 12 Dec 2023 19:10:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377647AbjLMAKX (ORCPT ); Tue, 12 Dec 2023 19:10:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 878C9B7 for ; Tue, 12 Dec 2023 16:10:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id 256BCC43395; Wed, 13 Dec 2023 00:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702426229; bh=VXosqkC/e3GEGFUuiG+gcRBbUiW7ZCrLw2sUasKp4+I=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=oicnRBSEmUG3ZpI42PyXQAtLa6H7MTNb2FnNttW3Oo+i7JxTulntzLvQF3YxPIl8O 1P6q3MjBRXcKMjx0PFm6YKCnnvdznvaTF/cuALk6s1Uf8HwEgVkB5Wciydb1XojQcC Chk41fY9PcquLLZszFpAZIhyFRcSoEUDKb+w06fWMm/B6toQ+eqeTHicNiXMVzhWHL dYhe2ET4YqmVKhlErTpWw3/EwWEm0nWWwZL8i9rzN9ElMpuTmfcxH7T1LD83oYEYU+ U9E2skaETZ6Qbw/uYxxSGQqAKBwDPRu1R/qhKnYduLlC6L5plNgxzt1Ah3GeEB2AJw nEPbcF85jdajQ== 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 11808DFC907; Wed, 13 Dec 2023 00:10:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v3] net: mdio-gpio: replace deprecated strncpy with strscpy From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170242622906.31821.7118921876028610861.git-patchwork-notify@kernel.org> Date: Wed, 13 Dec 2023 00:10:29 +0000 References: <20231211-strncpy-drivers-net-mdio-mdio-gpio-c-v3-1-76dea53a1a52@google.com> In-Reply-To: <20231211-strncpy-drivers-net-mdio-mdio-gpio-c-v3-1-76dea53a1a52@google.com> To: Justin Stitt Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, 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=-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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 16:10:41 -0800 (PST) Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 11 Dec 2023 19:10:00 +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 new_bus->id to be NUL-terminated but not NUL-padded based on > its prior assignment through snprintf: > | snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id); > > [...] Here is the summary with links: - [v3] net: mdio-gpio: replace deprecated strncpy with strscpy https://git.kernel.org/netdev/net-next/c/79ac11393328 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html