Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3098344pxb; Mon, 18 Apr 2022 15:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxWLFrT8ztH1BE2OoVrkD25LZp7KF7EcPnSOx+taecF27SMbvtc88uJ1R/WS9tfzji8fC9 X-Received: by 2002:a05:6402:90c:b0:415:d340:4ae2 with SMTP id g12-20020a056402090c00b00415d3404ae2mr14615412edz.331.1650322426779; Mon, 18 Apr 2022 15:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650322426; cv=none; d=google.com; s=arc-20160816; b=E7jGJKVp+oIjQ4TWDn5iC8DF8Xm8O2q/IL51DCsbeu5Fp5sggvFUGBtQrlkx37cn1f sowTkoEPbPiV/QMS0xX0CsQtR0kcbnCxqgJwbt4lkBlXCfLOyiAzLe+8eTPDtuUsefNu XBQSegbYoI6UjKD4dP46WeWlQUJY4P4vDEL28nboajHDYzF+6mkBGu/wXgAuAsvnh8cb PdVXAlWwbehtPrtmXEaVPaMclzSRgujC4SfXfeIcKg4QtlcaXSTV+C6x2+zH+beGl1O5 c7g+gogQ6UnmrIwqVKZazBkBMvfQsjKQB/ljqnkoLVERQWdWYU/LraJIxRC1S0Wi1LJq zYpQ== 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:references:in-reply-to:subject:cc:to:from :date; bh=VG1JHSfL+Wi+5YZgLM9a5QVdwOyLwwrOBZXiY4GPqCs=; b=rlye694HhC9Xi8Kdzw8toO4vGYazkBOWLhy369eo72X7LK4ES/l3kW6ge+5V68Glo8 9J1EF8Kl1AscZxzeeuynTG3oWIG8VSToZF9EfvOVlmz1ZovFu0lNWnZRTJWIejoFX1Hc GVzhSaHyofhj5BFL/Cem2ZvoDYjvFRn2K821CMdHzXU61ENOkN/GWXwd9FjkFGlJ9igt j0sdLCp7PJp1CHIRBDNK1oONRrCQcuj2FRIt3LywFQJuAmg5f9Uo8moFYEyta0Xe3H83 yDSl2zeROTDtmXHi2rPRS0gpR4CIJYm5cZnQ1NmBFnJ27QuisWwACK1wQWj15IddUazI RV5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a170906c01500b006e6c486794bsi7255034ejz.485.2022.04.18.15.53.23; Mon, 18 Apr 2022 15:53:46 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240488AbiDRPH5 (ORCPT + 99 others); Mon, 18 Apr 2022 11:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345333AbiDRPHi (ORCPT ); Mon, 18 Apr 2022 11:07:38 -0400 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8D102CC8C; Mon, 18 Apr 2022 06:59:25 -0700 (PDT) Received: by ajax-webmail-mail-app4 (Coremail) ; Mon, 18 Apr 2022 21:59:10 +0800 (GMT+08:00) X-Originating-IP: [222.205.9.250] Date: Mon, 18 Apr 2022 21:59:10 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Guenter Roeck" Cc: krzk@kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mudongliangabcd@gmail.com Subject: Re: [PATCH v0] nfc: nci: add flush_workqueue to prevent uaf X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2022 www.mailtech.cn zju.edu.cn In-Reply-To: <20220418134133.GA872670@roeck-us.net> References: <20220412160430.11581-1-linma@zju.edu.cn> <20220418134133.GA872670@roeck-us.net> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <524c4fb6.6e33.1803cf85ae9.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: cS_KCgAXGfCubl1iY4VnAQ--.51417W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwQEElNG3GZe+AAAsY X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 SGVsbG8gR3VlbnRlciwKCj4gSSBoYXZlIGJlZW4gd29uZGVyaW5nIGFib3V0IHRoaXMgYW5kIHRo ZSBzYW1lIGNvZGUgZnVydGhlciBiZWxvdy4KPiBXaGF0IHByZXZlbnRzIHRoZSBjb21tYW5kIHRp bWVyIGZyb20gZmlyaW5nIGFmdGVyIHRoZSBjYWxsIHRvCj4gZmx1c2hfd29ya3F1ZXVlKCkgPwo+ IAo+IFRoYW5rcywKPiBHdWVudGVyCj4gCgpGcm9tIG15IHVuZGVyc3RhbmRpbm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zZSB0aGVyZSBpcyBubyBwYWNrZXRz IGluIG5kZXYtPmNtZF9xIGJ1ZmZlcnMgaGVuY2UgCmV2ZW4gdGhlcmUgaXMgYSBxdWV1ZWQgbmNp X2NtZF93b3JrKCksIGl0IHNpbXBseSBjaGVja3MgdGhlIHF1ZXVlIGFuZCByZXR1cm5zLgoKVGhh dCBpcywgdGhlIG9sZCByYWNlIHBpY3R1cmUgYXMgYmVsb3cKCj4gVGhyZWFkLTEgICAgICAgICAg ICAgICAgICAgICAgICAgICBUaHJlYWQtMgo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHwgbmNpX2Rldl91cCgpCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAg IG5jaV9vcGVuX2RldmljZSgpCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAg ICAgX19uY2lfcmVxdWVzdChuY2lfcmVzZXRfcmVxKQo+ICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHwgICAgICAgbmNpX3NlbmRfY21kCj4gICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgfCAgICAgICAgIHF1ZXVlX3dvcmsoY21kX3dvcmspCj4gbmNpX3VucmVnaXN0ZXJf ZGV2aWNlKCkgICAgICAgICAgfAo+ICAgbmNpX2Nsb3NlX2RldmljZSgpICAgICAgICAgICAgIHwg Li4uCj4gICAgIGRlbF90aW1lcl9zeW5jKGNtZF90aW1lcilbMV0gfAo+IC4uLiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIHwgV29ya2VyCj4gbmNpX2ZyZWVfZGV2aWNlKCkgICAgICAgICAg ICAgICAgfCBuY2lfY21kX3dvcmsoKQo+ICAga2ZyZWUobmRldilbM10gICAgICAgICAgICAgICAg IHwgICBtb2RfdGltZXIoY21kX3RpbWVyKVsyXQoKaXMgaW1wb3NzaWJsZSBub3cgYmVjYXVzZSB0 aGUgcGF0Y2hlZCBmbHVzaF93b3JrcXVldWUoKSBtYWtlIHRoZSByYWNlIGxpa2UgYmVsb3cKCj4g VGhyZWFkLTEgICAgICAgICAgICAgICAgICAgICAgICAgICBUaHJlYWQtMgo+ICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHwgbmNpX2Rldl91cCgpCj4gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgfCAgIG5jaV9vcGVuX2RldmljZSgpCj4gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgfCAgICAgX19uY2lfcmVxdWVzdChuY2lfcmVzZXRfcmVxKQo+ICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgbmNpX3NlbmRfY21kCj4gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgIHF1ZXVlX3dvcmsoY21kX3dvcmsp Cj4gbmNpX3VucmVnaXN0ZXJfZGV2aWNlKCkgICAgICAgICAgfAo+ICAgbmNpX2Nsb3NlX2Rldmlj ZSgpICAgICAgICAgICAgIHwgLi4uCj4gICAgIGZsdXNoX3dvcmtxdWV1ZSgpW3BhdGNoXSAgICAg fCBXb3JrZXIKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IG5jaV9jbWRfd29y aygpCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgIG1vZF90aW1lcihjbWRf dGltZXIpWzJdCj4gICAgIC8vIHdvcmsgb3ZlciB0aGVuIHJldHVybgo+ICAgICBkZWxfdGltZXJf c3luYyhjbWRfdGltZXIpWzFdIHwKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 IFRpbWVyCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBuY2lfY21kX3RpbWVy KCkKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IAo+ICAgICAvLyB0aW1lciBv dmVyIHRoZW4gcmV0dXJuICAgIHwKPiAuLi4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8 Cj4gbmNpX2ZyZWVfZGV2aWNlKCkgICAgICAgICAgICAgICAgfCAKPiAgIGtmcmVlKG5kZXYpWzNd ICAgICAgICAgICAgICAgICB8IAoKCldpdGggYWJvdmUgdGhpbmtpbmdzIGFuZCB0aGUgZ2l2ZW4g ZmFjdCB0aGF0IG15IFBPQyBkaWRuJ3QgcmFpc2UgdGhlIFVBRiwgSSB0aGluayB0aGUgCmZsdXNo X3dvcmtxdWV1ZSgpICsgZGVsX3RpbWVyX3N5bmMoKSBjb21iaW5hdGlvbiBpcyBva2F5IHRvIGhp bmRlciB0aGlzIHJhY2UuCgpUZWxsIG1lIGlmIHRoZXJlIGlzIGFueXRoaW5nIHdyb25nLgoKUmVn YXJkcwpMaW4gTWEKCgo=