Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2057286imm; Fri, 7 Sep 2018 10:08:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ833scO3SStNOtze4rczlwZeOxJyyXLBdyr8exyoZuh5hndyo++5/lxXOZ7XeMiu/jwWgj X-Received: by 2002:a63:60c1:: with SMTP id u184-v6mr9294471pgb.266.1536340119623; Fri, 07 Sep 2018 10:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536340119; cv=none; d=google.com; s=arc-20160816; b=LcohAK7qZmZP6szMwbek6EkJPNjEjq9iKqMe5wtPs3MvAE/TYNMgrby+/Lb2NhTUPU XVf2W/glMbU5m0qfFe/CMq9FJjI1o3klbo7YJ9qESbdYc9m/sedAdewWvwztFiXKK5Al T3spm4VAG+ev7uNFk3PG1eHjskKwMJ3/e/Sso80sFRGaivqTmqnFjcPAZSzi+n4e6XYW 5tgA4pGlOMOU+7T7vABHWpN30Y3KugedO9LJlKCyNmLx0y8JxucET2lsj5HQ54/f9EiW Y4ydeTQgViTIR6EvLc4+GlDYhqR6lkEKi9C5drg++WCSBfRKYWRE1tj5ToJV9cpSDEeJ /hdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=a5hUQFBEfwTbJEghpWQYCD/xhfJ4kmj2QeaBhiTlEh4=; b=afXGKzzrkJdjyknSNK2FDAJVBQ0JA7W765D0Tuzub9PQyzEzpZh+rGkwsPiwwoIgBc 55ZZl9wcbvueOPTT906d8UshgL33BNa2To118eIPhBlRb8nrO1+3twK1f7IyAUxSWeiO dksrWqvNmbe5IBysRiWCEvC5NFyBsAb2Zc590zDC+JapgpwmALmXJnG87XjnvXYL0gOm V64TLnjA+6/pkCIc/7acy/oG93KVT8UU/QRI+PHk4xhw/sE4vpL1Un8VwiMMhzvGptRf HUXBg947CdagPDT+jiPwXA6dXzOzo3D13Rd9jOAyUMNTze+bO2Y/0amIsPQHZhACDBXs NV0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16-v6si9300107pgl.508.2018.09.07.10.08.22; Fri, 07 Sep 2018 10:08:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbeIGVrR (ORCPT + 99 others); Fri, 7 Sep 2018 17:47:17 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:52239 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeIGVrR (ORCPT ); Fri, 7 Sep 2018 17:47:17 -0400 Received: from [148.252.241.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fyKCB-0003jr-RT; Fri, 07 Sep 2018 18:05:24 +0100 Message-ID: <1536339923.3024.112.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 31/43] mm: fix cache mode tracking in vm_insert_mixed() From: Ben Hutchings To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Dan Williams , David Airlie , Matthew Wilcox , Ross Zwisler , Andrew Morton , Linus Torvalds , Guenter Roeck Date: Fri, 07 Sep 2018 18:05:23 +0100 In-Reply-To: <20180814171519.142204859@linuxfoundation.org> References: <20180814171517.014285600@linuxfoundation.org> <20180814171519.142204859@linuxfoundation.org> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-08-14 at 19:18 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > ------------------ > > From: Dan Williams > > commit 87744ab3832b83ba71b931f86f9cfdb000d07da5 upstream > > vm_insert_mixed() unlike vm_insert_pfn_prot() and vmf_insert_pfn_pmd(), > fails to check the pgprot_t it uses for the mapping against the one > recorded in the memtype tracking tree.  Add the missing call to > track_pfn_insert() to preclude cases where incompatible aliased mappings > are established for a given physical address range. [...] This apparently breaks a number of DRM drivers. The upstream fixes are: 8ef4227615e1 x86/io: add interface to reserve io memtype for a resource range. (v1.1) 7cf321d118a8 drm/drivers: add support for using the arch wc mapping API. They appear to apply cleanly to 4.4-stable. They are included in 4.9 so no other stable branch needs them. Ben. -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom