From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43141ECC; Wed, 18 Oct 2023 01:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sR8wrLxO" Received: by smtp.kernel.org (Postfix) with ESMTPS id CF9ABC433C8; Wed, 18 Oct 2023 01:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697591422; bh=WPJ/r8+0jyetchJwy0VLkx+UQMJn64TVCXqZ4uqyTz0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=sR8wrLxO9NaaYo7u5jAGmbvtGAnodVa5rRjKLeDjWUX1o1XwubZqFJr8vyFbv69Ym o8fpJGdaQsugI9naJ61lloVTHSxyMdfh0+NRNs7Lt+/ublPQzZMs5+QWWHpAmZ6RWJ s0yZf6zw5V+BYZS1DkqrjryZdcZECWaz186hhBEUpZnm4GJETRYlQx7RPGBVu0yfhL jbO9RxxY+eRqb4rYQlgqewmpQON3OBBuLYjxg/vubZPUsBuAjf5zXa6ui5Tgn273kR 88kGpX/yrVQ+prfxQzXb4EY29oVOJeINeTCrta0dPEZlNsvpSQICPW9o6J+aiVz3Xm Vq3rwy51eo7mQ== 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 B472FC04E24; Wed, 18 Oct 2023 01:10:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] hamradio: replace deprecated strncpy with strscpy_pad From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169759142273.24973.7934258453986488450.git-patchwork-notify@kernel.org> Date: Wed, 18 Oct 2023 01:10:22 +0000 References: <20231016-strncpy-drivers-net-hamradio-baycom_epp-c-v2-1-39f72a72de30@google.com> In-Reply-To: <20231016-strncpy-drivers-net-hamradio-baycom_epp-c-v2-1-39f72a72de30@google.com> To: Justin Stitt Cc: t.sailer@alumni.ethz.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 16 Oct 2023 18:42:42 +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 both hi.data.modename and hi.data.drivername to be > NUL-terminated based on its usage with sprintf: > | sprintf(hi.data.modename, "%sclk,%smodem,fclk=%d,bps=%d%s", > | bc->cfg.intclk ? "int" : "ext", > | bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, > | bc->cfg.loopback ? ",loopback" : ""); > > [...] Here is the summary with links: - [v2] hamradio: replace deprecated strncpy with strscpy_pad https://git.kernel.org/netdev/net-next/c/d4b14c1da5bf You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html