Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp669790ybg; Mon, 1 Jun 2020 11:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK1oM94E2MU7aEOBaEC+s4X7joV3pLq73b05Fq2XJA715LJNI43t19eyDfwY/S/w3eji1H X-Received: by 2002:a17:907:b11:: with SMTP id h17mr21053429ejl.497.1591035275496; Mon, 01 Jun 2020 11:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591035275; cv=none; d=google.com; s=arc-20160816; b=ZODeyTRhFNcxb2BI5j4hay1pLAYSK1qNJbQabjr/Icq9UB1B/VrnLlD2ZApQkZr5aR vv2O7fevOQ4lkNrhUA5birtFnrFDa9Qhhvxquvqhwjv5JN9iqrgvHfw781c0AzDwJyqm U9EjE2alsVdX37NgFn8BEtg0MbAqeIc2I+qdsfnzPYNmKv97vqjzOwP7+IVKrNT3cPf3 l7I8pBaHJesZYtXyTIawGPUKfxL/sNG+xw+x13OvrA6Colr6XyDiqzVqEc0a8EbAyW4a eAYZePWSyu2SgVhkwimpWKEmNrFK5lwwiz0+OFoLctFqF8kqG2cvR7AM9uHJ6lQlm3gt qGsg== 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=3LJ+I/PJ8uIPl2QkoJy0qeWELOLoRL3cDIkLPRIASyA=; b=ki/4lmoZ/v0dgPjxMWISBKG8L9DCq5X2AdimwtdWxccpwbwcDlMNyoKSnaJuDIu4CZ fYf+0DqUZGnI5RzLaYz8USzovvoo5pUGr7j27L8jFu+WsW62b6rSYMuHjPzSIqLu+Dfl TcmCBJOc63OBof+/w21f5nkL5395uL2ef9KEieFUlIFQ2NbpWfLToST9OszoEESAp4R+ tQCXRPzxRuUAZmx2/BUWzYknVD67mTRHaAQfIDyOQKU21ccqyKk63wjWraSgUThXfLIb OGf4CtD4bzd65HdqqtkvoXTJxPOxJc48m7dxs3W/cJE5HZPC6lc1JhVmGwagFs/euwWS SYcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQX60g8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si75143eds.250.2020.06.01.11.14.12; Mon, 01 Jun 2020 11:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQX60g8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731070AbgFASL0 (ORCPT + 99 others); Mon, 1 Jun 2020 14:11:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:58348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731083AbgFASLO (ORCPT ); Mon, 1 Jun 2020 14:11:14 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 2A4192065C; Mon, 1 Jun 2020 18:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035073; bh=E7aDakkuZGWWh4pMJFm3LJZ8+eRDuhH2vX43lxxfKk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZQX60g8GEgdYpNzt+p4hKY0hYGBBsc5DA3FTOqUHwKbIxQiprRmTDPp8MZfan6TC1 kiLqRovoDTJjvs8SFXl+7TZvlAWutzDU9ol2PWTFJ3H4xIWYv18nmCFR+F8E/LFkT4 12oQ7NWJl07cvnskb26hi6e2uU9pQG0JRJrb9yf4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Pablo Neira Ayuso Subject: [PATCH 5.4 139/142] netfilter: conntrack: comparison of unsigned in cthelper confirmation Date: Mon, 1 Jun 2020 19:54:57 +0200 Message-Id: <20200601174052.099624774@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Pablo Neira Ayuso commit 94945ad2b330207cded0fd8d4abebde43a776dfb upstream. net/netfilter/nf_conntrack_core.c: In function nf_confirm_cthelper: net/netfilter/nf_conntrack_core.c:2117:15: warning: comparison of unsigned expression in < 0 is always false [-Wtype-limits] 2117 | if (protoff < 0 || (frag_off & htons(~0x7)) != 0) | ^ ipv6_skip_exthdr() returns a signed integer. Reported-by: Colin Ian King Fixes: 703acd70f249 ("netfilter: nfnetlink_cthelper: unbreak userspace helper support") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nf_conntrack_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -1955,7 +1955,7 @@ static int nf_confirm_cthelper(struct sk { const struct nf_conntrack_helper *helper; const struct nf_conn_help *help; - unsigned int protoff; + int protoff; help = nfct_help(ct); if (!help)