Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp588623rdg; Thu, 12 Oct 2023 14:59:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8wI7+wCRJ5fGlraFgUB9ryTtU/ymqwGHFVUu6Ay5e6TF7iBUWr1SJSl6MEv/K6A9zKKu+ X-Received: by 2002:a05:6a20:a11f:b0:16b:b0ea:b0a1 with SMTP id q31-20020a056a20a11f00b0016bb0eab0a1mr19496613pzk.34.1697147997024; Thu, 12 Oct 2023 14:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697147997; cv=none; d=google.com; s=arc-20160816; b=QAHcaO4PHNWS9SpdKXkyhZYZxSI2Zs/39sixvYZRjpMYHyXkqzQbctPVh0yZRHCuZx ruLDps26kR1UQA5VjFGO5KD3U6te23T+lDa0WZeWfsKZQabYsx2kHFq7ow7SFqdZA51q Y4cePN3VzwvjoCFJ6eOWUpNHPMoQmEkumz9ka6WTDFlqLbcB7aHDP5YYW2GogMBo6jVv 3oeMm+rXoMS1EvWro5zv0uTn8ngNP47GCM1DYF+fZuCtOJeUh2NgpXoSNp9hH79kaOZf q/sgOc1zrbjcQGqDko+qyhZ5wtrwpALBdgEqbMRdAnslDPZDliAJq421bF+kwHyUA5xJ 3tXA== 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=gobBcxPBoS/5aON/A0Pp+tXPghgeMbdNqf5raF96FtA=; fh=PTyEvRDa58K05ZSVuqc5EC4KkpA14i62H06BKuSTXbY=; b=UY3A0v2rroWiReNGWP9OUy/e2nDegEVJKXMslTH+Bj6wn1upCrgMQLBoNS0c+jv8Ka 74jBiB9I83CtqutLu+y9hicDhJcJm9BsCmOrH+9gpZHmLoC8RgY91Bnv9jhzxk/NWpIp lyi8wI/mU/cM88e76cY9Fnvi5gtdPMm42rshijY0tn0UQS8Rrr+ChE9RikYw2TSlu2cP TjF7fSST8fzMm6Q+b5YV3BwGik+A5dZxChSRt0ACzyQIHaeDulybxNsuKZWbRen4160e E2M30AnpAlP1+HtwSqgZdIbgv5B2k7YnntX7PSW1es6OAy5z81hAyVK9v0t6s/1guKxW 66fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yVBqYdQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e23-20020a630f17000000b00565eb0b2e66si3093465pgl.864.2023.10.12.14.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 14:59:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yVBqYdQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 8F8B4802FB95; Thu, 12 Oct 2023 14:59:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442942AbjJLV7r (ORCPT + 99 others); Thu, 12 Oct 2023 17:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjJLV7q (ORCPT ); Thu, 12 Oct 2023 17:59:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99624B8; Thu, 12 Oct 2023 14:59:45 -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-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=gobBcxPBoS/5aON/A0Pp+tXPghgeMbdNqf5raF96FtA=; b=yVBqYdQUaN9XTa+EcKVqXazYe4 vr5NHqiSDdm20VxMYU1Y3bmMmc7ZwmN17QWU6rmZoVlWb3YLAFlmKSJpZ7vxwDc/iuVptHT5WBiAW dOlyE829z7TkkBVN04Rs1xw6OP7n/c4jySFcoG2bGQp/wd2W/QSvbaG3v4r1n+yWu8RQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qr3iT-0021VL-2r; Thu, 12 Oct 2023 23:59:37 +0200 Date: Thu, 12 Oct 2023 23:59:37 +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=us-ascii Content-Disposition: inline In-Reply-To: <20231012-strncpy-drivers-net-phy-mdio_bus-c-v1-1-15242e6f9ec4@google.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 14:59:54 -0700 (PDT) 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? > Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-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