Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp657660pxj; Tue, 18 May 2021 11:10:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdknp7nIfdVofTGcpUGJqhLZZJm7QcN9/z0jrQj8BbkEz1x+rTns17mMAlhYk31vovZ4nw X-Received: by 2002:a02:9109:: with SMTP id a9mr7142691jag.93.1621361437997; Tue, 18 May 2021 11:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621361437; cv=none; d=google.com; s=arc-20160816; b=BYqzUjKkec4FfTb2rr69j9pihM8UT7hvH+XLwnO9r6O6YIIUXtJHt8TSwb2ZkUrctA z1e2C+qUWsNhMxCl1dHMgTDmiAGvTYtt5Hpj7bLu8Nr6Z2FlEbsESZAhpS+DDZVX4pDc W8cYuIHyqEav7k1AXhY1mI0fXGn0ZZ0LTwTFAKhT64FPHYr7+HHb/LwbqdPR6D6sErRp 2V5aQkY61pg9Cpdfa+RJa9ghAAB9GKF8JMugZx8KkS0VxieRHjmHPbVxA02aDP07ovF/ xAOwOcvI5OC3OSIAm684Ve1TIudLR9tYMqzt/M+S2sw5CI/g9PQ1zxVcPOOayja4AP1O E95g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mGO53JHv02ta80ynzEaNZeaeozRpD9BDyvLTRx3veBc=; b=ku//I0bATW0gPZ8G71Ns3PV04gD/7HPGekY9cjvmdkryw938jDcj5cToo3JlSxsISJ Gn8+n+LedYhpJ66nWd16liTLceAXh4Yr5feNtltq8cbSdL6g2X8bjZbOLWB8MLIGfKAT pwAm3jxp8pW+DOdQ1zzJq+C2u5Sg4y2GQ26RbOMp2YpfucXKeYpfZucgYVgBVXcF9IAb TLH5uTi88IU96RxjqpBgUhoYORilXIGWoHlw/xQ3hobrIwXZ7rjLzkGqYFNBjBJiR5L8 HBYVt+g0qD8z7UHDaV0s/+fO+E7aDYpHO30UeT1lei76atZpNyqy73blRi5prri79mJi D9ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EdOCNFKO; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si6436870iog.60.2021.05.18.11.10.25; Tue, 18 May 2021 11:10:37 -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=@linuxfoundation.org header.s=korg header.b=EdOCNFKO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242367AbhEQQLJ (ORCPT + 99 others); Mon, 17 May 2021 12:11:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:36780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245133AbhEQPrp (ORCPT ); Mon, 17 May 2021 11:47:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7A54C61955; Mon, 17 May 2021 14:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262685; bh=tACtzJn1iPfTDrNLHptdgMfimPbPiD8fZaQVHI01zvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EdOCNFKOkqD/BclnLiM/WHP8obsOKs/naiqIGIr2YqUEbGwUforZ+nEK+JqV2hruL EOibodUVu0mOMQuYT8THfinCCJ5By8FytFhV9gw8sZpR9T431zVVL7ALCM/bsGdrn4 U9309YipYG+jRqC6ilMN/+9nEUHdQxSrV6M7vnJw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Wolfgang=20M=C3=BCller?= , Ashok Raj , Lu Baolu , Joerg Roedel , Sasha Levin Subject: [PATCH 5.10 261/289] Revert "iommu/vt-d: Remove WO permissions on second-level paging entries" Date: Mon, 17 May 2021 16:03:06 +0200 Message-Id: <20210517140313.931565813@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit c848416cc05afc1589edba04fe00b85c2f797ee3 which is eea53c5816889ee8b64544fa2e9311a81184ff9c upstream. Another iommu patch was backported incorrectly, causing problems, so drop this as well for the moment. Reported-by: Wolfgang Müller Cc: Ashok Raj Cc: Lu Baolu Cc: Joerg Roedel Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/intel/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -2362,9 +2362,8 @@ static int __domain_mapping(struct dmar_ return -EINVAL; attr = prot & (DMA_PTE_READ | DMA_PTE_WRITE | DMA_PTE_SNP); - attr |= DMA_FL_PTE_PRESENT; if (domain_use_first_level(domain)) { - attr |= DMA_FL_PTE_XD | DMA_FL_PTE_US; + attr |= DMA_FL_PTE_PRESENT | DMA_FL_PTE_XD | DMA_FL_PTE_US; if (domain->domain.type == IOMMU_DOMAIN_DMA) { attr |= DMA_FL_PTE_ACCESS;