Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4936745rwb; Tue, 8 Aug 2023 17:04:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGl5niY4JYnRMeIVFYrJziZW91rJFjdSE6TXRPEDfHoVJwqVu82XfG6dn2ZZsa0kyEIce0 X-Received: by 2002:a17:902:ab57:b0:1bc:edd:e891 with SMTP id ij23-20020a170902ab5700b001bc0edde891mr12211772plb.1.1691539395796; Tue, 08 Aug 2023 17:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691539395; cv=none; d=google.com; s=arc-20160816; b=iXPn/rPJP7ibRqJ4BBp2NFJtlHEh5d7NAqYK8HVXccrAeWC0dNhwVQPRJjKPvdlASY Ri9C+OvP4NALBIUVcLFyIYc3wdWXgMStWRNYYoDYc3V69TvgOif3zhvO/YJG2ns8W359 a08Lv1ag9FTLn/wIxFsYhIQLKXvq7f8VqF+ogA56+0i8Up5pT6vF6L1gILvUI9LxMpf9 v6/WaMjG9MqVCUN1B+wVyu/6FU+lHmOwYKsFWqljlgfzB1vWt6P1GSbLVnZt67i9fjMI k7pqLov1Ufo2LIclvsjPTNCI4o9GkzqAjdAbNNcqaF+k5MWm6DrCR7s+NXxFyZXksqhX 62Sw== 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=fqtnOSdo931v16QaX2JigUnOxF9dSbm1S/CYQcRFglo=; fh=q+idgjsNOfSeB0DE+ldLVkxZV9h+m6OLm8KWzgZjrCg=; b=lnGnmFUhANkhen7NRcpaXqrQdIVM5yohIQTnC3SAkMUjnqHi6vkIKxg14g2Zy+AI5F WA7u6QOvmrFaxMofd7URB3LPqV/5ieRE5BZdNS/gO1mPUJDCqkPvJzfi0DI5iae720Ok YW1ava85v67hoKt+gmSC7/1+H2k0RajOt4YBa+kmT1dn44+VZ49P2YUNYsT1bckg4XRa 4wWXAmXEOBnwUKD0whw6IVY/RTfqlbmD0JfcCJPAoUy/dbfAvxvSwjmATNy7HRCiThKq OIjeGLLijb1p4AiiSlpionf3blfOrejAkRCsCi764BV92uRVvgLDH/YTGX0fB9XzLcRP 2aPw== 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 i13-20020a170902e48d00b001b886d36bf6si7948536ple.226.2023.08.08.17.03.02; Tue, 08 Aug 2023 17:03:15 -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 S232083AbjHHXOL (ORCPT + 99 others); Tue, 8 Aug 2023 19:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231893AbjHHXNw (ORCPT ); Tue, 8 Aug 2023 19:13:52 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D5B1BCB; Tue, 8 Aug 2023 16:13:43 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qTVtN-0005R9-QY; Wed, 09 Aug 2023 01:13:33 +0200 Date: Wed, 9 Aug 2023 01:13:33 +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 3/7] netfilter: nf_tables: refactor deprecated strncpy Message-ID: <20230808231333.GH9741@breakpoint.cc> References: <20230808-net-netfilter-v1-0-efbbe4ec60af@google.com> <20230808-net-netfilter-v1-3-efbbe4ec60af@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230808-net-netfilter-v1-3-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`. No, this relies on zeroing out the entire register. If you absolutely have to do this, use _pad version.