Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3478934pxb; Mon, 4 Apr 2022 18:16:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycwZH9rHnOrFjJ+ovaNEkrpovKPSKk3r6hwsXNDPuQXaz84D0xdbRYOOR6giOLyQX3uRos X-Received: by 2002:a63:de0c:0:b0:378:9365:c3c6 with SMTP id f12-20020a63de0c000000b003789365c3c6mr776335pgg.301.1649121405508; Mon, 04 Apr 2022 18:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649121405; cv=none; d=google.com; s=arc-20160816; b=mqC8K9cpERNRV+YEvQO8D8Z0Ad5RMFN8WDhqU4hETUGBVAALuv+x0BYzVaMF3vGXxp KfUtULz4io7CNSaF7OvR+IJdudGJ63ufJSD6BoUHLe2Fauq8gRmrZXci3cag49DCDw/+ 3f0NlZeN3QHslUmJG8ctXTn6uy/JuLC3fEuRrHgL+eAyXcHPuSVI8B21qU3RkZrWYol8 6nuXyIwuZBBeCbmO4QfDqyArqvCMD75J9uyBrWrRe0u6yxljUzwSoQ04Yv97xoT1XFwG 1v6nXZliAvxB8wDq/JVgIE0TfUG1Zcx8V0GIRlTvw7ALjy1KeHrCBLc+eHU+RdNbjjpL z9Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=rjLGczWizbWUdGnSt0vDUWu3PXooLXjZ1ROSEOwEXPw=; b=tdDr1FurjqhkQMuhX2s3cD47PXplhfzNotmQDrPOXSNihqub9ypKubpwF54uyvUZ4r bO+Fasu9Hmhc3FuhNvrPQuhjtJU7riVXUH1kq2lkkrYhX0fKU+dxw2d8MjqwMa/Am50b IaTmaKlQtQ2GFtyMh8SKqef91aatcspU+j2iC/vLZL/Ejujy9MOi2OFFx3W/tsl8ULOJ iRwjRPMrTp8OjtZa4E+rVE8VFVI9ZT4cngaYHLZwPl5Uk/Bpo0xfh77usIuY7ht18ENx IZZdy26Q255YDhfySZhWsUula/nBtHe5LKf6SQZkHl5lVJpgfnf8Y4H1XqEV0FBHAAD0 YFTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DNZ2DwfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w7-20020a17090aad4700b001c5d7e7e0d3si702312pjv.40.2022.04.04.18.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:16:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DNZ2DwfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19D471B48C2; Mon, 4 Apr 2022 17:19:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381143AbiDDVtT (ORCPT + 99 others); Mon, 4 Apr 2022 17:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379094AbiDDQfD (ORCPT ); Mon, 4 Apr 2022 12:35:03 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBCDF37ABA for ; Mon, 4 Apr 2022 09:33:06 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id q14so13592300ljc.12 for ; Mon, 04 Apr 2022 09:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to; bh=rjLGczWizbWUdGnSt0vDUWu3PXooLXjZ1ROSEOwEXPw=; b=DNZ2DwfWAf4BHizBXbAlRFMmpWXTQ2dudtm88Dc1mxCOpZPp4IPiKKcuATTK+vA1IR sJLz24EaEP/06uYuX/G5rx/17ig/SKqLLsWsyHS4IjPL+VRjFNLFGdMJVYYzrxZQpEzR Nznc0wmV91LXxMs1YjC6pxoV8IWA1FbbRNBIz12Y7jVwAHDlunrvFSLb01SjkTeb1PNw 9tjrAOCZCF8zE9YaL8H/5/Yd/9euGu6w1of16YDyjOApo4sL7sGMzFsOP1rFRpGBEIi7 8wWxgpMUbFgKEZ1oejWLcEn8OP2wulupUyAqgruzcMTysgJotHP1xvx6Bo8sQmUe7Kll z5eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to; bh=rjLGczWizbWUdGnSt0vDUWu3PXooLXjZ1ROSEOwEXPw=; b=zJthJbZ0Wleo8UCvh7e1dfeAPAzjc/ppDpWmxff56r1EUNfcIHRW2B42fe8mfustSu cTj2VVYTsbzXzhg3/EBd1lfXC5LvD8ZEfC5cBxx4pOBxFSqnSaoNC5SPQFPBHFWL9tFh mlSAahhRcKi7ORI/2iBRyln5bcaBYr5woM/eERuqu+Zwk6G9qpl/qNWJ9HxfMMzNhVzJ n2npcYNFVqnwuTRRqwvfcL5C2+BnC8BgJn9eXC9LwI4GprfRFO4Tztq4MKYwtmGpQj8O wk2RmZ0GxSGuTquzUCJJCQ6i/3+Z5O6t/4wTfgt447PrbrkmtZs/386KVcW3xSTP1b58 fn7w== X-Gm-Message-State: AOAM531yzp7vzzcHA8/HX0fEhTyD5WfKRyxXIeouh9EpsWC1KkRuYp5S IvIu6Y2yrownSclOctueYLQ= X-Received: by 2002:a2e:9886:0:b0:24a:c13b:5337 with SMTP id b6-20020a2e9886000000b0024ac13b5337mr238380ljj.409.1649089983374; Mon, 04 Apr 2022 09:33:03 -0700 (PDT) Received: from [192.168.1.11] ([46.235.67.247]) by smtp.gmail.com with ESMTPSA id e9-20020ac25ca9000000b0044aa5a3ee87sm1178514lfq.216.2022.04.04.09.33.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Apr 2022 09:33:02 -0700 (PDT) Message-ID: Date: Mon, 4 Apr 2022 19:33:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH V2] Fix unsafe memory access by memcmp Content-Language: en-US To: Charlie Sands , gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: From: Pavel Skripkin In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------0keD35HDBLORUGAFMhGHGDNw" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------0keD35HDBLORUGAFMhGHGDNw Content-Type: multipart/mixed; boundary="------------hiTqVXIq4pvg0wCRJw8hfCxM"; protected-headers="v1" From: Pavel Skripkin To: Charlie Sands , gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Message-ID: Subject: Re: [PATCH V2] Fix unsafe memory access by memcmp References: In-Reply-To: --------------hiTqVXIq4pvg0wCRJw8hfCxM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkgQ2hhcmxpZSwNCg0KT24gNC80LzIyIDA1OjUyLCBDaGFybGllIFNhbmRzIHdyb3RlOg0K PiBUaGlzIHBhdGNoIGZpeGVzIHNwYXJzZSB3YXJuaW5ncyBhYm91dCB0aGUgbWVtY21wIGZ1 bmN0aW9uIHVuc2FmZWx5DQo+IGFjY2Vzc2luZyB1c2Vyc3BhY2UgbWVtb3J5IHdpdGhvdXQg Zmlyc3QgY29weWluZyBpdCB0byBrZXJuZWwgc3BhY2UuDQo+IA0KPiBTaWduZWQtb2ZmLWJ5 OiBDaGFybGllIFNhbmRzIDxzYW5kc2NoQG5vcnRodmlsbGVzY2hvb2xzLm5ldD4NCj4gLS0t DQo+IA0KPiBWMjogRml4ZWQgY2hlY2twYXRjaC5wbCB3YXJuaW5nIGFuZCBjaGFuZ2VkIHZh cmlhYmxlIG5hbWUgYXMgc3VnZ2VzdGVkDQo+IGJ5IEdyZWcgSy4gSC4gYW5kIGltcHJvdmVk IGVycm9yIGNoZWNraW5nIG9uIHRoZSAiY29weV9mcm9tX3VzZXIiIGZ1bmN0aW9uIGFzDQo+ IHN1Z2dlc3RlZCBieSBQYXZlbCBTa3JpcGtpbi4NCj4gDQoNCllvdSBkaWQgbm90IG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LCB3cnF1LT5kYXRhLnBv aW50ZXIsIDkpICE9IDApDQo+ICsJCXJldHVybiAwOw0KPiArDQoNCkkndmUgc3VnZ2VzdGVk IHRvIHJldHVybiAtRUZBVUxUIGhlcmUNCg0KDQoNCg0KV2l0aCByZWdhcmRzLA0KUGF2ZWwg U2tyaXBraW4NCg== --------------hiTqVXIq4pvg0wCRJw8hfCxM-- --------------0keD35HDBLORUGAFMhGHGDNw Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEER3XL3TplLQE8Qi40bk1w61LbBA0FAmJLHb0FAwAAAAAACgkQbk1w61LbBA3z pQ//Wde8u9034ulRbYOwjNRUgTJcxoSK95ldwvPteBws9c6XsRzvo6DIFMyWalcMphgdfPiC7xHT yeamsXXp13pe6i9gnF7r49OBzgoIeM4KH5bBX/fgNHC/nJHr06qpTsjoyTWP2gcM7D+3UNY72bNi MFBdxGE9qNqO/wsduSYeDEk9835xsFDx/2W818+m6moper/jnxUTuOGIpaomBU0cX1g7ZWs/2hG0 TT1CbZ5Sh+VQDhvcewC1rka7zG4jgmNwksVHv9NYfqqsR/HDygAUggjbeMwvJPVgUgyoqMisp3Zn AaNYnxZvmKJ/9iPfbVXX2ZHDFnahIyDpISB8YmGf7LC01wrR7Ls0Gvjw0s3hi4NacOkDUvwr/VMq OqDO1JBWEzWHbbYnOhqRFgu45AfjiiiGdpHd/gpxYrQWkpEnCaJYpKlhsm9/N/d+PgO/kGA1wibK 4YDlVoO1PZYN+vuuzmdX9dftpXBo6KS3di5qU2152Xk5RmYMe090BPXtAkR1O/d/N8anhaK9zUBk v6qyEhFJpiivNl7Bh1Sddq3oTrTAg+wIl66RL6dPBd1Ju26ZUp6jYDBTY9nFYA/LPmIqoEC3JnaR eJQIFlp0/qiMz7n6u/sqYv7MTT7N14jYZPDfhsJN8cL8yi0cxj3AW/SxKCMGPD30Fgq3iU/AZsM5 tME= =381l -----END PGP SIGNATURE----- --------------0keD35HDBLORUGAFMhGHGDNw--