Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4408177pxb; Mon, 21 Feb 2022 20:37:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYG3PxWz/V+FvS8RtGQdAhU2Sbn+DiYSNU2tyRIVhqpVGG9FCWdcJNb7NBqGrR+uyv4FAa X-Received: by 2002:a63:6d0d:0:b0:370:14d8:5962 with SMTP id i13-20020a636d0d000000b0037014d85962mr18336094pgc.463.1645504625855; Mon, 21 Feb 2022 20:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645504625; cv=none; d=google.com; s=arc-20160816; b=gBaLUHvfsgXlgz2V2MyfJ6ccQPuDk92euqs6BPhDAXB+9Gw9fEHYzJ1SQ09xWtQUo8 kLk5TACJpqH6FF+RGuu7heHXvFrt98IXpz2lGV1eOW779cs23bdYiTTsTK3EVmCrm1s1 T1LnzIlqHYLtKVJoVcfn9WDIDHdnEBmg2fSX2FjpRohwDWIrYgJMyLm76mup7sDLejZR ++5rfLEX26netXdrRLhJlztstQ0oKKJ42wm8ygG60h1NufzS2EgWYZXWDVxPmSZOKaDz 1TH2rG7B/O/GrDIhao4K4JJBCuk0w6iQ+pgAUMaChkhMh/etlLB8uC7fLEsu+538j+YD HwoQ== 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=UYbwE4r/Lj8YXslwvrCJDw1WZMVt25xDxm1nUfqzJiQ=; b=w8ZdG9S00AdzBYnR+eC2hQJsLxoX/vtKegmEoTJdAcjQv0TQrECSmjIyVA9kZmRTz6 PbX5x42+dkH7EfYOpRCvMq+7U1yQtUclW/nTdXZNv7VD7hUB1CdvWRLnkPe9pWaYXBTN YyxA87ByaC24WKTPRjGsIFM/sYCzxFv5z/3ts/ejNNg+oDZlet08kCESpM2n6/6w/NC4 SNDgUue/ZlaCnwInE0h2f/YKqxyep84eAcc+rLZaKzr4Pylmx3HVWTjw7mVQxSCJlRLd Hxi/H+JKEbCBZ3GVbSJWgEy39PXvd9sx3ZjFCedtEnK62Ao9dmuFPtX/eGVbpGOBuoum sPng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O/9qnWVR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h11si10204313pfv.60.2022.02.21.20.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:37:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O/9qnWVR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 686838F9B8; Mon, 21 Feb 2022 20:25:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351925AbiBUJw6 (ORCPT + 99 others); Mon, 21 Feb 2022 04:52:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352884AbiBUJsA (ORCPT ); Mon, 21 Feb 2022 04:48:00 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A34192B7; Mon, 21 Feb 2022 01:20:52 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 4C747CE0E7A; Mon, 21 Feb 2022 09:20:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31F84C340E9; Mon, 21 Feb 2022 09:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435249; bh=bYmxFUxu5FgBnwgvdPY3DcQ50JmfRGtEJ/k/w9849Q0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O/9qnWVRnyPdyO1f+4r2brJ+qvbuRMpAI0+cX3xOBIB1V8TKL+QOatWp4N0nnsno4 OHdTCSdqe8Zr24dPIxkePAEUBLK+WBfBdKbS0+KFmcnGj5UMNm3L6/dvXB7BonjVKO deClWiHyNT8A8F/wZgEzATHLst2QaCNF+0fzbshY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Florian Westphal , Pablo Neira Ayuso Subject: [PATCH 5.16 097/227] netfilter: xt_socket: fix a typo in socket_mt_destroy() Date: Mon, 21 Feb 2022 09:48:36 +0100 Message-Id: <20220221084938.106083394@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Eric Dumazet commit 75063c9294fb239bbe64eb72141b6871fe526d29 upstream. Calling nf_defrag_ipv4_disable() instead of nf_defrag_ipv6_disable() was probably not the intent. I found this by code inspection, while chasing a possible issue in TPROXY. Fixes: de8c12110a13 ("netfilter: disable defrag once its no longer needed") Signed-off-by: Eric Dumazet Reviewed-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/xt_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/netfilter/xt_socket.c +++ b/net/netfilter/xt_socket.c @@ -221,7 +221,7 @@ static void socket_mt_destroy(const stru if (par->family == NFPROTO_IPV4) nf_defrag_ipv4_disable(par->net); else if (par->family == NFPROTO_IPV6) - nf_defrag_ipv4_disable(par->net); + nf_defrag_ipv6_disable(par->net); } static struct xt_match socket_mt_reg[] __read_mostly = {