From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932771AbbDJXSe (ORCPT ); Fri, 10 Apr 2015 19:18:34 -0400 Received: from one.firstfloor.org ([193.170.194.197]:45880 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753688AbbDJXSc (ORCPT ); Fri, 10 Apr 2015 19:18:32 -0400 Date: Sat, 11 Apr 2015 01:18:31 +0200 From: Andi Kleen To: Andy Lutomirski Cc: Andi Kleen , Andi Kleen , X86 ML , Andrew Lutomirski , "linux-kernel@vger.kernel.org" , Steven Rostedt , Borislav Petkov , Jan Beulich Subject: Re: [PATCH 4/8] x86: Add support for rd/wr fs/gs base Message-ID: <20150410231831.GF2366@two.firstfloor.org> References: <1428681033-1549-5-git-send-email-andi@firstfloor.org> <20150410202132.GQ15335@tassilo.jf.intel.com> <20150410204125.GS15335@tassilo.jf.intel.com> <20150410225256.GY2366@two.firstfloor.org> <20150410230546.GA2366@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2015 at 04:15:39PM -0700, Andy Lutomirski wrote: > On Fri, Apr 10, 2015 at 4:05 PM, Andi Kleen wrote: > >> One might argue that this code serves no purpose, but it's there, so > >> we had better keep our per-invocation usage of DEBUG_STACK within 4k. > > > > Only if you run NKLD. I doubt KDB or GDB support nesting. > > We can ask Jan if he still uses it. > > You can trigger these things in various ways with kprobes, > single-stepping, and user-space watchpoints. These things can > definitely nest in interesting ways. Whether or not the IST shift > mechanism is involved if they nest is a complicated question, because > there's also the "debug" IDT in play. Yes we need it for (old style) kprobes in those paths. For user space it shouldn't matter. -Andi -- ak@linux.intel.com -- Speaking for myself only.