Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9262137rwl; Wed, 11 Jan 2023 03:39:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXvwn/7vFbRnOk5LVmQLue79M0VKTkI+OJV1yEYZUYNg1PGd1p018UZWhzvyziWJjL0MQm2f X-Received: by 2002:a05:6402:f1b:b0:499:1ed2:6455 with SMTP id i27-20020a0564020f1b00b004991ed26455mr12034922eda.17.1673437184860; Wed, 11 Jan 2023 03:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673437184; cv=none; d=google.com; s=arc-20160816; b=0RXmJs+m+EiBPDal5UevQ6b1LeTZjga2pyj1lsFSpKNaP6Z9sK6kB2QUFJOnWb/X/y YqoTQy/ekwbQU4l9kfkD1ovEGj77adk4pcGxCXMkVqRZPPJnfsWI+Q/9MjgNZD28QKKs IU6jXgYDf7B0d9O4OpJ+Ce9sayRE03jHzSIOJnFIsYHKXo+t6YE2uwfWxU+2c+D3c51r GHNeosei/o8ACoGeyAAaTAsDDO+JP+N+qt6eMpFTL8bPz/cC/qUZmaubd5jsqnhfKlrH s/0O8Rar05VddrXdmKAs4fHWRbROIUvA0ghWEWSkOwOAPa5jImdJp2CMzhtoRaI5XuX4 9L4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-filter; bh=u6clYul3DTm2mKDh7DV/6GRx4J3QK/GQ9pTJSDwpvKQ=; b=ZTEZTYBrZr9wFfSiBwl/yZuH8Wut4DJtbrNrAwsD2j3xvjPLZNB2VGUI2iQTP07BTD dGRrLKtWOT5sg2EnXfxWjNC5vFY/ECUpok1TsmoKT3FG+C0ZrQoU+OT+IZbGH70bTE6a 2NB3gceToMVZNTpPRndRp4wv5WNH82B4BiVmu4RRSgLI7xwonF2EkjOGjOjPc+v11dTR g/mbaPmHQp/YgdM6b0KnMOXneR3YqOgxeSP+POgdhdEC7AeWSb1ig20tYXqrYU4Sd8N/ dO2cy6lgkcGoifv3ZOVu34y/52H5UkD9dagDKcxWIJRqs6gxXMwnODrQwq5+LP3IJ3/c rApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b=VIHfj9wt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402271200b0048ec0e2d277si17634619edd.618.2023.01.11.03.39.31; Wed, 11 Jan 2023 03:39:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infotecs.ru header.s=mx header.b=VIHfj9wt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=infotecs.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232728AbjAKLTj (ORCPT + 53 others); Wed, 11 Jan 2023 06:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbjAKLTX (ORCPT ); Wed, 11 Jan 2023 06:19:23 -0500 Received: from mx0.infotecs.ru (mx0.infotecs.ru [91.244.183.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A53101E3; Wed, 11 Jan 2023 03:18:56 -0800 (PST) Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id 10AA0132EAE9; Wed, 11 Jan 2023 14:18:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru 10AA0132EAE9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1673435933; bh=u6clYul3DTm2mKDh7DV/6GRx4J3QK/GQ9pTJSDwpvKQ=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=VIHfj9wtovGmkcG/6n9+8rsq/UFkP4ei/wH0q298b6lmRPhBLFhk9hqg2Nrt1rE78 vkOPn9GaVpdBX8TT/Z/7/j386WnrvpgX4kz3J48bj5ntJbTjUsD5rFUCxwGxG359od nv0XwiLMn6RosDyfuVKI1rbYh226eMlfMzTPrRPQ= Received: from msk-exch-01.infotecs-nt (msk-exch-01.infotecs-nt [10.0.7.191]) by mx0.infotecs-nt (Postfix) with ESMTP id 0D3403100ABA; Wed, 11 Jan 2023 14:18:53 +0300 (MSK) Received: from msk-exch-01.infotecs-nt (10.0.7.191) by msk-exch-01.infotecs-nt (10.0.7.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.12; Wed, 11 Jan 2023 14:18:52 +0300 Received: from msk-exch-01.infotecs-nt ([fe80::89df:c35f:46be:fd07]) by msk-exch-01.infotecs-nt ([fe80::89df:c35f:46be:fd07%14]) with mapi id 15.02.1118.012; Wed, 11 Jan 2023 14:18:52 +0300 From: Gavrilov Ilia To: Simon Horman CC: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "netfilter-devel@vger.kernel.org" , "coreteam@netfilter.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lvc-project@linuxtesting.org" Subject: Re: [PATCH] netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function. Thread-Topic: [PATCH] netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function. Thread-Index: AQHZJa588H6nj6krsk+2NVbkFBIg8A== Date: Wed, 11 Jan 2023 11:18:52 +0000 Message-ID: <5bad74e6-46fb-ebd0-4662-bc66e0f5ab5d@infotecs.ru> References: <20230109115432.3001636-1-Ilia.Gavrilov@infotecs.ru> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.17.0.10] x-exclaimer-md-config: 208ac3cd-1ed4-4982-a353-bdefac89ac0a Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 174635 [Jan 11 2023] X-KLMS-AntiSpam-Version: 5.9.59.0 X-KLMS-AntiSpam-Envelope-From: Ilia.Gavrilov@infotecs.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-KLMS-AntiSpam-Info: LuaCore: 502 502 69dee8ef46717dd3cb3eeb129cb7cc8dab9e30f6, {Tracking_msgid_8}, {Tracking_from_domain_doesnt_match_to}, infotecs.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2023/01/11 06:26:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2023/01/11 02:11:00 #20757923 X-KLMS-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMS8xMS8yMyAxMzoxOSwgU2ltb24gSG9ybWFuIHdyb3RlOg0KPiBIaSBHYXZyaWxvdiwNCj4g DQo+IE9uIE1vbiwgSmFuIDA5LCAyMDIzIGF0IDExOjU0OjAyQU0gKzAwMDAsIEdhdnJpbG92IEls aWEgd3JvdGU6DQo+PiBXaGVuIGZpcnN0X2lwIGlzIDAsIGxhc3RfaXAgaXMgMHhGRkZGRkZGLCBh bmQgbmV0bWFzayBpcyAzMSwgdGhlIHZhbHVlIG9mDQo+PiBhbiBhcml0aG1ldGljIGV4cHJlc3Np b24gMiA8PCAobmV0bWFzayAtIG1hc2tfYml0cyAtIDEpIGlzIHN1YmplY3QNCj4+IHRvIG92ZXJm bG93IGR1ZSB0byBhIGZhaWx1cmUgY2FzdGluZyBvcGVyYW5kcyB0byBhIGxhcmdlciBkYXRhIHR5 cGUNCj4+IGJlZm9yZSBwZXJmb3JtaW5nIHRoZSBhcml0aG1ldGljLg0KPj4NCj4+IE5vdGUgdGhh dCBpdCdzIGhhcm1sZXNzIHNpbmNlIHRoZSB2YWx1ZSB3aWxsIGJlIGNoZWNrZWQgYXQgdGhlIG5l eHQgc3RlcC4NCj4gDQo+IERvIHlvdSBtZWFuIDB4RkZGRkZGRkYgKDggcmF0aGVyIHRoYW4gOCAn RidzKSA/DQo+IElmIHNvLCBJIGFncmVlIHdpdGggdGhpcyBwYXRjaC4NCj4gDQoNClllcywgaXQn cyBteSB0eXBvLiBJIG1lYW50IDB4RkZGRkZGRkYuDQoNCj4+IEZvdW5kIGJ5IEluZm9UZUNTIG9u IGJlaGFsZiBvZiBMaW51eCBWZXJpZmljYXRpb24gQ2VudGVyDQo+PiAobGludXh0ZXN0aW5nLm9y Zykgd2l0aCBTVkFDRS4NCj4+DQo+PiBGaXhlczogYjlmZWQ3NDgxODVhICgibmV0Zmlsd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