Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp589830rdg; Thu, 12 Oct 2023 15:01:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnz2y9wYxwd4IBSVJTxdEHs6Nq80cGqYlgxjSUBwh6+zRUBGoB5bRMTiOanrgyUFdrnOB7 X-Received: by 2002:a05:6a20:8422:b0:140:730b:4b3f with SMTP id c34-20020a056a20842200b00140730b4b3fmr32583886pzd.1.1697148097520; Thu, 12 Oct 2023 15:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697148097; cv=none; d=google.com; s=arc-20160816; b=rfzr1+m8Hert59sbRTXFJhePDGOcuPvnQpTGcIXxBXrZcaj2C+fJo9mqGl18OrrNiW jy7XEpc3D/Ey4eH3NcXKsA0sjB0FPkdb4VEe7zN7Lgu+J+EKeJLNYUIVVHeDAYQ669gB xN0VlxEVXQdtZCy0Aq8JjiL+1AMgDZnUSONm0IBPxXvdCcb6H5tIgLmzYNQvs+5HJ0At y75f7l/q+lKp/Y0OqxMPZYD1BzIY7pczZwJyMhKtJy/m74p1zMLUILfVeN7/YZuWTawx JksJV4rGFISRbMm+jibW2kVrvbo/B6SSoKEXll1zxgA5EiRVyHsBY0z195LkH9290Hfl qReQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=odwr8eDy5SCBmCoOrVqIA/yNf2FEEwKvqJwp3o31tFQ=; fh=jzvEjc5K4E42Z8wDq/ab1jMxfN3gL43SsyOLaF/YCvw=; b=VN8PZGn929IAuLsiWTFNyRukv2tMsvfSB4I0LkzJMjMSlG8TO2tB7mNPK1TWZ8i/CD IJ0f7y8fte2KeAG1cvldVbIS7dAlbcAqAaMPCUP344Cj4lSVrzptq9kYSYWJL7RhGM0Y Y5D8k2F7C3ebS6BAYYVZw9TnzT4yFx4N9p3mClB4hwXmdPq6B9eaFvj92cNG8DNh4qjS 1fZNbT+9taGOibshUd32JBS0iikz6KbfXP7ODcQIdewjWrdeLjCuqoARZoGTz4FBtTDl g9dM+JtUGWp3HWTYoBTOQ1bczg/O9DmoylicNQCVflHnHaKtSNykVGtRgAt1RHeT2jbW TgpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GufGVWIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e6-20020a170902cf4600b001b8039317cesi2854395plg.301.2023.10.12.15.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 15:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GufGVWIZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F1C80809F386; Thu, 12 Oct 2023 15:01:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442973AbjJLWBX (ORCPT + 99 others); Thu, 12 Oct 2023 18:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347416AbjJLWBV (ORCPT ); Thu, 12 Oct 2023 18:01:21 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 037FFCF for ; Thu, 12 Oct 2023 15:01:20 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53dfc28a2afso2534119a12.1 for ; Thu, 12 Oct 2023 15:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697148078; x=1697752878; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=odwr8eDy5SCBmCoOrVqIA/yNf2FEEwKvqJwp3o31tFQ=; b=GufGVWIZMUS7kr3IyC4izYXap+cKiYLwfoYZ/dvXYGG0UnTeKIbXufmRXbcK2XCE4E wWZSOyFnsU6uF9sOB4u8dZttGoUJ1a3SBSpD3MO1WaT9vj2b39P7ZYx4sWWBnG1gKgdz Krht4U7UrM+tH6PUoBhgNyou152hTZ+V1unZw2Vc5orixBhmhHNRX0OJSa/CQ2vR2cRG F301Wi62seOdctwQ8JQao3gwmuqz5YB+6hYpKeG3NRxeQVBNNzIITSuc2OOqCIrtY5eX eWnofK6Bdem2v1dHlqlcODhk1vccdwwHFO/Y/NG7Rqf8ISJ0Oq8RAmzM1nrmGp4aDLpB PtQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697148078; x=1697752878; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=odwr8eDy5SCBmCoOrVqIA/yNf2FEEwKvqJwp3o31tFQ=; b=Y9APtdA85dXWHAm87Tn5ppIIQwYEZ25V2yQamJuZdw1cYU9lMlXl5RQsmxbd+9aT+T t5JJ/CjPlA02bWUR53K/DFICVpES+7O//v1A8LGpFoJbD8E5gkNVBvBzzTaqANYUzLbF /0y7jp0IlI4PvXP8igbvmLSzOyok5Gr1eyceLRbtuCy+MLuYrJ61Y0o3CrDAGXLRiMIg Z3HxlQhPnME+9HY2eJY/cj5RpSWwkhLW/CENxsGkL8oWfphlZovFkOrb3Csc8p5M/Uxa JEVdoTXdu8tCYRNXDKd8auRfUQ1fF9jK3B4LFJGBcZnYSAIhW8A8wChclH1WjtmEmqNg abMQ== X-Gm-Message-State: AOJu0Yz9dYQ5nrmhOTnO57sfHDXwPu9z4HFiGYFIAPKCmssUfT9RBWiy QbDap7wpLdo4fX2G1cB8SlycuQy5QXrqI7Yv5VJIsQ== X-Received: by 2002:aa7:da84:0:b0:536:2b33:83ed with SMTP id q4-20020aa7da84000000b005362b3383edmr25702236eds.24.1697148078438; Thu, 12 Oct 2023 15:01:18 -0700 (PDT) MIME-Version: 1.0 References: <20231012-strncpy-drivers-net-phy-mdio_bus-c-v1-1-15242e6f9ec4@google.com> In-Reply-To: From: Justin Stitt Date: Thu, 12 Oct 2023 15:01:06 -0700 Message-ID: Subject: Re: [PATCH] net: mdio: replace deprecated strncpy with strscpy To: Andrew Lunn 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 15:01:33 -0700 (PDT) On Thu, Oct 12, 2023 at 2:59=E2=80=AFPM 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 sepa= rate 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? > > > Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#st= rncpy-on-nul-terminated-strings [1] > > Link: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en= .html [2] > > Link: https://github.com/KSPP/linux/issues/90 > > Cc: linux-hardening@vger.kernel.org > > Signed-off-by: Justin Stitt > > Reviewed-by: Andrew Lunn > > Andrew > Thanks Justin