Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2998885imm; Mon, 16 Jul 2018 19:16:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgUK1Xu/BOCanJFxUjtEhaKxsbK55XagS3/2fRJ+RBRzo5BYisPdSayGjxjA+5pVU15kSv X-Received: by 2002:a17:902:8308:: with SMTP id bd8-v6mr19033893plb.329.1531793808879; Mon, 16 Jul 2018 19:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531793808; cv=none; d=google.com; s=arc-20160816; b=XVE0M0AqxQ1WSGVqAI2Le0ulgY45e+5b6Gie8lpwqh18fh7ll7MRE1NeukQbwod2Ez h5GTIWTJKFsCpQTS/tHuXF6ECiSJQH5ptqGfyG1E6n9XCjZErZ5DaaGMWvoJ/FMOda7E 3QrsebEOWbMdO+TeJ1vecUgaTWV9t8PPrae0V1oXQy3w2Q8zRehuYj+n0w6gSCTuMAUJ sIRUxbjx4IVyzoywHlpVqPi/ypdVlFYMDAOqYgwkHds/P6SdVbm5UcHawSOyXpmCQW7X PBXu9LCmA4KEL9V0bc2xoQSdDY/OG4qU3coClhV9H1E2+kk5aJMTxFFY3U5Gh6MX146e Yhrw== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=JPH+v4N8UsK4JKvqNd9kn/EA7DYwy2x4DlmmUK3K5j4=; b=HyWgk5oqnOI584hruoIKA3XY8y9rYevyNeYuW9nSdXQ797sM2AT8rnZBBNkEeozyFX nyJMkWbeHKVtxcoiYuhK1pRWBfJZ7vQCLyNJrcRzTOJh++KSmF4lHM5Qr8P7l8+7JivF ZzFv4OEDiissDKbLvMzga7LK/pH3u2wEssXIKa2yv+pe8x8nqASUy9p/fUI+ofKjfYST Wt5CalG1dzXc9QWaZDEgyDV41j3m05r5cs3lnYc2pEubWaZoO2FU9wXohMk3/S1zxB08 E+k7d7OtNXCwqjy2ku9/57UBaVOq3WhMRGaQ7x9BNz/vbixSfXahqwsMU6ANWmkcyZ88 aZVA== 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 d5-v6si33455471pla.337.2018.07.16.19.16.33; Mon, 16 Jul 2018 19:16:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729854AbeGQCqM (ORCPT + 99 others); Mon, 16 Jul 2018 22:46:12 -0400 Received: from simcoe209srvr.owm.bell.net ([184.150.200.209]:36504 "EHLO torfep06.bell.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729630AbeGQCqM (ORCPT ); Mon, 16 Jul 2018 22:46:12 -0400 X-Greylist: delayed 491 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Jul 2018 22:46:11 EDT Received: from bell.net torfep02 184.150.200.158 by torfep02.bell.net with ESMTP id <20180717020750.ZUCU32387.torfep02.bell.net@torspm01.bell.net> for ; Mon, 16 Jul 2018 22:07:50 -0400 Received: from arcusix ([67.71.42.39]) by torspm01.bell.net with ESMTP id <20180717020750.QKNW26298.torspm01.bell.net@arcusix>; Mon, 16 Jul 2018 22:07:50 -0400 Message-ID: <18439b1a3755a6bfd8f96b1866c328ada1db0aa8.camel@sympatico.ca> Subject: Re: [PATCH 00/39 v7] PTI support for x86-32 From: "David H. Gutteridge" To: Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , jroedel@suse.de Date: Mon, 16 Jul 2018 22:07:44 -0400 In-Reply-To: <1531308586-29340-1-git-send-email-joro@8bytes.org> References: <1531308586-29340-1-git-send-email-joro@8bytes.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.3 (3.28.3-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=2.2 cv=DZT4krlW c=1 sm=0 tr=0 a=/4BQ6POolEllGJf7n1YyrQ==:17 a=IkcTkHD0fZMA:10 a=R9QF1RCXAYgA:10 a=D19gQVrFAAAA:8 a=xGJFdQoOOyYT9RtmLrQA:9 a=QEXdDO2ut3YA:10 a=W4TVW4IDbPiebHqcZpNg:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-11 at 13:29 +0200, Joerg Roedel wrote: > Hi, > > here is version 7 of my patches to enable PTI on x86-32. > Changes to the previous version are: > > * Rebased to v4.18-rc4 > > * Introduced pti_finalize() which is called after > mark_readonly() and used to update the kernel > mappings in the user page-table after RO/NX > protections are in place. > > The patches need the vmalloc/ioremap fixes in tip/x86/mm to > work correctly, because this enablement makes the issues > fixed there more likely to happen. Hi Joerg & *, I redid my testing on bare metal and in a VM (as with my previous testing efforts: https://lkml.org/lkml/2018/2/19/844, same setups and coverage, plus CONFIG_X86_DEBUG_ENTRY_CR3 enabled too) with the pti-x32-v7 branch, and I didn't encounter any issues. The two DRM drivers that were triggering bugs in some of the prior iterations are both behaving properly for me. Regards, Dave