Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp545434pja; Thu, 19 Mar 2020 07:17:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvCQCCM+ImM+hdpKA5xiBozdX6f8s201uXUihLmON+9MwjOaqTXQe+PpjHrMhG8Rm298aOu X-Received: by 2002:aca:3d04:: with SMTP id k4mr2510136oia.45.1584627456432; Thu, 19 Mar 2020 07:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584627456; cv=none; d=google.com; s=arc-20160816; b=J3Eg2Q7B2+EIEFHGhdYmSUt3UvT2rKi5A67Zm4ctqnk/rlAfPZrO/+hExOo3UPllSZ rkPpnzsToyUv0u3tUlfQw7ebfP/Qcujsno7IAPfqmqYOckIVINWBVwuUyxrkGPRob0f7 t9xVGURLTZnd+WaRwuFn18UX0sbThug6NtNArEF7nghottr2Qfzd65zAAPMMbudHS5Fq 1B/K+KDZT62jg7lnaLFHuGQRu8Y1w6YIhjRDZWjkVWoqkKluye2tBdCOCDjFhd2XFfcs 73HN0gM/8wdA3y+h4r7nWM59T5+po78H7MgvxmRsxFOM+QrrrqOYk83xi2/LvCWjq3q6 Hqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=umz1H9MW+09H6uDqZl+14fh8pMoBfWku6yZn4JbFM/E=; b=u5NNLa/hYjJcn57N49c83hIbgWvUXCiFMuOLxHZkv+ScsvzOEJaJEkFAhoWfmGuc6c wZRDY9Y5krheaXUaPgphmwJj+FqRD8cjEiIQ8ym/F7bIMEwOrqHAxcw5Wi3/MZEIijR1 dn4qe6QBf37PG5DOd3J7utj+rKQ4jnwFL501QJFivV0RZh1m+mKm1xtVOBXjgdPPExEU Z67doAOrPr8o+o73IP3LzRvKGMGkf3PxWcSkMuxMpkCioWR3lAEBSd7XjAxC9iN78MYg Hxp2WX74wr2xbvyFNxW24s42sLmcjuHpfnhGcNpBste/uxoQJHNJVDaALc6KR9WDw1Pk wkyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si1236251oib.109.2020.03.19.07.16.44; Thu, 19 Mar 2020 07:17:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbgCSOQW (ORCPT + 99 others); Thu, 19 Mar 2020 10:16:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:45660 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgCSOQW (ORCPT ); Thu, 19 Mar 2020 10:16:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4919DAE6F; Thu, 19 Mar 2020 14:16:21 +0000 (UTC) Date: Thu, 19 Mar 2020 15:16:19 +0100 From: Joerg Roedel To: Lu Baolu Cc: Qian Cai , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/vt-d: silence a RCU-list debugging warning Message-ID: <20200319141619.GC611@suse.de> References: <20200317150326.1659-1-cai@lca.pw> <36b9e69b-ee3f-c17d-1788-64448ce8bc14@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36b9e69b-ee3f-c17d-1788-64448ce8bc14@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 01:27:53PM +0800, Lu Baolu wrote: > On 2020/3/17 23:03, Qian Cai wrote: > > dmar_find_atsr() calls list_for_each_entry_rcu() outside of an RCU read > > side critical section but with dmar_global_lock held. Silence this > > false positive. > > > > drivers/iommu/intel-iommu.c:4504 RCU-list traversed in non-reader section!! > > 1 lock held by swapper/0/1: > > #0: ffffffff9755bee8 (dmar_global_lock){+.+.}, at: intel_iommu_init+0x1a6/0xe19 > > > > Call Trace: > > dump_stack+0xa4/0xfe > > lockdep_rcu_suspicious+0xeb/0xf5 > > dmar_find_atsr+0x1ab/0x1c0 > > dmar_parse_one_atsr+0x64/0x220 > > dmar_walk_remapping_entries+0x130/0x380 > > dmar_table_init+0x166/0x243 > > intel_iommu_init+0x1ab/0xe19 > > pci_iommu_init+0x1a/0x44 > > do_one_initcall+0xae/0x4d0 > > kernel_init_freeable+0x412/0x4c5 > > kernel_init+0x19/0x193 > > > > Signed-off-by: Qian Cai > > How about changing the commit subject to > "iommu/vt-d: Silence RCU-list debugging warning in dmar_find_atsr()"? > > Acked-by: Lu Baolu Fixed up the subject and applied it, thanks.