Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1670664rwb; Fri, 28 Jul 2023 13:02:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQqG8a/lXlNlhA2R4wKiGSq2T3tqFByE8pZZSPxylhwny5O+Hc4pePX36BgS5DiQKPdCPA X-Received: by 2002:a17:902:e5c4:b0:1b9:c03b:39d9 with SMTP id u4-20020a170902e5c400b001b9c03b39d9mr2806280plf.53.1690574524275; Fri, 28 Jul 2023 13:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690574524; cv=none; d=google.com; s=arc-20160816; b=qlsoP7s7P1ZoVm+A2LVY1I+yiA6NUcsuyYVmKqdvtZlnaS//+XYqiyRcR9jg88K2od WW+1FzjsunoR5QBBeOqPGbmPqXt+E1tEl0NJ/VHOMprZtIr6xveBgq2cmQTexewwjZ0Y FNEVo5sXxSuHTi4l3Tmdz2/7mk/ivK7jZZp9LkaO+rD3W63lw8a0BJ9/feu2bRQW95h6 mTHH/U5uxHbM/CCrwbjqbfydXJoPilpZa4HyA7sfWE2z3dtfMFCSvGzdpmtqWPEtKefW pGxOjYdmtF1cahfxdqX/LnHzwvWVrczFkGwEoFP5SAxSyl/B2FBidStDzLmbHBZck+sN Jg1Q== 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=94oOxm0WoyXasJp0lxEK6G1xzuxiRUtkw48hzY+2KKA=; fh=SMDoRKIBxizkplu5MExvZshP4BrIo/VJ0LR/wlIzzQM=; b=EChmnAoObkhNog+nfjaQpOM8tXiUOW7IPA2/eA5g14hdveWTYoYcLT13sPp+XVxnZJ RMPDDDnwbMzfPR417IJv/j5NjKKOsbdJS0LvQy26mhEWO6ep6OHnD2udV6MvIXqI5Ei0 2Rh+6CaehvD82uGe9Ug4YAt75kLmkgdnqbpKG/kiyM3r/PPZJR89mIztZEdp0LMetU4T t2QNscuIS6eD+QbdS9HxdCaviZLKLuVmVUj3tTh/6NlhydUREj6+ygUUuXBtw6sWuZ7t 8/h84u/AqfJKOmcwAtkhlY+Fc4A6kTG3fnpN3ETycV1Nr9cwaJbLMy43Dbbtf3nJ3ZHT 5kRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nfFcmOBJ; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a1709027c1100b001b53b6b029csi3402521pll.124.2023.07.28.13.01.51; Fri, 28 Jul 2023 13:02:04 -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=@chromium.org header.s=google header.b=nfFcmOBJ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjG1S4Q (ORCPT + 99 others); Fri, 28 Jul 2023 14:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjG1S4P (ORCPT ); Fri, 28 Jul 2023 14:56:15 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3585D19A7 for ; Fri, 28 Jul 2023 11:56:09 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-666e97fcc60so1822458b3a.3 for ; Fri, 28 Jul 2023 11:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690570569; x=1691175369; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=94oOxm0WoyXasJp0lxEK6G1xzuxiRUtkw48hzY+2KKA=; b=nfFcmOBJUm2G6WKuAfyEZ1v/efunAenmLDRiCwhUFkyB4/fhkaMB/a3ar/ZX1JHkJJ X52mM981hfdSShkGjg2Vvwpzny4IOVGJxvpmPnU9XZCRpZCXBTAxRkJJpuboGQBoFhra +GZ3CecY6skX6YlCNydRWv9yDDlEcDjHIMMLQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690570569; x=1691175369; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=94oOxm0WoyXasJp0lxEK6G1xzuxiRUtkw48hzY+2KKA=; b=PKq6PuBFd7WHzIVQNgFVyiqq2cTuvDrPrMRvkfImQp9LoRlPl1yBOlD0aYxfW+asuc EIzDkf2fkiELx0EKrfPmPC/Aar3RgKgWXOTlLcwsrUI2tUKZlG9hbawQ/qRfT1IIC5/g NjAM/uk6K+xOLHabopHCdQ3FX/pnTY2WhB2p/Tw6jFu+kj7Xgh75VWCchrWSV3mnTsKy 3jmGUt6LubyYE2FoGod7ocUmcawPk1YDxiUockEsX6iFDT5Bxo4YW2IaxtRcq6+vvppO HRUAzcNT0XzdGUM891S7RUkWPjpBbnrq78mho9/NPNx9tkpIhk+CJcPZNlKO4o9MwMzA AriA== X-Gm-Message-State: ABy/qLYmIzPsRYyWsJi1bMdA0ePpb4tPmhiZvBlTv5MDcsYE3SV1tXoO AoAhubmvLxr3O+4nxsJd9GhZ5g== X-Received: by 2002:a05:6a00:170f:b0:686:254c:9d4e with SMTP id h15-20020a056a00170f00b00686254c9d4emr3001823pfc.14.1690570569293; Fri, 28 Jul 2023 11:56:09 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id a26-20020aa780da000000b00682802ca418sm3528085pfn.79.2023.07.28.11.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 11:56:08 -0700 (PDT) Date: Fri, 28 Jul 2023 11:56:08 -0700 From: Kees Cook To: Mark Brown Cc: Justin Stitt , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Jaroslav Kysela , Takashi Iwai , 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: <202307281153.B9D0831710@keescook> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Jul 28, 2023 at 12:27:24AM +0100, Mark Brown wrote: > On Thu, Jul 27, 2023 at 08:30:18PM +0000, Justin Stitt wrote: > > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > > > 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. Hm, I see "X-Mailer: b4 0.12.3". Is this a default behavior of b4? (If so, that needs fixing.) -- Kees Cook