Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10337073pxu; Tue, 29 Dec 2020 23:05:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/03Z1T78pRRsXrRN4aYZ7p/9ajlc63YyAcPzbqYlLrKcHu0oJOhnCaGpN+KsyEE92uckE X-Received: by 2002:a50:bf4a:: with SMTP id g10mr48532048edk.201.1609311936063; Tue, 29 Dec 2020 23:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609311936; cv=none; d=google.com; s=arc-20160816; b=yypKQ7qam4lhMXiRw7yjbuGwu2/rLxc8QpXfZE5O8qziyA/UtG8vxIx6ou4RFlrZ6N qk+b4Laz+SYLyWuDMqoD04DeQmN53KMsOW8V7Oo8EeO/Hd3QbIWUtlwFb5zU1K2tSDlo gWAlh7ggTu3DAg1Y5ncwTMVMdOKeKP04whf/2CxXeQkQRADsSM8jeQ7fGKbK6GwCisjb HXoyjGjSId/l83Eqz/qnRRKnO7HlqzL8rqGH3zSKp2eMi6YEU8X9l3KL25Bq8Wczy6Hk JeUBFQFDH2ov3d4EI4+yTnxKfyC7+ajrVfwh0w79db0ap7B6Xh672dODtzfYVP7FTp2/ ovuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IVIq9v7uhd13qBpMQD16SmyiUO8UUvqpILGYkZ47HJo=; b=Hh90rsklT3zuZiIGdKVgShwJUaerV17di4o2tMuBWcm6l/17SgU2ozwCoZZ+29bncs EsBNGLfCDZnvcvsNh7HTLLosHUGPrGA/qt2qLSuxSg9neKhhJ1SaaOqFkPZGj89IfUas dab10KeViwc5KjbhwByUOOuysiNY46t3j2p3ezNtRtMRj1Ee1e+dhtnVvKoJbvqyvYXs zjtb1eOof4USsa9F0kJgArDOABQmm7HIt4EeG61ylnGSHnsKIjT0bTvdcuTW+2y28Bvt /sDNwiRQl72TKaxyQCdhWXU5vLGMH68p37gLtlGLYL1MTy9w5kqLjpDJsoUWMs96kSKH R/tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=jq3k8zvD; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si21128514ejw.561.2020.12.29.23.05.13; Tue, 29 Dec 2020 23:05:36 -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=@alien8.de header.s=dkim header.b=jq3k8zvD; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgL3HD3 (ORCPT + 99 others); Wed, 30 Dec 2020 02:03:29 -0500 Received: from mail.skyhub.de ([5.9.137.197]:53098 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgL3HD3 (ORCPT ); Wed, 30 Dec 2020 02:03:29 -0500 Received: from zn.tnic (p200300ec2f0ae90058345bc89b9c20d2.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:e900:5834:5bc8:9b9c:20d2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E357E1EC04F0; Wed, 30 Dec 2020 08:02:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1609311768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=IVIq9v7uhd13qBpMQD16SmyiUO8UUvqpILGYkZ47HJo=; b=jq3k8zvDtJx6/tM/0+ZBgmlGDufmiW5hdO4HCuUJymq1D4Rabnx9CJMwz/OkGeCrPTJqqq dQVpIuosWm5FRr4E5snOgvGaJsrqLzdIgV0akYeADZppnBBQczJSwEZ8awF8gGCFXStV3q UiRy1KBwaTCCRMS6Imljj6Doo4kzQFw= Date: Wed, 30 Dec 2020 08:02:44 +0100 From: Borislav Petkov To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, zhongjiang@huawei.com, joe@perches.com, konrad.wilk@oracle.com, tglx@linutronix.de, mingo@redhat.com, iommu@lists.linux-foundation.org, dwmw2@infradead.org, baolu.lu@linux.intel.com, joro@8bytes.org, will@kernel.org Subject: Re: [PATCH] x86/iommu: Fix two minimal issues in check_iommu_entries() Message-ID: <20201230070244.GA22022@zn.tnic> References: <20201223062412.343-1-zhenzhong.duan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201223062412.343-1-zhenzhong.duan@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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. Plese structure your commit message something like this: Problem is A. It happens because of B. Fix it by doing C. (Potentially do D). For more detailed info, see Documentation/process/submitting-patches.rst, Section "2) Describe your changes". Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette