Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13623464pxu; Sun, 3 Jan 2021 22:59:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwspjYyKixRF3rCZ77KC+ORwohpJierZFhF9KT31DF2qQ5BoWi0A6Huvhc5HFYyhhZ3YIaL X-Received: by 2002:a17:906:a115:: with SMTP id t21mr64984239ejy.549.1609743581245; Sun, 03 Jan 2021 22:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609743581; cv=none; d=google.com; s=arc-20160816; b=oQDkAlqd1HkGDiolGD34GuPWTzKL4BF/byFoshmPJRCTXpTzkvjPQ0eQaQSfAQIS+Y roh7DvWBvNCrs5bg46k4AMSj5k+WaLkKKYKcEx/v9aCEyU2QWeTKn5G56sF9kzO5tiB8 ABhmw2sBHcv/azZMUoltHIzj0lbG/iORQvYaWjAVh5XUxtNBY62Dx2Ii80z9OdouwwyQ DiQBhdBzLK//VA4mOeRDCqS6DBnTOmFnxPgLEoMjrMR02Y6hFbFgYVdiOOfjdqb49zSB 2B1gz9SoAcvijEM51EG7YL/WO/j7voI5lPgDmNnmAwsBX5BMjmelYmi+iifC3v2UurK5 YKcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kt1M/ynVaCrBy4bUG8dbX69hdMW01aGM4CaNYhUhdpM=; b=Mnh5sLy6IgB42QVHbeyFkdmsRdR4fDnfGZjqVtL2iUkqSz21siJNPOC2ayeqc+HNmd J2soUsfp2mE6D0VLYWmMJ569yMpLgMfPUhfv5fwB35vLVIiFtDhmYRd/jh10NdIhHyNY BKNIYBj7LfMkl6z4UC2aztsRW3FqG56S9p8WW7sVFNkRGUOJjH3ENYBSt7C6bCLRCKG/ al6Y7Ba6rbbF4LHj+jsxESrRXzBJBeGcJf5glQYlgCIve61WcKd0tlsTOCNq9Rz1QP8f WIcpC04pzdUKqSDks2Sc1tCWI424Vh4KomP0AWIuSqDE168RwEeTwGIFxOqit70jnCGm E6Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FLqE6jiX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si31400920edr.121.2021.01.03.22.59.18; Sun, 03 Jan 2021 22:59:41 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=FLqE6jiX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbhADFoq (ORCPT + 99 others); Mon, 4 Jan 2021 00:44:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbhADFoq (ORCPT ); Mon, 4 Jan 2021 00:44:46 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3BFEC061574 for ; Sun, 3 Jan 2021 21:44:05 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id o11so25063522ote.4 for ; Sun, 03 Jan 2021 21:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kt1M/ynVaCrBy4bUG8dbX69hdMW01aGM4CaNYhUhdpM=; b=FLqE6jiXowzgMP4GH7Xv6ZcS7S6iThN80zqyvlTa+l7FmIELG4FNqZuWapSfjvRB8D es4DlowG5MaUcPllm5//iqYd/v0hmMSpkCHH7hZzihbz7C3Yn5qC3j54l7yEIRVUEknY QFN6ev0lIPbRgv3kxxL+CPYNEyvX8Jjw1IXZ4YAjcMyfi9vv1tTFHyX9QTwlmZnn8JkI Nh7Cad1zHbvSWFvuVPZNggffvyPgRc2t3CHhAfkdh7w/5UjBmzKXFCRkHKcxziSnq0Mu qAQAayE14boIYOoeRcpAqVX0NuwLT5TmvxKxKrk0og/Mjv66cuhrHlw4iASoOqtYJb01 SU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kt1M/ynVaCrBy4bUG8dbX69hdMW01aGM4CaNYhUhdpM=; b=idWXEJ0r2F9+LUkfI2thTW5Mwq9QoOhisX/A+WrBGPHoSP/iDaIKIhq5XT/i5or18s 2XZQsGIT1dDXIn3XTvC21It5yMkZp6r3kTkY3eTsrtcsj1xO2+qyWCcIQvC2J9fbkAXl TL0fmKcLqiIR6QGgg5rH5l9H+3D87jeNLiWC8DC/uZjeSTLuGh7ZP2PuD83IXQFzLtaL /IaVnmCZ5oB6gzFIxfXjxT+HrVV4JBG4nwPseJoMdyEmxPasx1UXKmb0c9qSFvqGLDB8 31BN8EVGbtdJruJ8cFEybQKYIFr+EHnJO0mddLfxFUGX45Y1JsIx0FmUN/Tru7RgKdxG Ibfw== X-Gm-Message-State: AOAM532q/JP0NpHbi+V3/DFls3EoMJDx8dV0r3l7U2ioj/SIANTl2afE KVMdR7PUyR8V2ywRauLlG+xWmkL55N1lf6Iiwt8= X-Received: by 2002:a9d:7504:: with SMTP id r4mr43330373otk.245.1609739045420; Sun, 03 Jan 2021 21:44:05 -0800 (PST) MIME-Version: 1.0 References: <20201223062412.343-1-zhenzhong.duan@gmail.com> <20201230070244.GA22022@zn.tnic> In-Reply-To: <20201230070244.GA22022@zn.tnic> From: Zhenzhong Duan Date: Mon, 4 Jan 2021 13:43:53 +0800 Message-ID: Subject: Re: [PATCH] x86/iommu: Fix two minimal issues in check_iommu_entries() To: Borislav Petkov Cc: linux-kernel , zhongjiang@huawei.com, joe@perches.com, konrad.wilk@oracle.com, Thomas Gleixner , Ingo Molnar , iommu@lists.linux-foundation.org, David Woodhouse , Lu Baolu , Joerg Roedel , will@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 3:02 PM Borislav Petkov wrote: > > On Wed, Dec 23, 2020 at 02:24:12PM +0800, Zhenzhong Duan wrote: > > check_iommu_entries() checks for cyclic dependency in iommu entries > > and fixes the cyclic dependency by setting x->depend to NULL. But > > this repairing isn't correct if q is in front of p, there will be > > "EXECUTION ORDER INVALID!" report following. Fix it by NULLing > > whichever in the front. > > When does "q is in front of p" happen? How does it happen? Sorry, just realized it never happen. > > > The second issue is about the report of exectuion order reverse, > > the order is reversed incorrectly in the report, fix it. > > I have no clue what that means. I mean if p depends on q, then q->detect should be called before p->detect. The message generated by printk() is wrong. Regards Zhenzhong