Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp517912rwb; Thu, 27 Jul 2023 17:03:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHUf53Jp+fIlLj6yI3C3SMz2DeWpLgO3AEAFgwFW79bwdSN2UuaVtUnxi6XZ873AOq1KNsD X-Received: by 2002:a05:6a21:6d9a:b0:132:c7de:f71c with SMTP id wl26-20020a056a216d9a00b00132c7def71cmr132574pzb.59.1690502625389; Thu, 27 Jul 2023 17:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690502625; cv=none; d=google.com; s=arc-20160816; b=G4MshdH2eG4xlReCySO+MY3pYrvklv55USslPos8Gk7nnf83oYYmu3dgAJ+nBm5ErX YYzuhYRrMM1J7c9QoYW5L1sTjKutFcqvoejhdTPrSGmm6pvBGyoKwVMyS03eJOGkbBEq 8cXfcZJsRIcgH9NBXlvKG7L507dvIcXWTtnE2GUxQQefr0Ppxk5gUfa4mP9yRJHRsWtK lHVXA9te0ORKSKVq+NQrw6gox8il3ubW09zHjyip4VaS+xZLsyohbmNCQi62R6euR280 5Nw6dgErJhT63PQ9OviNClIwiFW8XMcjZ+f/4yUBwZjTNqMj0lqg54I4HjsHyWHEkFY6 FprA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eYdamAR9IwNb7ZMcaqS76Bws/3YygfXLjnMwqsbDt88=; fh=s0E7/pBbtkBDkUqs+fLYpsSvhD+ffz+EWw5jcnXDBU8=; b=zdwLKxIgn2MZfAj17MMWgNX5JMymgAfUrg1+sWLzJqaVMKemdQnxUiKSZBtdblJJJo fy5ZcSWO/1di1sVnc2zMV5sWC/P/fenRJ4VqE50683zjlWcOxzykVu/P3tz12gyR10uy cfircSWbyi81yhhP1AX+/UUPTbzh4HD+pYfQdndBdrWPWYxS+0pR4KyJPQ+tGF3GVjEn gAe9x8ZQD+6BPcvhO0FNhy2xreppWD7t/maFbEPbB3hMdMxGM5fKBY08n93NMrnviEi5 +4WzIsOQnETvmt8F3UGv7MuSnj5dEbXk60BXn7k2SVqSjQzgJttsLJkv8BeX9j1JvvsX Lb1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kgbNFW1j; 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 w6-20020a631606000000b0055adfd70273si1502791pgl.538.2023.07.27.17.03.33; Thu, 27 Jul 2023 17:03:45 -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=kgbNFW1j; 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 S231776AbjG0X1e (ORCPT + 99 others); Thu, 27 Jul 2023 19:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbjG0X1c (ORCPT ); Thu, 27 Jul 2023 19:27:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DA630C5 for ; Thu, 27 Jul 2023 16:27:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BB4661F89 for ; Thu, 27 Jul 2023 23:27:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20150C433CB; Thu, 27 Jul 2023 23:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690500451; bh=eYdamAR9IwNb7ZMcaqS76Bws/3YygfXLjnMwqsbDt88=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kgbNFW1jLhTadTo3OTjnsqbgl3HuNukpcDRdVejd5Q0AzhKYtmSSB8gEcOv9RWhlX gdt70k+LRoxcUmqN/XEwp4duSqHqIhTyyWsT1fLCjTh8jn+/y9LIq9Kcg2c3YRakXn m3RamsQof3ye6ZhkQDdNu9GeUVZPIPN6kPol5k/Idh997KJqyyMbELCM1/mU9yW8of hk3/TaMe7upwvEmND6rtQOSrYfEnpGX6Hl1tCdBn0aw7rMUQb1FdBI3mo1CMAIeQVx Qoibh4W3GBpWN1od4KpUwqUGnlf4W1FWMDj30jRMsjZuJ7lAjOk21HArg0YxAHYq3P XiHijmKsie/5A== Date: Fri, 28 Jul 2023 00:27:24 +0100 From: Mark Brown To: Justin Stitt Cc: Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Jaroslav Kysela , Takashi Iwai , Kees Cook , Nathan Chancellor , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ASoC: Intel: Skylake: replace deprecated strncpy with strscpy Message-ID: References: <20230726-asoc-intel-skylake-remove-deprecated-strncpy-v1-1-020e04184c7d@google.com> <20230727-asoc-intel-skylake-remove-deprecated-strncpy-v2-1-152830093921@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fxdzMHT9nHAlz0DB" Content-Disposition: inline In-Reply-To: <20230727-asoc-intel-skylake-remove-deprecated-strncpy-v2-1-152830093921@google.com> X-Cookie: Go 'way! You're bothering me! X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --fxdzMHT9nHAlz0DB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 27, 2023 at 08:30:18PM +0000, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. >=20 > A suitable replacement is `strscpy` [2] due to the fact that it > guarantees NUL-termination on its destination buffer argument which is > _not_ the case for `strncpy`! Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones. --fxdzMHT9nHAlz0DB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTC/VwACgkQJNaLcl1U h9BKtQf+PU+B7WMVvB7nKGZnwnltRf1hOqO+ppLtmCXfk99XwgbXWOnUINT6wWH8 rqz+nkDW5ENnOOk1EVwQ1ZhlFbJjQhKa6GtrywDD3j69RP8MljzUJB9U1aqemxlM g2ZbR9w+dkv1BR/tbYavi/OceU/0f4BOYEAMCv94GOEh55dCbXcJPVC+QU4zjORa LY+hg4QCm9+h6KL8bwUpim02/gfJ94NugdogkyB31Ct/d87gH53GGnrJRU7x7nB2 UcDs6mPmCH9QSxupNP0S5Zy9VA5yl06ahKnW9YvFiEmRLQJ00An+Pam5Cjrwsfa/ 3gihyIbKLSxc4IGD9kJDuCTDJuz2Gg== =wnJm -----END PGP SIGNATURE----- --fxdzMHT9nHAlz0DB--