Received: by 10.223.185.116 with SMTP id b49csp8422470wrg; Fri, 2 Mar 2018 01:14:16 -0800 (PST) X-Google-Smtp-Source: AG47ELthCGtt/yqCI8sgmaOE4NuI2OXwBPwjy7Jk6SoqqvL7w4rGa9bz3hKUgR5Rt/8TkaB4mQu1 X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr4606845plc.263.1519982056860; Fri, 02 Mar 2018 01:14:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519982056; cv=none; d=google.com; s=arc-20160816; b=bhV+W2H+wBkcP7+f9wIY8wfAfb7gXngoKKY/5HVLH87wnaBd1a7ixpU8n7mJdlXR1l U4pM1UEkb9F9D79AMzN4DdXaxs30ULFELw51iXNcM+/pb1gcDGs7WdLuMrD/O1e3wTur gWIcc0MIm/Xn3fg19SAgtSpRs1CZdSOcXMIcphix51tySo/fiHAIKY4uYe4vADtMC/e2 JfQVRw52YXSlLszDsGKfGyTWQWKS7x1zZvVQYLoQv9pXNXxgOpMD33f+LdDQIsRloNCn IUpCYQ4XLhYLAHJPqVdlm2gb3j/4g4dqCi37TNsYTZ7NLNsITYtE0aEXhqPzyqQvbDn1 zZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QOGtQ77Id52+K+JjEVEiaNSdZ4g9u5jInb+GhtTO97g=; b=S8wlMTslJKTAJqGRjzJCMNaSv8wGkeIHrqeBhMIHfl/U2Y5kUyB4csgYxnZBnOX/sD ur+WRefmIoXZI0DQeTyX1BbPB0n5f7x4WeafdEDBjxrIrzasx0+09w212QAEkPQHTlUS dgDMwtBMGg8I6Kmk+OSzaPWYxcGKK5OLxybT4wL6VTV+587Eto9jSce0S3eG3y8SS54n VaUwk63ntzHKRklx3OUXpX+igik7Pup7jNTZWEThqiv7siIqjBOKHED3t2f+9+UaqDS+ KSa9uJK/BYYgw0g255/GgtIxycSXwtqW2Wu4aooPPOxX64Ea1kLXjJTEmb7yXKU08pa2 qpJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=OodDZoQk; 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j186si3745142pgc.175.2018.03.02.01.14.01; Fri, 02 Mar 2018 01:14:16 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=OodDZoQk; 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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425309AbeCBJK6 (ORCPT + 99 others); Fri, 2 Mar 2018 04:10:58 -0500 Received: from 8bytes.org ([81.169.241.247]:53726 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425268AbeCBJKv (ORCPT ); Fri, 2 Mar 2018 04:10:51 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id E7EDD59B; Fri, 2 Mar 2018 10:10:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1519981849; bh=I3U7RjW3xfVnujJnEC02C4P5SAY4LvUJDVyRj2uMzJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OodDZoQk4eEX0dCZUMQvmKDdkhzSr4ft97z1SbQIh1eKPvclh0lq3vjcYCyw4STgV W7sjMaHGma8h7luCT1ITAag/8VkT8wmDShzbYhZ1OU6kXx204Sf2DXYeOgg95Mhi9D BKFhClkJGj3li2j6gKSyDQIZXSOXsJY4KkIS40O3HeValN93NX2O0zhVaedlvKTgHN htyd2/AatvcU6MceGOCOdc+OkrSPtqY5sm8CAySwLIzki9WlwpoGqtkrLlxvrWG7P9 Fo0V9TO4cGJ3aKDe+/9FtIESEGBXHY3tNbRskjCRurz6G8HmvgVBjcnMhC5PoHqvnL HHiIm7DKGNqhw== Date: Fri, 2 Mar 2018 10:10:49 +0100 From: Joerg Roedel To: Linus Torvalds Cc: 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 Subject: Re: [PATCH 12/31] x86/entry/32: Add PTI cr3 switch to non-NMI entry/exit points Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Joerg