Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1471199pxb; Thu, 14 Apr 2022 07:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHzyrNmONM1Skx/Fh+cs9na6bbjSx49kJGCMn72qVl6qQjNPVcAT2WXH5kgl8glrhdL7wg X-Received: by 2002:a17:907:9606:b0:6e7:f7b3:5ef6 with SMTP id gb6-20020a170907960600b006e7f7b35ef6mr2493292ejc.332.1649944869565; Thu, 14 Apr 2022 07:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649944869; cv=none; d=google.com; s=arc-20160816; b=WGfAVu7e/LOkqcP+K9pAi5wI5cD4BQJyxBcEgu44KWrqb9xMg9XBbfaj+oqkwB8xsc prRBJqS6OqXMf6+LPq9H7VFoq+G+sOlP3OYGtoFd2cUdYUegOwXOjdKnUN7drMGxEe/r p/cO3bTKPdQ2Nr4BFAllXo4orp/KX9v4hD+kYmdLynsWQsU8U7zhWDm65EWKrXDzvxrS ObHAUN4HZYkCwRXbxNt/xgdydfaaCCH2BPySiNKC+flC8JXbKt3DqCTdMN28DCz1OcJ6 Odjw3pKGSDXtfwY+l1sGHvRPOncS90BuT0rDI8rgWc3M0Bq43z+mhDjIML3B2UTbK866 aCog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Sp7hvnptI/W931YQG2jYIshQ4aGCuypBebE/tzGdpNE=; b=GtQDITKtiY0/YU2EcP0ompgoTLBpgRyLxECtSjgGvvQeK08Qq+YV/VjQCa/lU5WboJ G/c2uj+mV1ZIT+cNywlmKTBAgN7oZkx9D5DaLjDYylg2UDS879twulCLJ4rp8/n8F9lg m0SKoVtJ9LimpuMpSOoPv9veXxTThBgDYL4INlHKYCgEQF1wTUSTpnmM6Jz+2UGL07RL OYieGWw9dZaDYs+Vq+e/qacYjx/CLmtehpxTjtvgbG1HnelaOLw8qTcoCxULfWde/9P8 rSL2oGWmgaRUkBJCYTZ1g7lfKKSW6r9xSNOLL6mBTBbrvmVE1vovn/pahRSmxPqHTuWG IqTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DZYcVZPT; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds11-20020a170907724b00b006e6ec107c1esi2199994ejc.636.2022.04.14.07.00.39; Thu, 14 Apr 2022 07:01:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DZYcVZPT; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiDMHAT (ORCPT + 99 others); Wed, 13 Apr 2022 03:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231911AbiDMHAQ (ORCPT ); Wed, 13 Apr 2022 03:00:16 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9030838BD2 for ; Tue, 12 Apr 2022 23:57:56 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id v4so1196942edl.7 for ; Tue, 12 Apr 2022 23:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=Sp7hvnptI/W931YQG2jYIshQ4aGCuypBebE/tzGdpNE=; b=DZYcVZPTG6D4QslsNYGDX5RqcCwCUafMJpigiGnSHDCSYV+q64FSGnHUfzJSPU5D4G jnQnCkMgolBpdMgsGJin3kk5/6VDc+qWq5/fFWXKKGWBsdlmnNNAv39e9yBZubRip+zm FpwkvHMP64vP8AceHhRoZhsU0FYAranP54kaRvkCODgfTKH/xcWem/Vsz8VBPRZQx6p9 MomQ1FxYys+vUb0r4xGI+EqR48oCje0smOtK6b61DQoJubTvo7ha61G62MeiRuO1ETD2 5rU9aubI/ZkSDGdFmU9QE5W0uE29o8cn8LeeX97Sa0NI0CLXy19vzzgyWrviBVqFFyNE mOJA== 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:references:from:in-reply-to :content-transfer-encoding; bh=Sp7hvnptI/W931YQG2jYIshQ4aGCuypBebE/tzGdpNE=; b=cSVKU+QlutxBtgul/zCG7ZfL3YMftAeYvyc3WmckBftx0AoEMZEVLsD4Wr3zRYBmUK UEoiCNGYU31HWJ3U54WP0l7bH/VwbJ/bjrReJRFJDYU//iuxdksOioUljKwUUOrN4AHI CsTqWItnRDWKd4hq3iGx+/EhjA8/vrerMIEic8uRQ5dy5I2wX2LI9h6R94dARWtcVotf qJGq1m9JCk0LrTcPSOTE4RoDK4AHltCE6551sziDjgPJnkjXnNUOr0r+P+m+HfJtY2X/ xrSGxZ1dRHEzfn0Cj4gzGnlZzozzo6X5njCp2YGfrcG2zawZ+X0XqnRsjY6nSVKlz/uz 96zA== X-Gm-Message-State: AOAM533eEGuuY5+RO/r1ASlWXhbg9sMH6drjzBMqq2w/N0bB8Pk8GuNB gVqa7sECgi40azxR6N8ImaP4Yw== X-Received: by 2002:a05:6402:515b:b0:41d:82c2:2749 with SMTP id n27-20020a056402515b00b0041d82c22749mr11624701edd.38.1649833075220; Tue, 12 Apr 2022 23:57:55 -0700 (PDT) Received: from [192.168.0.201] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id fq6-20020a1709069d8600b006e891c0b7e0sm3212170ejc.129.2022.04.12.23.57.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Apr 2022 23:57:54 -0700 (PDT) Message-ID: <86da471e-b18f-94e2-64a9-e0f3417ade60@linaro.org> Date: Wed, 13 Apr 2022 08:57:53 +0200 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 v0] nfc: nci: add flush_workqueue to prevent uaf Content-Language: en-US To: Lin Ma , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mudongliangabcd@gmail.com References: <20220412160430.11581-1-linma@zju.edu.cn> From: Krzysztof Kozlowski In-Reply-To: <20220412160430.11581-1-linma@zju.edu.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On 12/04/2022 18:04, Lin Ma wrote: > Our detector found a concurrent use-after-free bug when detaching an > NCI device. The main reason for this bug is the unexpected scheduling > between the used delayed mechanism (timer and workqueue). > > The race can be demonstrated below: > Thanks! Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof