From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id 680426B0025 for ; Fri, 16 Mar 2018 16:55:51 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id q6so2644700pgv.12 for ; Fri, 16 Mar 2018 13:55:51 -0700 (PDT) Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id d8si5592449pgt.246.2018.03.16.13.55.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 13:55:50 -0700 (PDT) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) (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 B41BC2183B for ; Fri, 16 Mar 2018 20:55:49 +0000 (UTC) Received: by mail-io0-f180.google.com with SMTP id h23so14123957iob.11 for ; Fri, 16 Mar 2018 13:55:49 -0700 (PDT) MIME-Version: 1.0 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 Message-ID: Subject: Re: [PATCH 12/31] x86/entry/32: Add PTI cr3 switch to non-NMI entry/exit points Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: 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 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.