Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2255426rdb; Mon, 9 Oct 2023 19:50:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKmR2MT+3ZHF91ts3LJBUc8ZZmkzag0jzGf0wnjSHNcoQJmoERKzLQsQNQNngo8pvIA/6Z X-Received: by 2002:a05:6a20:549f:b0:16b:8498:7d29 with SMTP id i31-20020a056a20549f00b0016b84987d29mr10108786pzk.27.1696906257616; Mon, 09 Oct 2023 19:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696906257; cv=none; d=google.com; s=arc-20160816; b=UnApzBL2Zm1PEh3H2BwueLH92vhgD5JvbJ/ZHsKFpyKkWwCyvfd7MPCzAT+h83iLkE zGQiCm+vttIlnTgGzlcHmrO9IKxLWpZNx54VzhmzOXGm+EwlWiCxznUmcRTsvHpE/f8H jkw22yThFr2ROmCZX9gdAGFVtqIviSUwEvexVNwQpVS3VBi+IO0n59YDOBw9+xFMQYr2 KwQXzpmDjeMy18JpgZSnyA59DaFqm6X74uUvejaUlwxafTid544EHhKf8eOLvbp1gNMO T5V027KXzLc1SrZPQsSYxr7uNLepYP1DESYNqDrz7ET8oJXSnykhAhwWZ+1L1JAXNVg6 jxYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=2/jk6G0uTMG9zbNKlA9tDCHnNQGHE1hAA4B7H0vIXgg=; fh=Oh2oUuIW9Fn/bxa4azbmfNsRsjjxt2DJfrYOnol5rXA=; b=J3IyMlzukoHL7LC3+yAzM6/hvnhoC0CObVj0KNxzfkatyalVtK2fonXWVTf7x7Xgb/ RaX/1pbYu+DQ+T27lyEjUqpipoJJqytFx67LeaIpve/+QcERFG0ecWOcwQsysp7MNDsm PbcLV5rA6BTZhDgY7TSx7agJj5lOEp30p1e2FO3k4TnYRpxv5huuxZOPnMKa1YO/xxKP 42QNRWIU9d/D4Qu3XLHVbJWvCT1X8XnaWpbULhm5WHiuzgeUHzEzGhUOngVWp/8zOEUg 1rCst8DiAooagPdRGTNvALXXj4gOtsJ0xWN3NkJEv+zwBX1GS2HxuAURsTbxm96OPWtB LEgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="klRtq/dA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id lg5-20020a170902fb8500b001bb00cc1060si9916432plb.84.2023.10.09.19.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 19:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="klRtq/dA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5F55581FADA3; Mon, 9 Oct 2023 19:50:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441947AbjJJCud (ORCPT + 99 others); Mon, 9 Oct 2023 22:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441927AbjJJCu1 (ORCPT ); Mon, 9 Oct 2023 22:50:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57406AC for ; Mon, 9 Oct 2023 19:50:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id B949FC433A9; Tue, 10 Oct 2023 02:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696906225; bh=EeLf/BSDH3FguVNAD/id6IC30XdWEcWyl9KuPVMXqsA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=klRtq/dArl66N9Hu0gw19UsoQKYbxJQVfYkdxHSS/2WSQb8C5+iVfmQ3qiqWHQcA8 THsFTzQSgDrxlbe/AG/RzR1DQl6IelQ9Sd37iONMIcYALM53pD35jgAlbR+sU2ZzDI m5HK0dQ3CRrE4e1Xa119k5t5YD9zP6ykWoDiCWrjf3TguFH7XgSJwbaPMcikpAjiZM d6ufdEkEv2C9+/cYWGGm9q/f976JKlfrTFfh8EAF3OGy1mfq+3xu7sTw3F9f6ulx+q YtmTqOyDllcYLGFt7er0hzKVe91gsrKQMtJ+mV+ZR82TIYT0qJmBev3FEH4tu8Ms3J W+IW/FlDnhCGQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 98AF3E0009B; Tue, 10 Oct 2023 02:50:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: liquidio: replace deprecated strncpy with strscpy_pad From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169690622562.548.12764552380663468970.git-patchwork-notify@kernel.org> Date: Tue, 10 Oct 2023 02:50:25 +0000 References: <20231005-strncpy-drivers-net-ethernet-cavium-liquidio-lio_main-c-v1-1-663e3f1d8f99@google.com> In-Reply-To: <20231005-strncpy-drivers-net-ethernet-cavium-liquidio-lio_main-c-v1-1-663e3f1d8f99@google.com> To: Justin Stitt Cc: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 19:50:55 -0700 (PDT) X-Spam-Level: ** Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Thu, 05 Oct 2023 21:41:01 +0000 you 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. > > We know `fw_type` must be NUL-terminated based on use here: > | static bool fw_type_is_auto(void) > | { > | return strncmp(fw_type, LIO_FW_NAME_TYPE_AUTO, > | sizeof(LIO_FW_NAME_TYPE_AUTO)) == 0; > | } > ...and here > | module_param_string(fw_type, fw_type, sizeof(fw_type), 0444); > > [...] Here is the summary with links: - net: liquidio: replace deprecated strncpy with strscpy_pad https://git.kernel.org/netdev/net-next/c/092b0be65032 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html