Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5454050imm; Tue, 16 Oct 2018 10:27:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Mn+qR9SpQV3X4NwEYo4QlDrPxc3HJXfHuvc1nORC5Tobku59kUujMXGt4WYwMt/9Nmy5Z X-Received: by 2002:a17:902:7b94:: with SMTP id w20-v6mr22347229pll.56.1539710853741; Tue, 16 Oct 2018 10:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710853; cv=none; d=google.com; s=arc-20160816; b=qEKY6LqMaob5kY/2f2REa3Pk7CLWxI00M0wiQqI6ggtVp6rCemhQY2WKG6nx0NKS1C GHaL4lZPOYujhMdoXmSD9zwu/QdbMCUYmOiBneeChEnlT0nUb+V8Iuy/1ylYg/ZtvE0N ZTHRqjS94L0ztwt1fPlsjhv20psoWobgG2pTH9cdfEfaVfGl6BoVmMpTe6+lQa9JSDIK cPPaJPMqjPqPwb4A4355wJtcYD2hjEdG7Uct3vnJHYi304T7m27NcxrVuW6lFTN7YOU6 tELfC0VBT4c8ls3sjkaPRInq9vcc+C80RJsEm4o0wrP1bc2X2UrNSEFbQwQmddCJRMZK 4xnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m0mcT8DLvIkNoGAokQqtvx5oj8R4UbZWbCpij8Cbj/I=; b=LhN1hiHK1xTHub3HFhHKB+7q2WNTaSPYiKKS77qWxRnPDmxs8r8ZsFU6ChvAS06xeN dGsyztijzyvDAPHO33EqfTWdMHZL8ZRhu19LGbVwxcw4J04yeXGy9liSD6DAX11yWzLH www7I5t6CUCAy9cfhlffVaNAQKz5w25lZANrb7ClbxEODLHNSijRm8LpCS/9T4n1eXHH 8PgIqagRi2rRtWG0bbXAWQuVLiLj3g7elB8curk4YxEs4l8Bh2my7bdy6zU8AEleb1+J nUJXhsFtUuDpTO5eDTn85sV1o11jdeLl2yAR8nrNU3EQjnqCLtB+rCU0JuLN7YUC06cC Fd6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v5Q4YQGo; 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 q19-v6si14823218pll.286.2018.10.16.10.27.18; Tue, 16 Oct 2018 10:27:33 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=v5Q4YQGo; 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 S1732069AbeJQBRG (ORCPT + 99 others); Tue, 16 Oct 2018 21:17:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:35846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBRG (ORCPT ); Tue, 16 Oct 2018 21:17:06 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D797204EC; Tue, 16 Oct 2018 17:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710739; bh=Vaz+9jtxsEItW+zQ0fqA3YgjkqyJ7POSScH+ivnlNgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v5Q4YQGocPdh+/ADL3djDByBFYyve/Xsf7TSqqB3Vz0pYtBpNn+N/eNyD7GFVzwJ7 0gAoHT6hI9EL+lXzuJWTxBwI6ow298nZeckukX6tJmZuxUo5WNKak6cD8XMLi6eeAf XkMu5e033eY4v9SRmLtG2j3BkJABpXwvlCpBbubE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , "David S. Miller" Subject: [PATCH 4.9 71/71] ipv4: frags: precedence bug in ip_expire() Date: Tue, 16 Oct 2018 19:10:08 +0200 Message-Id: <20181016170542.957039013@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter (commit 70837ffe3085c9a91488b52ca13ac84424da1042 upstream) We accidentally removed the parentheses here, but they are required because '!' has higher precedence than '&'. Fixes: fa0f527358bd ("ip: use rb trees for IP frag queue.") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ip_fragment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c @@ -203,7 +203,7 @@ static void ip_expire(unsigned long arg) __IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS); __IP_INC_STATS(net, IPSTATS_MIB_REASMTIMEOUT); - if (!qp->q.flags & INET_FRAG_FIRST_IN) + if (!(qp->q.flags & INET_FRAG_FIRST_IN)) goto out; /* sk_buff::dev and sk_buff::rbnode are unionized. So we