Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1145613iob; Wed, 4 May 2022 15:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkq1UYGwEZzwYKvCWrVPT9kf8rJOnyxSPbpTKgefvN6dUegSKd65DjFGC1ioqJKQA/ffn3 X-Received: by 2002:a17:907:9705:b0:6f0:2b25:784e with SMTP id jg5-20020a170907970500b006f02b25784emr22688436ejc.76.1651704869310; Wed, 04 May 2022 15:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651704869; cv=none; d=google.com; s=arc-20160816; b=uz4h1jgkifvL+0D4f/nlcy96ZKuluKIaz6cmwkVBw8w1xVCMCMo+s5McyuH67Fu+o7 BAB7sAOfmgJrW75+AQVKcZFT7SZwvRHZmYrT3xGwoTkKV+vM10/vlhuFre8FNxD/P5JU K42lGqbjoB/Edv6lPyeGPc27hvKGGPeFCuS+5iT8y/bbNH5juLtyuUTf6m2AzBoJowXB FvAHCAKQLC/E+DwlBnyEu82RnFERZ3+imjoruVl5legWEJwPwnN2bFmz3ZpsLMN0kkk0 Gv/3YWsLPtoXtkeIifzbTrafkWnn7DwDwWdy2OpXDIl0ucT0hLB/UoZeUDA1etcXNFcq xTqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=276OFZSE4W+ea61MoYokU+tllPPkyUdblIQehhMfXEw=; b=Nb6DyzyeJYfXblmiejP1C2VlW8NhLeNOic1WO0q/SrjfK9+ekgPaaJ9qw80GjcMGf4 ruqhxmSU8bxXQxnIYb5e5j9/8KyP3ONNrbhYlih8Y4Wq13VO8n4SFFTn8INHmZ+kU6ZS Mt6kIII40hl6z1CAhEOA1pIGbvr0EtU+SA0/koEV2LMnV/X+Ig719i0t2PIrNRl7xVlj leVgMXuUn0MC3DBaZPRemWgqf+DOZ+BiDRyJGKBJaG1Jm3ZhSGTVjH0nEczLHcqodwlD lyhIttiIh0FjNgDgxcU9i98fmsPkxUf3PWQqzhARPm9ghFJ8f3YdrYxcMqv9rekZxGWj Bm/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dztredky; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170906284c00b006f49631bcf5si195825ejc.503.2022.05.04.15.54.06; Wed, 04 May 2022 15:54:29 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dztredky; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350389AbiEDR1W (ORCPT + 99 others); Wed, 4 May 2022 13:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355330AbiEDRHU (ORCPT ); Wed, 4 May 2022 13:07:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6312515AD; Wed, 4 May 2022 09:54:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 35B21B827A3; Wed, 4 May 2022 16:54:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B09C1C385AA; Wed, 4 May 2022 16:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683263; bh=jzTDHvzUt0+FK1GCavcbHjEPmG6peMf7tUCHzlPx87o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dztredkygGwxoDANQyVnRCTj91DDwGWTMKyOH0Ul3Iq0z6e4ykVsnxm5slmM6cPDV Cs0FUb1SPB96mLrXWbLWGi+xry08sU/NFys3Kg08fQbjr0z+4sVn6OQMVTPQfEZuF4 wWtadlXT/pNGoY8eH74Z0y6A3mwVTHGRqKTnDv+E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Volodymyr Mytnyk , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.15 113/177] netfilter: conntrack: fix udp offload timeout sysctl Date: Wed, 4 May 2022 18:45:06 +0200 Message-Id: <20220504153103.316252337@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Volodymyr Mytnyk [ Upstream commit 626873c446f7559d5af8b48cefad903ffd85cf4e ] `nf_flowtable_udp_timeout` sysctl option is available only if CONFIG_NFT_FLOW_OFFLOAD enabled. But infra for this flow offload UDP timeout was added under CONFIG_NF_FLOW_TABLE config option. So, if you have CONFIG_NFT_FLOW_OFFLOAD disabled and CONFIG_NF_FLOW_TABLE enabled, the `nf_flowtable_udp_timeout` is not present in sysfs. Please note, that TCP flow offload timeout sysctl option is present even CONFIG_NFT_FLOW_OFFLOAD is disabled. I suppose it was a typo in commit that adds UDP flow offload timeout and CONFIG_NF_FLOW_TABLE should be used instead. Fixes: 975c57504da1 ("netfilter: conntrack: Introduce udp offload timeout configuration") Signed-off-by: Volodymyr Mytnyk Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/nf_conntrack_standalone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 3e1afd10a9b6..55aa55b252b2 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c @@ -823,7 +823,7 @@ static struct ctl_table nf_ct_sysctl_table[] = { .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, -#if IS_ENABLED(CONFIG_NFT_FLOW_OFFLOAD) +#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) [NF_SYSCTL_CT_PROTO_TIMEOUT_UDP_OFFLOAD] = { .procname = "nf_flowtable_udp_timeout", .maxlen = sizeof(unsigned int), -- 2.35.1