Received: by 10.223.176.5 with SMTP id f5csp951578wra; Sat, 3 Feb 2018 14:17:27 -0800 (PST) X-Google-Smtp-Source: AH8x225T0QRem/NdO41AyZYARLzbVhRmS0X7Rw/y6up29EyEnQkV+LowniW/OQk7q5b1BVyAt/Rw X-Received: by 10.101.66.12 with SMTP id c12mr35545435pgq.213.1517696247021; Sat, 03 Feb 2018 14:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517696246; cv=none; d=google.com; s=arc-20160816; b=g/Rjjp1X4bC5ciNHrZfF9s2O5uvz9YoFV3U+WD00I2q+9NXeNhlBx8qhAOmaRupAQ5 qNwSx8ZcMc2nd+esrz4tzEWynDRmXz6kxongSHZGt87QzG6yH8lzCD5uV1JM+5y154hE ibndXtckiyothoGxQdIaw89Qr44PkcAAJIrZUvbMHOyaXVNh0Ayd9Qqlc+YFPJCbQHHB dGRoLON3N0XWWZAImfQVsVK/1SJbm2AbKXmVFevnoGOBQhwMOzlbdXq9sZimNKeB4UUt 1xq6E4iwEe8yphjUW8s48pB0VQG3CN4ycZfA/u1k9EAyMzVbIfZaoTzJUwV1uuE9RYuj yJxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Z+IqcgnguPNRyrSDOsOjumVYlYFgw+z2oyyzV9rnQc4=; b=yLch8PK8+evTi/KW9+xCs5meZC6MxKs48OYbKaVurddAlzVZC1rdW3QT9jhZ7imIi2 uYdQPpMa0seVUFXw6Q7Ibv2dpdS/Okl5jGyIa5+W+4TnDNQF6MJm7yAJLjZReNwu6Jk3 V1RXCRlBDCbdPaox6/q+QXBN3f70ciV04exx1PS2xaQmVCYBtqFcoU0IbH1tWLOXASkE NGu9luozhmQ/Vj1qj8ZEkb9vYlr60L6EkFJTGHX6DCTd3FWuLIGp2HAxMqJPRehiD7/R UM+AUI3JZFvtA0OcBFGIErnxgXlta5TfE/gceks8ziX1lXHXOR3PUAqPMx6Tz7So8Y1P +u4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LQ6CVnqz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si3802704pli.790.2018.02.03.14.17.12; Sat, 03 Feb 2018 14:17:26 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LQ6CVnqz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380AbeBCSqj (ORCPT + 99 others); Sat, 3 Feb 2018 13:46:39 -0500 Received: from mail-dm3nam03on0129.outbound.protection.outlook.com ([104.47.41.129]:34880 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753116AbeBCSCc (ORCPT ); Sat, 3 Feb 2018 13:02:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Z+IqcgnguPNRyrSDOsOjumVYlYFgw+z2oyyzV9rnQc4=; b=LQ6CVnqzvRPdHJG48/DZi3IwgcVE63MAYTCAtxYtm52bw85p8d3Tm9q4pMp866W4Bmx0N+XcsN15bK0gp0r/1SsyZ+of4QEpip6J3+jM3i83QZrOFzKcalRRfIdoHSpb3rl/K4MIZUJiWhpGOVT2WO6q0Kb5cMP3Fgh4TbaShZI= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1092.namprd21.prod.outlook.com (52.132.24.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.4; Sat, 3 Feb 2018 18:01:25 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:01:25 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Florian Westphal , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 048/110] netfilter: uapi: correct UNTRACKED conntrack state bit number Thread-Topic: [PATCH AUTOSEL for 4.14 048/110] netfilter: uapi: correct UNTRACKED conntrack state bit number Thread-Index: AQHTnRjtIuCuAwqLF06v19bWLaaV1g== Date: Sat, 3 Feb 2018 18:00:51 +0000 Message-ID: <20180203180015.29073-48-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1092;7:85JuMC7O8+CM91aCz7f3uSi4642AyBZ3N8n0japc6k7vkd62gB1Z9S91qgImByw+B9yMN3UO23HVt3Gp0QxZ+ZPZwHQCMRG4bo4fqpvjE/YaVpd6RVwHhelMMpuUztfzXD6k/Cya64OgC0MzosBSWhYy28o19uepdsr+1eTE4POlFCN08WN9DLqHWvhH+sWnOXXIWMz86qO4hPaVcv8h2rY1bsi8cL2qPO9R++NJ3XSrZEfyFHnUck1vDA3CfA/Z x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c7ee5f49-cdf8-4d96-926a-08d56b30248f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1092; x-ms-traffictypediagnostic: BL0PR2101MB1092: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(788757137089); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL0PR2101MB1092;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1092; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(189003)(199004)(3280700002)(14454004)(3660700001)(105586002)(3846002)(6666003)(22452003)(6116002)(99286004)(305945005)(7736002)(2950100002)(66066001)(478600001)(54906003)(110136005)(68736007)(316002)(86362001)(106356001)(186003)(26005)(59450400001)(6506007)(76176011)(6346003)(10090500001)(575784001)(102836004)(6436002)(4326008)(8936002)(2501003)(53936002)(86612001)(2900100001)(6486002)(2906002)(6512007)(25786009)(97736004)(72206003)(1076002)(107886003)(36756003)(5660300001)(5250100002)(8676002)(81156014)(81166006)(10290500003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1092;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: op6Y86Wf+h9qgL6YfISNu9b16LiD4WhbcmWE0DbDpAv2wfVVrGqgHIu0hcWrWL24fRJ6zWc28IdUEs2RzarNcw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c7ee5f49-cdf8-4d96-926a-08d56b30248f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:51.5190 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Westphal [ Upstream commit 4c82fd0abb87e20d0d68ef5237e74732352806c8 ] nft_ct exposes this bit to userspace. This used to be #define NF_CT_STATE_UNTRACKED_BIT (1 << (IP_CT_NUMBER + 1)) (IP_CT_NUMBER is 5, so this was 0x40) .. but this got changed to 8 (0x100) when the untracked object got removed. Replace this with a literal 6 to prevent further incompatible changes in case IP_CT_NUMBER ever increases. Fixes: cc41c84b7e7f2 ("netfilter: kill the fake untracked conntrack objects= ") Reported-by: Li Shuang Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- include/uapi/linux/netfilter/nf_conntrack_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/netfilter/nf_conntrack_common.h b/include/u= api/linux/netfilter/nf_conntrack_common.h index 3fea7709a441..57ccfb32e87f 100644 --- a/include/uapi/linux/netfilter/nf_conntrack_common.h +++ b/include/uapi/linux/netfilter/nf_conntrack_common.h @@ -36,7 +36,7 @@ enum ip_conntrack_info { =20 #define NF_CT_STATE_INVALID_BIT (1 << 0) #define NF_CT_STATE_BIT(ctinfo) (1 << ((ctinfo) % IP_CT_IS_REPLY + 1)) -#define NF_CT_STATE_UNTRACKED_BIT (1 << (IP_CT_UNTRACKED + 1)) +#define NF_CT_STATE_UNTRACKED_BIT (1 << 6) =20 /* Bitset representing status of connection. */ enum ip_conntrack_status { --=20 2.11.0