Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1392307rwb; Fri, 19 Aug 2022 02:55:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR59oYXBQKsexkqa2YkeZ7Ph77UVks8U6ci93JfG+X16O6saFFvceN9iEzyJKNMQLJMLG6AF X-Received: by 2002:a63:90c9:0:b0:42a:306e:5e2b with SMTP id a192-20020a6390c9000000b0042a306e5e2bmr3446664pge.380.1660902958546; Fri, 19 Aug 2022 02:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660902958; cv=none; d=google.com; s=arc-20160816; b=zBeLf59qjdY0xrVh4qQAZdaG6pYON0v/4InTlm1b0jTnztpjPc8nxz9IP+YLfdSkTW l6l7CWNhYn7tRwiAlQ8cfJfcJ06orIav1WPkqolvaOYy1VZAzNvS3ud7ma2Ic1T0FYC/ 0++yw08eade2yWE5Abyiz5+QuAfCheyIhcXLPNPXVSjuJ1R8hMI4bjgNoc+TGhJt1xEF aCuH8PCuTM9r+ktz80VeolQtEmJVQzJaomi8Bk7JsMiMMtHiPO99Nf2roayQB3K7NKJM a914rCBy6hWW+WOz0VulF2KHx3vY2FAZrJGpMrcFa7FodZiK8xwPPoNZBf0Y5sbXYzFM nHkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organisation:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9750/R2oniVv9/8tZi/t/yzEHtEIcL0BHrPr/nLH3r4=; b=EBrTcDJETW6ygjoMoBvHX7uAWwl28EoCPGNKyiSp8+KA+jGloRCNl/CN1z7V/RbFU1 yX4ekBql73+ocFDtrWnAiKyqAlIgDoRJzjgVjpCHOmpgKVNMTo7vn33IYMOPbco8p+Wf bVvi935jC25tUZOzUXMXwUBRPCRzJNeU/7YaSFJt1Qs9nCtwVxtzjbgzfb9ORUuTNZXa TNoQ5Tg/+lIZGXYEIoLk14HZWMGCPsB9z1tuEK1uy+uD+GaltpQt2+g/7S8vWVAj5x1u b9AJWWtkIs9qL4vaJGWLL86V11qt8L4h7nfk+b35UTkroz/okg2/zKXRqlw6kv8ncDR9 kYSg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x191-20020a6386c8000000b00429a769c2acsi3352982pgd.340.2022.08.19.02.55.47; Fri, 19 Aug 2022 02:55:58 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347069AbiHSJuL (ORCPT + 99 others); Fri, 19 Aug 2022 05:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347931AbiHSJuF (ORCPT ); Fri, 19 Aug 2022 05:50:05 -0400 Received: from zeeaster.vergenet.net (zeeaster.vergenet.net [206.189.110.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC35E3981; Fri, 19 Aug 2022 02:50:04 -0700 (PDT) Received: from madeliefje.horms.nl (86-88-72-229.fixed.kpn.net [86.88.72.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zeeaster.vergenet.net (Postfix) with ESMTPSA id C3CEB20537; Fri, 19 Aug 2022 09:50:01 +0000 (UTC) Received: by madeliefje.horms.nl (Postfix, from userid 7100) id 4EF223E5E; Fri, 19 Aug 2022 11:50:01 +0200 (CEST) Date: Fri, 19 Aug 2022 11:50:01 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Julian Anastasov , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, lvs-devel@vger.kernel.org Subject: Re: [PATCH] netfilter: move from strlcpy with unused retval to strscpy Message-ID: References: <20220818210224.8563-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220818210224.8563-1-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV X-Virus-Scanned: clamav-milter 0.103.6 at zeeaster X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Thu, Aug 18, 2022 at 11:02:24PM +0200, Wolfram Sang wrote: > Follow the advice of the below link and prefer 'strscpy' in this > subsystem. Conversion is 1:1 because the return value is not used. > Generated by a coccinelle script. > > Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ > Signed-off-by: Wolfram Sang Thanks Wolfram, FWIIW, for the IPVS portion: Reviewed-by: Simon Horman > --- > net/netfilter/ipset/ip_set_core.c | 4 ++-- > net/netfilter/ipvs/ip_vs_ctl.c | 8 ++++---- > net/netfilter/nf_log.c | 4 ++-- > net/netfilter/nf_tables_api.c | 2 +- > net/netfilter/nft_osf.c | 2 +- > net/netfilter/x_tables.c | 20 ++++++++++---------- > net/netfilter/xt_RATEEST.c | 2 +- > 7 files changed, 21 insertions(+), 21 deletions(-) ...