Received: by 10.223.185.116 with SMTP id b49csp825980wrg; Sat, 10 Feb 2018 21:18:38 -0800 (PST) X-Google-Smtp-Source: AH8x226+x1aoE732kfxyZoXQuLbxCphz7Y2roemz/7FSyTVLh8BO23IZzJJLxSwmMgIERB2r8dJF X-Received: by 10.98.137.6 with SMTP id v6mr7898933pfd.179.1518326318121; Sat, 10 Feb 2018 21:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518326318; cv=none; d=google.com; s=arc-20160816; b=l93ieSK5+w7hY5COuvAhHhpe1Uwyf7mWdOYk0nG1qsr53OSXL3A4IgMR0KV71vvKjx G74nF2kawCnfaeujgRGIit3l4ewZfRR8uxMZ90vdvSiUlot9HJMVcWN40PYp6yEzaQBr mGNpa+yhqw9rPdQ+k9Y2RepIRX66Xci2Cu3G4iCJcFwGUABS19PQ0YFxnP7oK8qWytgs OL2eBeGFFT/UU3aSQ15bV95/fDhQOtv/Mu1rUj7V/vwI/nRVde+TU2YaYSZTE2YT2coN r5Upt9nNjqcf5AnOsU6mID3I61eZa4Hj8JbARnqUnwVsybeqZJQPVrfcpcPxgqdKrTxr Sxqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=P2yoQrIJEeXgnhGo2ZQc5/o6LnGHgFs8GvED3qy2AN8=; b=lkr+6OvTm4lV3noIz9AesWVcsPpKQfRUNsSZgMpIjEKqw4V/BUh5c+agelsztS1izO Xs4vqRIuN/R8jsutNYXd91bkm4+2oIIGrCRglp21C4ECINu8RQVJYu5IcUQS7P6m1yVP L7GCWSmIS78NLsoM+WRHkO62n5Ns5e2CiP286+O3I3wiRqJoCN4AB2Pfy3ptTzIEfgxd 9s+OpbZZ2PqMnhQo5Qoisgbcx9/SF5TeldZeRYZNFZfrLRNpgsMYljTCtwuPbmFLABuK Jpoa1zG5lQeQsCmqaj9eyLfVzjjdh4hARDeUyZ18CbNH2Fs39nPh/aS1bZDSthNQxGaH 0tgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si1656544pgc.727.2018.02.10.21.18.24; Sat, 10 Feb 2018 21:18:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753597AbeBKFQx (ORCPT + 99 others); Sun, 11 Feb 2018 00:16:53 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41365 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752581AbeBKEdl (ORCPT ); Sat, 10 Feb 2018 23:33:41 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekjKd-0002hQ-Jt; Sun, 11 Feb 2018 04:33:39 +0000 Received: from ben by deadeye with local (Exim 4.90) (envelope-from ) id 1ekjKY-0004Wf-Nf; Sun, 11 Feb 2018 04:33:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Pablo Neira Ayuso" , "Phil Oester" Date: Sun, 11 Feb 2018 04:20:06 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 65/79] netfilter: xt_TCPMSS: correct return value in tcpmss_mangle_packet In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.99-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Phil Oester commit 1205e1fa615805c9efa97303b552cf445965752a upstream. In commit b396966c4 (netfilter: xt_TCPMSS: Fix missing fragmentation handling), I attempted to add safe fragment handling to xt_TCPMSS. However, Andy Padavan of Project N56U correctly points out that returning XT_CONTINUE in this function does not work. The callers (tcpmss_tg[46]) expect to receive a value of 0 in order to return XT_CONTINUE. Signed-off-by: Phil Oester Signed-off-by: Pablo Neira Ayuso Signed-off-by: Ben Hutchings --- net/netfilter/xt_TCPMSS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/netfilter/xt_TCPMSS.c +++ b/net/netfilter/xt_TCPMSS.c @@ -59,7 +59,7 @@ tcpmss_mangle_packet(struct sk_buff *skb /* This is a fragment, no TCP header is available */ if (par->fragoff != 0) - return XT_CONTINUE; + return 0; if (!skb_make_writable(skb, skb->len)) return -1;