Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp273436rwl; Wed, 9 Aug 2023 14:27:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtHeAIR59oW3cxvVIfvMvDJbmdhiPi8Db/yPrqPG5s8uKvFh+NPNHfgfx/oxDnn4UU/lfa X-Received: by 2002:a17:90b:3890:b0:268:3d4:24bb with SMTP id mu16-20020a17090b389000b0026803d424bbmr484822pjb.1.1691616469852; Wed, 09 Aug 2023 14:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691616469; cv=none; d=google.com; s=arc-20160816; b=xXcqygwmkJZqgWESEVnWgwrY7KaOHWXA6Z5b0Esw97LxaGnmTxfXvScnaTlKCpYdl9 mDw4MJNu6ToH4vjLIYtBSLpIRnGw12N0TjBsqIyVXtVVyhV421pwiCqjw4VTKzBMBZhI RnJuR2yY7KVPDgn6fqHJvLlc+zezef3/FBd4q5l0m5qz98C6NuOGK6SGPLnmBYDxXfog dnqP/uxMvvyaV6CgalyPsicrii6VSQCQPZ3mzG8kkvxxmkKMSz0Zp4RrbuTyhJUWhggo WEpNviyquYjxvb9o9W4kWfVJOUl+CNB68bo5qR1GrFC38/x+AWFWSnTnumYWkuEebOQE YinQ== 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=l4T515P985FjVRD533ErrS72R63l7mJQS5FASJr5OtU=; fh=q+idgjsNOfSeB0DE+ldLVkxZV9h+m6OLm8KWzgZjrCg=; b=gcJe2TFI1UXYSnp26PMpq6XN6ncRZQM9k9L+1F6CN8Y11giHjD6+E5YwfWOUrWccgN E3CuCVoMmTpq/lR00hjvTmWRUsPPdPQx3RUoYLiZvEhJJzJ7nwbqDyrrnrWE/4LaZsl6 gzED6ohjU64/D3gGn/dD89wpipIWa3cihwbLYldRZi0ndZkqLKsEpX3SGMqnZTFaAbdA uF2GBGlLvFrb4OLCoKgUkUFWkKa6dtEdZsyIfBpoRJSdD0JAcF9F4D3k/4FgnXfk6X01 3yRFych18+juLdRdiDDBSyEQdV+MrAQJNAMqCqBwJsUFSYTvOd12KWOrz4KkE8mTmQCs bYiA== 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 h16-20020a17090adb9000b0026841a42bffsi86349pjv.139.2023.08.09.14.27.37; Wed, 09 Aug 2023 14:27:49 -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 S234231AbjHIUVz (ORCPT + 99 others); Wed, 9 Aug 2023 16:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234212AbjHIUVy (ORCPT ); Wed, 9 Aug 2023 16:21:54 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DFAD10F6; Wed, 9 Aug 2023 13:21:54 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qTpgi-0001cx-A0; Wed, 09 Aug 2023 22:21:48 +0200 Date: Wed, 9 Aug 2023 22:21:48 +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 v2 5/7] netfilter: nft_osf: refactor deprecated strncpy Message-ID: <20230809202148.GD3325@breakpoint.cc> References: <20230809-net-netfilter-v2-0-5847d707ec0a@google.com> <20230809-net-netfilter-v2-5-5847d707ec0a@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809-net-netfilter-v2-5-5847d707ec0a@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: --- > Note: Should this usage @8556bceb9c409 also be changed to `strscpy_pad` > or is zero-padding not required here? That commit converted strlcpy which doesn't do any zero-padding, I don't see anything wrong with that change.