Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2886959ybz; Sun, 3 May 2020 11:42:04 -0700 (PDT) X-Google-Smtp-Source: APiQypIS6NO3ETHTyftrwKBe26lxEe6bij+ob4+WPoo4yESwgCZ9kV33BU8goohn8MuT34Fl0gRP X-Received: by 2002:a17:906:f288:: with SMTP id gu8mr12322992ejb.281.1588531324488; Sun, 03 May 2020 11:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588531324; cv=none; d=google.com; s=arc-20160816; b=AdGxbmoFbCyIc2o94W8ye6ZWxbpp5NJRa8Csvw6aFLsuMJyAAZ6kSqvBErhPQbrm0P nNKQD5gPWilGSV4kv8Yeb+PC/j1aqk4tM4luG4MNWyBEAJHyVZvlGoS/HCzYRoG+J3sq Hhva7Ot9DEqDGc8wPESiFe2vZdSr9s+kc0JxC/aJLV7So4nN+OfVngGba5+4svCb2I93 C1/9DECJTCoDEv/Uvn4bjNkkCC9L0Dbkf0ZNHoHq99BDTwX/3E3XXPRRWZkKX++S7YAE Gho3M0HDE3knw53V7TTJncX8ou0G/JK2pTvEwGuyPSUMmLLlmWVVFqWzTt6vdnGnpOTT buBA== 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=4j/FueFzy4gW/YDnlZsBMdoDyxRljmnLRA1Zgtsutds=; b=0rm6a+iQcnqrawKQzUCzITorpZUwsKqtuCeFGzdCcJPMM/2Cdod4Q0J/NXu5w3hyaf iYOQHCOnPtkhJ9hiZhpyJio5V5Z1FtK76x/e3/+5a5yJWKFRzjrTEiJ43H7l1GCnCX+u F/b/9q9K0TOoTsxtf98oaYUqUyGFd50t17GbHCQuAWE4yzI5ZxdI1X9JUBlYmvAYy6fd y5zptEcekbi+RgD+ff/W7XBdP2wCJb7Emwo/7e4woUrm4Yv7LxhRzr7CRdl2jNtfohDL 2x4vXLYbjSmox3h57o+zlb+UnYIq9yW2MSB3dDMooxgZrSkIVYk4a+N6uWqKsJ9BUMgg vXxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp6si5574746ejb.16.2020.05.03.11.41.42; Sun, 03 May 2020 11:42:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728929AbgECSjb (ORCPT + 99 others); Sun, 3 May 2020 14:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728863AbgECSjb (ORCPT ); Sun, 3 May 2020 14:39:31 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04734C061A0E for ; Sun, 3 May 2020 11:39:30 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id 191A2452; Sun, 3 May 2020 20:39:29 +0200 (CEST) Date: Sun, 3 May 2020 20:39:27 +0200 From: Joerg Roedel To: Qian Cai Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] iommu/amd: fix a race in fetch_pte() Message-ID: <20200503183927.GA18353@8bytes.org> References: <20200418121022.GA6113@8bytes.org> <57CBF6B2-4745-4E36-9AA5-7E0876E3DA8F@lca.pw> <20200418183429.GH21900@8bytes.org> <7D03A3E2-647B-4FAD-886D-EE2764EC1EDB@lca.pw> <20200429112014.GN21900@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Hi Qian, On Sun, May 03, 2020 at 09:04:03AM -0400, Qian Cai wrote: > > On Apr 29, 2020, at 7:20 AM, Joerg Roedel wrote: > > Can you please test this branch: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/log/?h=amd-iommu-fixes > > > > It has the previous fix in it and a couple more to make sure the > > device-table is updated and flushed before increase_address_space() > > updates domain->pt_root. > > I believe this closed the existing races as it had survived for many > days. Great work! Thanks a lot for testing these changes! Can I add your Tested-by when I send them to the mailing list tomorrow? Regards, Joerg