Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp345016pxb; Thu, 2 Sep 2021 05:40:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw+9plvKdrJ6Y9GMtvJeCsA/L1skJ84KyLB7Xo8MYJzS+MGsI/9C8RNqxlqy6byd4Zi7pG X-Received: by 2002:a17:906:1191:: with SMTP id n17mr3618298eja.244.1630586428101; Thu, 02 Sep 2021 05:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630586428; cv=none; d=google.com; s=arc-20160816; b=Yb0WfyiIVvkRV+ylBRfebXf2kRvY8732wvnQ/3ws7pTxxISpUzHcAR2XHh/qbs2wjv Cewf8ovVFQJvSrpVwxO0yMCNfHakS/lkPxIASjuyS0CpTSpAh3MnJ+5UrwG7aHt7yeLo 65CPmV3JZVJJfp/v+kKnhMTzrXhsK4wL6fQKCtfo8JHJETp6fr26C4EohwGU11jW2uHp EMS1MnhI2GkToaO3rL35zFbtIA6hzTi6mcTQy91oX8J0wvGE5AR19U1qwW47yNSqB0Iz JBb/a+Saqz3mFKNdE/LEyi9ZZZn4re/EhhLgBYHcWMCPFRU+AnA7GRTrA6wh96tztRaC Pk3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:to:from:date; bh=56H0oJJaLKEsc/ZN8Rn6jF+j4mdhBK3KhiYVXeKi63E=; b=mb8+SOrKHZf7cfB7I14jNLwHXVlZq7rNgxR1ZCjZ7X4TrS3ByyIXE+hxe7nvUprmTS P+2lIudNBR6ouhlORQ6EuTWG8bVz747STRKe+hARyTFyBn9gUC7u6aJ2+g1nUcQsqFJ1 Aia12mEmlH+QU3jjZBooQaHgfHGLVzyIeS4SRcveikpkzAozSBHNOFKhbZ1vuyJ7MsoF Dv3PPFvY1Phesr3ia6cyhG7KLnsOn+seLXsMSlfEs8wtvbuJzH32WGQVA+9hI9cByGNH JyWZAfwO+V0SzwgdAEIDKw+wUv45EWARgKWtxKhXmr9YFUxdVlW/e2mufiKCHr46ee7i 1BJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si2149974ejb.17.2021.09.02.05.38.34; Thu, 02 Sep 2021 05:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344508AbhIBMer (ORCPT + 99 others); Thu, 2 Sep 2021 08:34:47 -0400 Received: from mail.zju.edu.cn ([61.164.42.155]:50870 "EHLO zju.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1344521AbhIBMer (ORCPT ); Thu, 2 Sep 2021 08:34:47 -0400 Received: by ajax-webmail-mail-app2 (Coremail) ; Thu, 2 Sep 2021 20:33:43 +0800 (GMT+08:00) X-Originating-IP: [10.192.42.255] Date: Thu, 2 Sep 2021 20:33:43 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: LinMa To: penguin-kernel@i-love.sakura.ne.jp, linux-bluetooth@vger.kernel.org Subject: Help needed in patching CVE-2021-3640 X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2021 www.mailtech.cn zju.edu.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <15f5a46.b79d9.17ba6802ccd.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: by_KCgC3aBWnxDBh_iIuBQ--.24726W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwQQElNG3D5NRwABs5 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGVsbG8gdGhlcmUsCgpUaGVyZSBpcyBvbmUgYnVnIChDVkUtMjAyMS0zNjQwOiBodHRwczovL3d3 dy5vcGVud2FsbC5jb20vbGlzdHMvb3NzLXNlY3VyaXR5LzIwMjEvMDcvMjIvMSkgdGhhdCBpcyBz aW1pbGFyIHRvIHRoZSByZWNlbnRseSBmaXhlZCBDVkUtMjAyMS0zNTczLgoKVGhlIGtleSBwb2lu dCBoZXJlIGlzIHRoYXQgdGhlIHNjb19jb25uX2RlbCgpIGZ1bmN0aW9uIGNhbiBiZSBjYWxsZWQg d2hlbiBzeXNjYWxscyBsaWtlIHNjb19zZW5kbXNnKCkgaXMgdW5kZXJnb2luZy4KSSB0aGluayB0 aGUgZWFzaWVzdCBmaXggaXMgdG8gaGFuZyB0aGUgc2NvX2Nvbm5fZGVsKCkgdXNpbmcgbG9ja19z b2NrKCkgbGlrZSBiZWxvdy4KCmRpZmYgLS1naXQgYS9uZXQvYmx1ZXRvb3RoL3Njby5jIGIvbmV0 L2JsdWV0b290aC9zY28uYwppbmRleCBkOWE0ZTg4ZGFjYmIuLjNkYTFhZDQ0MTQ2MyAxMDA2NDQK LS0tIGEvbmV0L2JsdWV0b290aC9zY28uYworKysgYi9uZXQvYmx1ZXRvb3RoL3Njby5jCkBAIC0x NzMsMTAgKzE3MywxMCBAQCBzdGF0aWMgdm9pZCBzY29fY29ubl9kZWwoc3RydWN0IGhjaV9jb25u ICpoY29uLCBpbnQgZXJyKQoKICAgICAgICBpZiAoc2spIHsKICAgICAgICAgICAgICAgIHNvY2tf aG9sZChzayk7Ci0gICAgICAgICAgICAgICBiaF9sb2NrX3NvY2soc2spOworICAgICAgICAgICAg ICAgbG9ja19zb2NrKHNrKTsKICAgICAgICAgICAgICAgIHNjb19zb2NrX2NsZWFyX3RpbWVyKHNr KTsKICAgICAgICAgICAgICAgIHNjb19jaGFuX2RlbChzaywgZXJyKTsKLSAgICAgICAgICAgICAg IGJoX3VubG9ja19zb2NrKHNrKTsKKyAgICAgICAgICAgICAgIHJlbGVhc2Vfc29jayhzayk7CiAg ICAgICAgICAgICAgICBzY29fc29ja19raWxsKHNrKTsKICAgICAgICAgICAgICAgIHNvY2tfcHV0 KHNrKTsKICAgICAgICB9CgpUaGlzIGNhbiBtYWtlIHN1cmUgdGhlIGtmcmVlKCkgd2lsbCB3YWl0 IGZvciB0aGUgc29jayBoZWxkIGJ5IHRoZSBzY29fc2VuZG1zZygpIGZ1bmN0aW9uLiBIb3dldmVy LCB0aGlzIHBhdGNoIGNhbiBpbmN1ciBXQVJOSU5HIHJlcG9ydCBsaWtlIGJlbG93LiAoSSBkb24n dCByZWFsbHkga25vdyBpZiB0aGlzIHJlcG9ydCBpcyBjb3JyZWN0KS4KClsgICA3NS4xNDc1MTVd ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpb ICAgNzUuMTQ5OTU1XSBXQVJOSU5HOiBwb3NzaWJsZSBjaXJjdWxhciBsb2NraW5nIGRlcGVuZGVu Y3kgZGV0ZWN0ZWQKWyAgIDc1LjE1MDU0Nl0gNS4xMS4xMSsgIzU4IE5vdCB0YWludGVkClsgICA3 NS4xNTA4OTVdIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQpbICAgNzUuMTUxNDg1XSBwb2Muc2NvLzEyNyBpcyB0cnlpbmcgdG8gYWN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