Received: by 10.213.65.68 with SMTP id h4csp718536imn; Fri, 6 Apr 2018 07:48:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/1dfS7D9jk2x/gWcF+NKhP4phbvnMhfqpcxgbQBM1X2QEf8WPY24ThntsT9isQ8AeOebaX X-Received: by 2002:a17:902:744a:: with SMTP id e10-v6mr27572128plt.151.1523026085315; Fri, 06 Apr 2018 07:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026085; cv=none; d=google.com; s=arc-20160816; b=Yu5SbO2UPPWgxx9s3eiSldiCCcoJpX3Gol8ydreJ/CbBrfqARn5b4QY8Sy6b8YnE6u zgiBSj/3ZkFbxnfm0g7Rnz7KQhPsElVmQ6G6OVmILx1QOuTyNUL2ebWLiEeVm/DoUcah aoyTioqYjgLVWJUWNMm42WsR6EW1Qd5RhHxa0z4jdskutvSsDKbEOQqYoJcVGk7CDBk8 y1lWYdCzKHmRYBsjy3kdAL+hxzOLLXetv0rEp1wfMg/b7pRR/4V1MZM9JAsX88H5EZji wTD5qD7SU8XANUd3pm7LjPOf83LYLcXiJpFCfWULh/jC6guGU4xix3eRxbXRJDXH7AsU eKTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=r5j04Q/EBllHx4ys5TaUJ2Dgxzx68q5uQ6lyPnIcFhA=; b=BRI2O0vHc6iktOkbHgOneNSuwDXu4/v178L7D7Yg99p5SpOcM8XEMNF9ZYEKrSLfcl f+DdRQVrJ5TORynEHpG04owUzp3M1yJ9p/6um4AwBPeaEldFSrltdZZxc8Y5Xw+Cuaqb 1iHIQHEZcEibmK64PJxZ7Alq0mC1O7iThisCPQ6tPClhhelq5DeI+pjzPc6tfB+lYxz9 ha/fRQFwRbp+sr0QqkpVNm0G8blKmHT9qoz61ZZMa1S78z0xnWKcJ89Q20qx+jDKunOc HzSC/D90GEwNvaUsYlyvno5oFGSFtNob3AHoiBOK4w37XSZZ7JHwu2lxsONaQpQSbdGi ha5g== 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 o32-v6si10928889pld.320.2018.04.06.07.47.51; Fri, 06 Apr 2018 07:48:05 -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; 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 S1755666AbeDFNdj (ORCPT + 99 others); Fri, 6 Apr 2018 09:33:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57968 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753176AbeDFNdg (ORCPT ); Fri, 6 Apr 2018 09:33:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F1BB4CD0; Fri, 6 Apr 2018 13:33:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Pablo Neira Ayuso , Nathan Chancellor Subject: [PATCH 4.9 028/102] netfilter: ctnetlink: Make some parameters integer to avoid enum mismatch Date: Fri, 6 Apr 2018 15:23:09 +0200 Message-Id: <20180406084335.617782490@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Matthias Kaehlcke commit a2b7cbdd2559aff06cebc28a7150f81c307a90d3 upstream. Not all parameters passed to ctnetlink_parse_tuple() and ctnetlink_exp_dump_tuple() match the enum type in the signatures of these functions. Since this is intended change the argument type of to be an unsigned integer value. Signed-off-by: Matthias Kaehlcke Signed-off-by: Pablo Neira Ayuso Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nf_conntrack_netlink.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c @@ -1008,9 +1008,8 @@ static const struct nla_policy tuple_nla static int ctnetlink_parse_tuple(const struct nlattr * const cda[], - struct nf_conntrack_tuple *tuple, - enum ctattr_type type, u_int8_t l3num, - struct nf_conntrack_zone *zone) + struct nf_conntrack_tuple *tuple, u32 type, + u_int8_t l3num, struct nf_conntrack_zone *zone) { struct nlattr *tb[CTA_TUPLE_MAX+1]; int err; @@ -2409,7 +2408,7 @@ static struct nfnl_ct_hook ctnetlink_glu static int ctnetlink_exp_dump_tuple(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, - enum ctattr_expect type) + u32 type) { struct nlattr *nest_parms;