Received: by 10.213.65.68 with SMTP id h4csp632489imn; Fri, 16 Mar 2018 13:57:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELuZvxeBc34eeoFEct1SllU6GRANVpoFeVZRnH019NurwJ47Axj2bQE292fRPMBJ1Y/Tu9JJ X-Received: by 10.98.52.133 with SMTP id b127mr2781250pfa.17.1521233834956; Fri, 16 Mar 2018 13:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521233834; cv=none; d=google.com; s=arc-20160816; b=K6BC+lGsAB83FEVG94vV+PENlRx3VtvN5ArW+/8Aav1v49SBv41Nzt6e6bLwpMD0yw WZYTjBoBa41MvdhNfDxSJNk2tHY4XMgmrxBSvqNLWGV7VRsApc0ugfr4p5/MSrAivqQu tyUJ2V0al7FPzDovWTXtlEIEbE6JMb9Frf3EuM4+cyw421VQ2YTZF1wWZtaMjqA9RVD3 WsEZeOCT6BqKVd94h4wfcIrD5Jh3tBirtWZm4tH5uhx1x6vLeqSpBoELmJe4Gq5aU5EM +l5WBn+wbZFvM0k0PhdFhFDATAOMUJ7Jv7Pfce3jGnHV9/TyFTRsX0yt/poZogzUr5bg uFKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=41yrR9n2TaFIZsjH88N0P4juVQjIGUBRRROPHTSCJhg=; b=vp+FGc8Gg3q1zR/ajeem6RdBndhZhVE+VOmb2K6fCGb8Vk1UuI22Yt+EbHwnxfak4a S+4wf36Uq4A8ECKbk6CUiYx5tlDrMrKGPQQcAYIkXKP0vcvhGRTqyqSFdEFtZ5TXG5GN S7y1/XdP2OYKESe3VsgSPwtNWFfgkMXaA/4WjOvpuN0+uOrKZo8Ub+I/ldCG3I0ahKfL CtEJkWZX2hOE9BXcm4xRJn908IdUAcicsenvWLz6nIYtHK8WEqqlbDj9AwkrfpdEpo4O 1jYH4HuC8AsopV4lVfirfu8lCz0lPgDirN9Tz7+DfxsYct5/AjIDeblbG8Op0K2PvF/3 abAA== 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 i3-v6si6927460pli.274.2018.03.16.13.57.00; Fri, 16 Mar 2018 13:57:14 -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 S1751843AbeCPUzv (ORCPT + 99 others); Fri, 16 Mar 2018 16:55:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:42624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbeCPUzu (ORCPT ); Fri, 16 Mar 2018 16:55:50 -0400 Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B16C32183A for ; Fri, 16 Mar 2018 20:55:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B16C32183A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org Received: by mail-io0-f176.google.com with SMTP id e30so14147919ioc.3 for ; Fri, 16 Mar 2018 13:55:49 -0700 (PDT) X-Gm-Message-State: AElRT7GaKXIAPUrLD+CHuRDfw858MmvBNHJZZ2G/Oi+7qQhGDIpZQj2J znxwxHhEN+tITahZ7S7hvSXkvVN3vaHqSEC9hqm0GA== X-Received: by 10.107.40.73 with SMTP id o70mr3386041ioo.6.1521233748950; Fri, 16 Mar 2018 13:55:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.137.101 with HTTP; Fri, 16 Mar 2018 13:55:28 -0700 (PDT) In-Reply-To: <20180302091049.GP16484@8bytes.org> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> <1518168340-9392-13-git-send-email-joro@8bytes.org> <20180301133430.wda4qesqhxnww7d6@8bytes.org> <2ae8b01f-844b-b8b1-3198-5db70c3e083b@redhat.com> <20180301165019.kuynvb6fkcwdpxjx@suse.de> <20180302091049.GP16484@8bytes.org> From: Andy Lutomirski Date: Fri, 16 Mar 2018 20:55:28 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 12/31] x86/entry/32: Add PTI cr3 switch to non-NMI entry/exit points To: Joerg Roedel Cc: Linus Torvalds , Brian Gerst , Joerg Roedel , Waiman Long , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "the arch/x86 maintainers" , Linux Kernel Mailing List , Linux-MM , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 9:10 AM, Joerg Roedel wrote: > On Thu, Mar 01, 2018 at 10:38:21AM -0800, Linus Torvalds wrote: >> Note that debug traps can happen regardless of TF, Think kgdb etc. >> Arguably kgdb users get what they deserve, but still.. I think root >> can set kernel breakpoints too. > > But that seems to be broken right now at least wrt. to the espfix code > where there is no handling for in the #DB handler. Can userspace really > set arbitrary kernel breakpoints? > As far as I'm concerned, I don't try to support kernel debugger users setting arbitrary breakpoints in the kernel entry text.