Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4968112rwb; Tue, 8 Aug 2023 17:45:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESrYrdn1kzi5HQr0egFcO/MiLekEMEQKqlVN2K5LBBmWkQXxShjpjjZ6zIx+ZJ6j582MHK X-Received: by 2002:ac2:5f6d:0:b0:4fa:d147:9df with SMTP id c13-20020ac25f6d000000b004fad14709dfmr682057lfc.19.1691541913172; Tue, 08 Aug 2023 17:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691541913; cv=none; d=google.com; s=arc-20160816; b=a1coeoLa+INSwak0ZAFRDfaPFXuYVaByfSmUY5VfHIwtFZgLh+7o80VCyRWMzTOsO4 p6f+g3gS58dU05iRCRqKEjcQxhAjtuPy7gi1nhXlPAR15qsIhm+8ewg680DZDNnwt3iN JQRQ5JkNQ51KSnPPG53KbGseB/WOFeG4NFIZQWqsEUYGNYR0bx6SOZeuE5tn2D4iQiGQ icedEMSu3F8FrQAD1aB7Nev9KPivJicJ8b4I6EfGLn28hVlBGgOPi4cjGpiO6JjBXvlf SNhdxeJ8GesHfqfXVnm35Z4+zzV9pKbfA9WLcKwjpZ8pd1uXnxWIPEM9yM3OC2J41lRK TGcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LoXfMQ5IwhI1mwLG+rmIqzubLe3bCT0d+y2sBcHOL0E=; fh=q+idgjsNOfSeB0DE+ldLVkxZV9h+m6OLm8KWzgZjrCg=; b=zg+y3r1qDLuGUw/OKg8NZNS0Oul0X1DAICKMdT+xrZFobae/lsxB7/JaIqS5e96Bcd o7gJzQiijFo/Ku0MjnRhMx7OgWgzYYw9vViZK75EW/kbMPA5d/VX+Jokz8TPrZLd9/BF BAQElf40hDRYYweCBtW/oBX1U/1zUQnP1a6YWRC73fox6fC+IKHSEfDV66NT0ZXb7cJt DuHxijGWI0QMi2Hw5dOgeabIpfqoFqmfxtaLwEtVTVRGpCAFaVzwzoroN/uXUP00FYaS +XTWjNzFQCE8A/1um/P3cXfGiCF44breDyUGrgWmXT8J/4+TfhSIsBCDYB9JIC4wBXhR niDg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a170906278200b00988c408ed41si8093591ejc.513.2023.08.08.17.44.49; Tue, 08 Aug 2023 17:45:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbjHHXkJ (ORCPT + 99 others); Tue, 8 Aug 2023 19:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjHHXkI (ORCPT ); Tue, 8 Aug 2023 19:40:08 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FF1DC; Tue, 8 Aug 2023 16:40:07 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qTWJ0-0005cC-02; Wed, 09 Aug 2023 01:40:02 +0200 Date: Wed, 9 Aug 2023 01:40:01 +0200 From: Florian Westphal To: Justin Stitt Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-hardening@vger.kernel.org, Kees Cook , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] netfilter: nf_tables: refactor deprecated strncpy Message-ID: <20230808234001.GJ9741@breakpoint.cc> References: <20230808-net-netfilter-v1-0-efbbe4ec60af@google.com> <20230808-net-netfilter-v1-2-efbbe4ec60af@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230808-net-netfilter-v1-2-efbbe4ec60af@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 Justin Stitt wrote: > Prefer `strscpy` over `strncpy`. Just like all other nft_*.c changes, this relies on zeroing the remaining buffer, so please use strscpy_pad if this is really needed for some reason.