Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp908008rdg; Fri, 13 Oct 2023 05:06:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAkfEH6qr7ZcGCXDqQ5rJFyVUPCyz3lEVeM3pHE+0WeUhBFx7bixChXio6R+5wGz6yiLNT X-Received: by 2002:a17:90b:1a8c:b0:277:37fc:6e85 with SMTP id ng12-20020a17090b1a8c00b0027737fc6e85mr24884461pjb.0.1697198777259; Fri, 13 Oct 2023 05:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697198777; cv=none; d=google.com; s=arc-20160816; b=h8WrTzojGpj0Y0UQFDhfbvQK/YFvqO421nGMFbWNsnN8SHa46EzBF+zTmyw1B28kTx 5FhQVo+opmj55jHc5G+BVp7MARBGohjCl1EkFDUZrFq203z6gi5XWsu83eHQIkZfdVGr yvekKFMDlhqOSk/6fshLG4lVOwdPUBym7J1kf8dCH/Cc3uCjm11GT8rDtn+Y3rkkvEWe CW94hXHTfjtkOVAdkvt9Flcm7RdeB5tNK3HH0KbJcsdw+rvwsUckCJrBOzs78Yf9MQ+y ANGDUt1fqk4Z6tRrAMzFwTEKatS6AS/kJg0Gkbhf+l1DE1eQ+t6+bFpyEZpIoaSDA5/h 3LmA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JVNjKA5BDxHIuNoLtOyLa0d8PBvTaC7XyqHCbnt00h0=; fh=PTyEvRDa58K05ZSVuqc5EC4KkpA14i62H06BKuSTXbY=; b=co0QNLN1SKf4+9K/iCori5uhQ0tjdzaNU6xkXKAqvDCrJvhOddnx1PEeiTs2dgVly9 86bDSCkiXU6U1VpJBXzIVCBFiMl3Pu8q8Q2/76HbRHR16WHYcqSjqGu/i6EKwuQ6v3kj f7/B/Ha8fbHBB0IJqtYSQXonoyp1266s2ZGHleR+IUffb2ilFnXW63JDwlfEUE4Qy6IJ TozVY9luYhhqlYcQX87/naTVJsuXcSADTwerWb/4GwEYw3hQJBanaBTPWstjwwv6aO1f 0LrJW3WaXFqMONxcqLpyVzZ5nEduLq+fevOwU7i4VCihjM/1LklIjL5DGTIB32R98Hmz vdjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=C9HT0EZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id v12-20020a17090abb8c00b002792576aa86si4461867pjr.134.2023.10.13.05.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 05:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=C9HT0EZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id ED2F381D2D0B; Fri, 13 Oct 2023 05:06:12 -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 S229900AbjJMMFs (ORCPT + 99 others); Fri, 13 Oct 2023 08:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbjJMMFp (ORCPT ); Fri, 13 Oct 2023 08:05:45 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F48FDA; Fri, 13 Oct 2023 05:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=JVNjKA5BDxHIuNoLtOyLa0d8PBvTaC7XyqHCbnt00h0=; b=C9 HT0EZtdZTTScE2v3IV7j2X36h2efmC5H3E6jYaFi4GMyhNJsRNTWKErZXFLPp+3JRhgc/JgIrGEXu OA3001XO64hvR99tJBz1CoZKBkx5xMobrF7Le1xEwXXZ3Q+RECtFyZr1rUbrpfC4ln9grnpq1M3pk 1IGTLNwTDvDhvaQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qrGv4-0025Mw-JH; Fri, 13 Oct 2023 14:05:30 +0200 Date: Fri, 13 Oct 2023 14:05:30 +0200 From: Andrew Lunn To: Justin Stitt Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] net: mdio: replace deprecated strncpy with strscpy Message-ID: References: <20231012-strncpy-drivers-net-phy-mdio_bus-c-v1-1-15242e6f9ec4@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 05:06:13 -0700 (PDT) On Thu, Oct 12, 2023 at 03:01:06PM -0700, Justin Stitt wrote: > On Thu, Oct 12, 2023 at 2:59 PM Andrew Lunn wrote: > > > > On Thu, Oct 12, 2023 at 09:53:03PM +0000, Justin Stitt 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. > > > > Hi Justin > > > > You just sent two patches with the same Subject. That got me confused > > for a while, is it a resend? A new version? > > Yep, just saw this. > > I'm working (top to bottom) on a list of strncpy hits. I have an automated tool > fetch the prefix and update the subject line accordingly. They are two separate > patches but ended up with the same exact subject line due to oversight and > over-automation. > > Looking for guidance: > Should I combine them into one patch? No, it is fine. Just try to avoid it in the future. Andrew