Received: by 10.192.165.148 with SMTP id m20csp5025208imm; Tue, 8 May 2018 20:20:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq04t3hZaPoe+rfrDDmD7Ag2ne2z1fPquITSiXigKqXdDmr5bo5r4dEq3XZj64sfgWl+Dha X-Received: by 2002:a63:6d84:: with SMTP id i126-v6mr34369264pgc.414.1525836047898; Tue, 08 May 2018 20:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525836047; cv=none; d=google.com; s=arc-20160816; b=bHE3jpDZqoRQq5Gd5LlcUXBfWyf3GEgaPw6qa57VMhETgtPr5XaTf9mne7CXtsQU+u wepZk/GBH4wU9IdPHy2QW4hSovFqmTE3bbjo4xKIjyflxVaOs2KZjQdYJnpOQfSxbFtm kK7oF2cISATjiB3u0Z87aVcWADycLtZpjd71v9VKtjcWeZ/3xGbCKAM351KujBJabMq4 Ih0LEsF7/v2IZHGTyLVAfgYudrpd3Hq67nRzw0T5m9IR5Kxa7xDCVSLE/Tz5L+EigsCf lmRNYYAYDvPZrzQvgoaVfEnPDJ53cbKXVaVKBwTYPdS3ivm+SUzO5Ndm58lve4OTku6O DiYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=DBiHoYAw2SDdEFnJkYQoGKJS+T0pl8XyRcppHgUFDtA=; b=K3+9xJ4NpVOBYnHQlelnHcyCGlt0rUnPYVmp7Gi7B6/z3Sj3lIn9qLv/wBq0IDxDUU Ftv/SZpjuwdhjNGCqkRFKmC8dDk+XDyRWzsa7Lr0HI5lMHbEFtxeHWGZxkuyivot0VXM ezrT6hWppvWrUzZOJu43xlcqC9xBJXHA5plE1CebQWv4mXvDNAMNkLQeC/35ihvg5iAI nT815Y49ly1vBEuU4FxoySBYoSKU8t8FcChNusnuOip15m0BY6PmIEcIxRaFmy9zCIZN DGBdpskEr6WebUV159sWq2Bdrrie1TsL1QFxOuRA8T0lrl5bv3VsjIxcVpCNygOzH0k9 LKMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R7sk06Lx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si21162274pfi.67.2018.05.08.20.20.33; Tue, 08 May 2018 20:20:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R7sk06Lx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933669AbeEIDRu (ORCPT + 99 others); Tue, 8 May 2018 23:17:50 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:42122 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933543AbeEIDRs (ORCPT ); Tue, 8 May 2018 23:17:48 -0400 Received: by mail-pf0-f170.google.com with SMTP id p14so13531855pfh.9; Tue, 08 May 2018 20:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=DBiHoYAw2SDdEFnJkYQoGKJS+T0pl8XyRcppHgUFDtA=; b=R7sk06LxnznI0cxwKzsrD0ClOyZ6LdvfM16VFpRJxeKKx6t9TrfF6Eu1HxMrlERnxu cy0Mre+D7r/gpZ/dNnzg2WD3YIQ93bz1AFPLNjN5jV1td+nqgbW2WlnRhR2qkLKKuADM 9pGoFO3PagO0RnFt7i47PvQthtKf4Qv79ypWFBY6K/n9I56yjLi8YuWtd8h034d4KLAJ sBX4+vnSHqv9je8JJkbbAIiMZPLsnugNy1u/u/I2RZI8wKZB6WRP0CgBOydRh8MU82+b DIllbidQMD/HDhkVkJT0JBvmPK23UGm5gGK28P/OQ1ENRKJBmNKVJfdvuJlkepOkqtjq YFag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DBiHoYAw2SDdEFnJkYQoGKJS+T0pl8XyRcppHgUFDtA=; b=ge41fJZWOjALCy6a3rZg9tepfm/jkcGIxy2ibDRfQZXQEIBAQVPSImxi1eeJqeFKIA V24ibBa24+scK/8MsGWr9Mc8NcqTnE125TqVmNZi5e6HSHHzoVXtYtpCCLpyqEtGq2Sh fgn/rhuDdUE7FgfuR7/3EroM842pZgngmNmUtZ02cIQLXP4oGSjE1LU/qS6K2USSi95n u3fAeJ+WfOrgtqmkWDH7vGxOZC12qzpNbCBZSkC69OrDo2LjqdtwlXpHNRjM7JX8FiZX jpz2I2jGcanAih747Vz2u2HBVCNCrI+LJACY0QDcXTdlCXBAAekpmSBYZHowIFNeHnE0 0l6A== X-Gm-Message-State: ALKqPwfdCJsGxZBxlv9efCqpdUH7R/2yszdVltAYRJmJyPqUcGGP1I+Z mpiptU1LsKaNEiOI2+bzNY1ynFLI X-Received: by 2002:a63:751e:: with SMTP id q30-v6mr348796pgc.5.1525835868222; Tue, 08 May 2018 20:17:48 -0700 (PDT) Received: from ?IPv6:2402:f000:1:1501:200:5efe:166.111.70.9? ([2402:f000:1:1501:200:5efe:a66f:4609]) by smtp.gmail.com with ESMTPSA id n18sm71519448pfg.36.2018.05.08.20.17.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 20:17:47 -0700 (PDT) Subject: Re: [PATCH] acpi: scan: Fix a possible data race in acpi_scan_hotplug_enabled To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List References: <20180508030811.12256-1-baijiaju1990@gmail.com> From: Jia-Ju Bai Message-ID: <1b7f1bff-b38b-fe10-3e1c-2b465b36f193@gmail.com> Date: Wed, 9 May 2018 11:17:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/5/9 4:17, Rafael J. Wysocki wrote: > On Tue, May 8, 2018 at 5:08 AM, Jia-Ju Bai wrote: >> The write operation to "hotplug->enabled" is protected by >> the lock on line 1760, but the read operation to >> this data on line 1755 is not protected by the lock. >> Thus, there may exist a data race for "hotplug->enabled". > Either it does exist, or it doesn't. > > If it exists, it needs to be fixed. If it doesn't exist, nothing > needs to be done. > > Which is the case? I only read the code and find this possible data race. It is not found in real driver execution. I am not sure of it, so I use "may" and "possible" here. Best wishes, Jia-Ju Bai