Message ID | 202012200849.0BK8n8vF005199@vz7build.vvs.sw.ru |
---|---|
State | New |
Series | "Series without cover letter" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from imap.gmail.com [108.177.119.109] by patchwork.criu.org with IMAP (fetchmail-6.4.8) for <root@localhost> (single-drop); Sun, 20 Dec 2020 09:50:03 +0100 (CET) Received: by 2002:aa6:c11a:0:b029:a4:55c9:6120 with SMTP id c26csp3561693lkp; Sun, 20 Dec 2020 00:49:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS3x0HibSZKIi6HEAPMWZ40EJMtOpy/E2T3bJGF3M6hJIy217DgcAkxCAt4ONf4n6w7WhH X-Received: by 2002:a2e:8e94:: with SMTP id z20mr4899559ljk.450.1608454199638; Sun, 20 Dec 2020 00:49:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608454199; cv=none; d=google.com; s=arc-20160816; b=P9HfcautD2Ga3x4iDfB3+bEWG6lpdWbi0L4l8/Zpt9+SyK0dq61iuO1zzCT6oG0P7i 8ruRQaZreKK6VhyszX9eQZsMTDSall8lOv1p3TJjifsEGiOTeoafExDR6uTuulCRyHHK a15YZhZrmieBNFACczzPdOl9n+VvRhXTny/zWvrQGHmHb+7WGiykTizo5/ecDoT6U+MA s5iU5RXIZ2W35d03Zl6cYNL4nOmEouj2hm3RQ3AYuieH/edvbnPB+UF2ICvCldJrT6GP n2PB6urqtpvbsLE7xd35fJtx7TVrd5I+kRDolOZLIaO5JsI83exgtV6EbPRZSQvmdtO9 sFlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:cc:mime-version :in-reply-to:to:from:message-id:date; bh=+T6zeljxTxKEannkdcfvDQ+/L2p3FOC4hHX1Oh0k6Ew=; b=1AaOu/ph1Y8LZzD0nQzSk/G71JaoYS/oWISzRb17rjoWTMsbtkhPupkxPRVu5lt5sR BwunKQpR7PvGAyrkiTXgZQWMwSpZH++mw4EonW/Xf4zXpasqHUfeLoiHfRL+NFD+nBaS bHUFOBRK21Uu0OscM56mG47rsOav5xZBq2TfpI6p9KM2bGMgUoTBBkIPrer/T4vYxtmS UE5MhokIIxRGnORJeKSLG3YbjewWBFHRtyMEChiwuVq36mgECZkXQyeluGxLzpT3qLwG A3DASq7Gza8XrSwuLqi68cV+CBh4fSLjpDpEtJ1KfT6wjT8z4nd/JLfoo1c0qOC73oQ1 +90w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id c22si5777414lfr.191.2020.12.20.00.49.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Dec 2020 00:49:59 -0800 (PST) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0BK8ncLh017382; Sun, 20 Dec 2020 11:49:39 +0300 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02lp2056.outbound.protection.outlook.com [104.47.5.56]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0BK8naPj017379 for <devel@openvz.org>; Sun, 20 Dec 2020 11:49:37 +0300 Received: from AS8PR04CA0072.eurprd04.prod.outlook.com (2603:10a6:20b:313::17) by VI1PR0801MB1759.eurprd08.prod.outlook.com (2603:10a6:800:5b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Sun, 20 Dec 2020 08:49:35 +0000 Received: from HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:313:cafe::38) by AS8PR04CA0072.outlook.office365.com (2603:10a6:20b:313::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.29 via Frontend Transport; Sun, 20 Dec 2020 08:49:35 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay3.sw.ru; Received: from relay3.sw.ru (185.231.240.75) by HE1EUR01FT051.mail.protection.outlook.com (10.152.1.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25 via Frontend Transport; Sun, 20 Dec 2020 08:49:34 +0000 Received: from [172.16.53.199] (helo=vz7build.vvs.sw.ru) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from <vvs@virtuozzo.com>) id 1kquOl-00DrH5-Ag; Sun, 20 Dec 2020 11:49:03 +0300 Received: from vz7build.vvs.sw.ru (localhost [127.0.0.1]) by vz7build.vvs.sw.ru (8.14.7/8.14.7) with ESMTP id 0BK8n8PN005200; Sun, 20 Dec 2020 11:49:08 +0300 Received: (from vvs@localhost) by vz7build.vvs.sw.ru (8.14.7/8.14.7/Submit) id 0BK8n8vF005199; Sun, 20 Dec 2020 11:49:08 +0300 Date: Sun, 20 Dec 2020 11:49:08 +0300 Message-Id: <202012200849.0BK8n8vF005199@vz7build.vvs.sw.ru> X-Authentication-Warning: vz7build.vvs.sw.ru: vvs set sender to vvs@virtuozzo.com using -f From: Vasily Averin <vvs@virtuozzo.com> To: Vasily Averin <vvs@virtuozzo.com> In-Reply-to: <d76718d4-a0bf-1826-5aee-7c3701e9018f@virtuozzo.com> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: f0ece165-77d9-4d24-286e-08d8a4c42ca5 X-MS-TrafficTypeDiagnostic: VI1PR0801MB1759: X-Forefront-Antispam-Report: CIP:185.231.240.75; CTRY:RU; LANG:en; SCL:-1; SRV:; IPV:CAL; SFV:SKN; H:relay3.sw.ru; PTR:relay.sw.ru; CAT:NONE; SFS:; DIR:INB; X-MS-Oob-TLC-OOBClassifiers: OLM:421; X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?caGybQMIJgi5FelINhZplCMirvSgHJT2y5F/pqdco1EsXXmTM5hUop5f2CBu?= =?us-ascii?Q?tsXNf+cNyytUMlRSdPS9mcGUtH15IcRFcwNOFW/u8hsbsCWs/8wjKw3TZkn5?= =?us-ascii?Q?WrBObNxP2PR7U3Em9kv+CezIDEDtTaCb/iFab1770scP0sW3RdVJkF2RIZ3z?= =?us-ascii?Q?ZHflpfqQzMSWMMwBcbs5/ARAIklk31uehA4n/1Dtyr9FJoKic1W0syrY+ulB?= =?us-ascii?Q?hRLxFBMIhuNymq/jo7JR0lm9qb4HX6kSS1gf4bBd++qNJYU6AcOmT0mH0Y7Y?= =?us-ascii?Q?vRbJgDNY57hNid5dWy+dPd8CpaavysH1IrrcBLHVlJoYqpmBtafbBrYHbSAc?= =?us-ascii?Q?nbvgxvdxvrR59AeBMxTE5N89LcRyaJ4h8L9Xpz2ub5CmCPv+HFEGlOAAfR5D?= =?us-ascii?Q?1HkqQ7pLO9xALN+L0nZfhRWxleFgNZ2cSwM70ePEB0XONi2h8fWNQRXEsQU6?= =?us-ascii?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XNlhNmQ9jXDefeBG5Dv3aeUuyab8S?= =?us-ascii?Q?0wG7VRAReNIkGMbDqEMo1iu5vdyUjTCvInXAcoTu4TdgX+ZnCYook2bOQuT5?= =?us-ascii?Q?fsMMJQGJzB8vyhIkNisbeASe0BMb02YaREY0QROj5b17OwWHPwf2Fi27u/KT?= =?us-ascii?Q?xmeTIIAHUcCcbToTr15p210UAP5DY6G9s0JnU4slpVAPQIk14WShHW9RLLTb?= =?us-ascii?Q?OtJsH+NAf9PdlDbM6NxomjZYT6JCj3W9hNANK1sYfSoZMvOtVckjTe2+z193?= =?us-ascii?Q?gw=3D=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2020 08:49:34.2401 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0ece165-77d9-4d24-286e-08d8a4c42ca5 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay3.sw.ru] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1759 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-AuthSource: HE1EUR01FT051.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: VI1PR0801MB1759.eurprd08.prod.outlook.com Cc: OpenVZ devel <devel@openvz.org> Subject: [Devel] [PATCH RHEL7 COMMIT] ms/netfilter: nft_set_rbtree: check for inactive element after flag mismatch X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: multipart/mixed; boundary="===============2125206243==" Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/net/netfilter/nft_rbtree.c b/net/netfilter/nft_rbtree.c index f9cfcf7..ab95e57 100644 --- a/net/netfilter/nft_rbtree.c +++ b/net/netfilter/nft_rbtree.c @@ -194,10 +194,6 @@ static void *nft_rbtree_deactivate(const struct nft_set *set, else if (d > 0) parent = parent->rb_right; else { - if (!nft_set_elem_active(&rbe->ext, genmask)) { - parent = parent->rb_left; - continue; - } if (nft_rbtree_interval_end(rbe) && !nft_rbtree_interval_end(this)) { parent = parent->rb_left; @@ -206,6 +202,9 @@ static void *nft_rbtree_deactivate(const struct nft_set *set, nft_rbtree_interval_end(this)) { parent = parent->rb_right; continue; + } else if (!nft_set_elem_active(&rbe->ext, genmask)) { + parent = parent->rb_left; + continue; } nft_rbtree_deactivate_one(set, rbe); return rbe;