Received: by 10.223.164.202 with SMTP id h10csp117687wrb; Mon, 13 Nov 2017 14:47:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMa7+VTG229E6zGRa3NbBTXhJWOA8H6uUXPiuUPmK0NNh1uJ1VJH/UfYp3WKij3P/DB90vt+ X-Received: by 10.84.218.72 with SMTP id f8mr10635303plm.143.1510613237815; Mon, 13 Nov 2017 14:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510613237; cv=none; d=google.com; s=arc-20160816; b=K3/I22dgFOZH5IF2bUWuU3YV4zIFu1tgXvZgf2N8XVpW3kjpb8gkHWoHFPhLxe1JsL UFMA7eYb7wMa6zncewmL7xzRJx/OLf8fuD5j9eDk6HJJdrUUMfngmITZGBVyEc6nx0gD GHjzCEI4Wg6vdKAdvpEEYX6FrSfLZf2ifP9rQ+IooKGXibwoaFDI04malTNFpZUV6bTY ZQu2jZn80/SVmRV5yFbz9bfI5DOydl9LZVi0+pyTucI9c9wUqXJNMZ3m2xFMTA8NMMHN jRPeym5p30hKYACp39WlqQjlK5tDV+7ERDFlnh/YvVyjBP4LU8zBLgcxyjQ8F6A69m0Z Iyow== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:cc:references:to:from:subject:arc-authentication-results; bh=KWyt0CyxXNpM45B0FJW9Djrvs3SIlWNXcD4S7VGQg38=; b=LLlByIc4zFQLORvrqKkj2Q5iXsHC2Hjn96QCm/NqtG+U+OqGemEue149od/kC1XvOQ lScT3Wy/iBR+lPtVHxAL58iBAHi9ShWI1vVFfnPgZ0fcGaEgIBfVhmDOzRMNUtt+W3ah gL4bXpbzj4+KD9V+0XxFmWYOwtwnCu0Rhl5riKRfTvrNSPcXZdFlaBk7gcxfFjYI9h5x r5EeOw79Q3hS6hXEtyf/0QEcToPoDcNw40YNDc23njqdBB8f64eB9+NRjQKPTYe9Dl+S Rf7mMipNl2+CIkXZzmRtceXPV5WecD3sR1r0GKxsWZohRQvjqjnpm/uhCWWRXoPUl3Po 1Tsw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si14172478pgp.735.2017.11.13.14.47.04; Mon, 13 Nov 2017 14:47:17 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbdKMWq3 (ORCPT + 89 others); Mon, 13 Nov 2017 17:46:29 -0500 Received: from mga06.intel.com ([134.134.136.31]:32433 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751376AbdKMWq2 (ORCPT ); Mon, 13 Nov 2017 17:46:28 -0500 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2017 14:46:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,389,1505804400"; d="scan'208";a="1885956" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga003.jf.intel.com with ESMTP; 13 Nov 2017 14:46:27 -0800 Subject: Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO) From: Dave Hansen To: Tycho Andersen References: <20170907173609.22696-1-tycho@docker.com> <20170907173609.22696-4-tycho@docker.com> <34454a32-72c2-c62e-546c-1837e05327e1@intel.com> <20170920223452.vam3egenc533rcta@smitten> <97475308-1f3d-ea91-5647-39231f3b40e5@intel.com> <20170921000901.v7zo4g5edhqqfabm@docker> <20171110010907.qfkqhrbtdkt5y3hy@smitten> <7237ae6d-f8aa-085e-c144-9ed5583ec06b@intel.com> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-hardening@lists.openwall.com, Marco Benatto , Juerg Haefliger , x86@kernel.org Message-ID: <2aa64bf6-fead-08cc-f4fe-bd353008ca59@intel.com> Date: Mon, 13 Nov 2017 14:46:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <7237ae6d-f8aa-085e-c144-9ed5583ec06b@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/2017 02:20 PM, Dave Hansen wrote: > On 11/09/2017 05:09 PM, Tycho Andersen wrote: >> which I guess is from the additional flags in grow_dev_page() somewhere down >> the stack. Anyway... it seems this is a kernel allocation that's using >> MIGRATE_MOVABLE, so perhaps we need some more fine tuned heuristic than just >> all MOVABLE allocations are un-mapped via xpfo, and all the others are mapped. >> >> Do you have any ideas? > > It still has to do a kmap() or kmap_atomic() to be able to access it. I > thought you hooked into that. Why isn't that path getting hit for these? Oh, this looks to be accessing data mapped by a buffer_head. It (rudely) accesses data via: void set_bh_page(struct buffer_head *bh, ... bh->b_data = page_address(page) + offset; From 1583991148926147877@xxx Mon Nov 13 22:21:16 +0000 2017 X-GM-THRID: 1577903505730930323 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread