Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2648516ybz; Sun, 3 May 2020 06:06:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJWerP2cibZbqiHEdE+/8BTaPRZuOGFQSRhrPHxeUcEGmYdG8RD6qG0FrSbUzSQPgFtZZ7G X-Received: by 2002:a17:906:68cf:: with SMTP id y15mr10511485ejr.260.1588511198719; Sun, 03 May 2020 06:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588511198; cv=none; d=google.com; s=arc-20160816; b=dEGWhnB9heekJ0IOLol8uZViFcTJxIgbFIRxbT24uDsV9vjUxtvjeGS1+unIOy9NuJ z/LfBwUXu0m12iDvMZIDtTO/xPjrzP3n17ZzE9cWYYTcCGjaaYMlL87Xz9g/TJJAvTBc rdkKKSXpi50cy83Fasnj/DFPajbE2p2jeH2prxrbctzPuUxIFPUygwhGUWlDssrz8rui 9g6XM9g9/8C8SvdBb4FQHezM7rbqrRrEWQqSID73+JdKvaxmPKgwdr1Pc1SI7DCWCrKd fpPblpZRCisuGVI/1SM0ekVWjTDZUcetdTT0Ecc0WaeAY1pzkMfpf0G7M6uQOa0L4bEj XI0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=lgDLstrxQHhDxzWYd9/HS8YbBd/gpsI1gpTdprUS3Jg=; b=fkwznOl6pNd4ygt11oY5kqbR5lxIUrtMuQGK5H27SojPLFLl4rA0xcV/ZdLmxo1gfo j6GzOvqFiE76TO0KaSuucq+c9PHMOGnf8iGYfQ29gud6UKKaPKPwXGxCsw2RhdPMOI9M a7kqTJ/Wh4R0bXLCDQR5X2CfsFDU30udvLxqz/Aq9xtV2tc9P8ExfxhADcSnlGz7XWdl bTz2r+mOEG/ZK+LHNaPgqdJJL2I4fDUifB3oUbMoyAXvptwqzmkdvW2o4nIOA+LvPjZ7 G5jjlK94fQK73pxZzmBZgx7L/C0q80mmR8VXxl6MQnxhh70kmiixbq+MvIFmmxTbhDu7 s/AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=Dq4xmUY0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm21si5145823edb.275.2020.05.03.06.06.15; Sun, 03 May 2020 06:06:38 -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; dkim=pass header.i=@lca.pw header.s=google header.b=Dq4xmUY0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728544AbgECNEG (ORCPT + 99 others); Sun, 3 May 2020 09:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728239AbgECNEG (ORCPT ); Sun, 3 May 2020 09:04:06 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FD8EC061A0C for ; Sun, 3 May 2020 06:04:05 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id z1so167662qva.6 for ; Sun, 03 May 2020 06:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lgDLstrxQHhDxzWYd9/HS8YbBd/gpsI1gpTdprUS3Jg=; b=Dq4xmUY0lO9O9aVqYMQW5AsSTJeAnnfNOWuxdYL/g2r28y6kJLGyYc1PX7+z0JukAq wyAcVZSwZkjc8VRCxLRJn26bGkxezGegSNuTNUn6w67H5qd3dkSA77rAL50b9yC404V4 st+f6Z9L6/MaGb5U7JV0MHQEbLyEFw68ozLmhtw0LfDgKYWFJEl+/M0sjOi+SGMPNiuJ 1PYT0sh2oERfJPQEuk2g3WZDGC2RoC37Z5PSNIZz7FSpBei+eYjhf2wy61mmLeqyF9AD ir673fIn5utfDxhEE2iD26R3vkKcGUE67v1Tjt05ErNGuWkt57eXT7Ah9rfKVFuIQ2A/ 96QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lgDLstrxQHhDxzWYd9/HS8YbBd/gpsI1gpTdprUS3Jg=; b=hE1fAgeRYYPiCuWN1snWNPW0oIL8S3/mLyr5r4F3rr0rMFxXbmBlqpfkOO3sJmeqz8 FxOKiIaKB/6KTz5YsbxjgU0XTx3fXkuu+YWCNqtLgssSlRYbrzjrUsp4UCcthpIbTi+9 2TI3wObssT6Q3hkT9i27xExxbIC1+XJfYmUrXTzZLA+mGSwTaffLYTHywLcEOuPQC1hm fvj+vfdRHonk91pNviDUeMI7LKEPkOlG0xG2kgLlZfw5zCdkyE5p50v4IbHAvFHN7VKO c2HBm7oMDxoIMKacCiEj5u+FNSkCzgoyX+syFEP7cxTvgxozLDaQmdjmSopNUweuneJm AACg== X-Gm-Message-State: AGi0PuZK0vjXv7yLq/JtJpL66CbInzbYu0wL8PPF4UQyWdpbLVYHwWPL ZaRopsht5jjwhC0Unqxenlz91A== X-Received: by 2002:a0c:e992:: with SMTP id z18mr12711287qvn.25.1588511044636; Sun, 03 May 2020 06:04:04 -0700 (PDT) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id i5sm7689441qtw.97.2020.05.03.06.04.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2020 06:04:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [RFC PATCH] iommu/amd: fix a race in fetch_pte() From: Qian Cai In-Reply-To: <20200429112014.GN21900@8bytes.org> Date: Sun, 3 May 2020 09:04:03 -0400 Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Joerg Roedel X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Apr 29, 2020, at 7:20 AM, Joerg Roedel wrote: >=20 > On Mon, Apr 20, 2020 at 09:26:12AM -0400, Qian Cai wrote: >> No dice. There could be some other races. For example, >=20 > Can you please test this branch: >=20 > = https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/log/?h=3Dam= d-iommu-fixes >=20 > 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!=