Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753498Ab3JaIWi (ORCPT ); Thu, 31 Oct 2013 04:22:38 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:35530 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553Ab3JaIWf (ORCPT ); Thu, 31 Oct 2013 04:22:35 -0400 Date: Thu, 31 Oct 2013 09:22:30 +0100 From: Ingo Molnar To: Masami Hiramatsu Cc: Fenghua Yu , Seiji Aguchi , Ananth N Mavinakayanahalli , x86@kernel.org, lkml , "Steven Rostedt (Red Hat)" , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov Subject: Re: [PATCH -tip 1/2] [BUGFIX] kprobes/x86: Prohibit probing on debug_stack_* Message-ID: <20131031082230.GA8944@gmail.com> References: <20131030105334.7997.750.stgit@kbuild-fedora.novalocal> <20131030105341.7997.48258.stgit@kbuild-fedora.novalocal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131030105341.7997.48258.stgit@kbuild-fedora.novalocal> 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 Content-Length: 922 Lines: 25 * Masami Hiramatsu wrote: > -int is_debug_stack(unsigned long addr) > +int __kprobes is_debug_stack(unsigned long addr) _Please_ add a __noprobes method, for new annotations. Naming it '__kprobes' is actively confusing, as it suggests that the function is somehow positively involved with kprobes support. Instead it should the noinline/notrace pattern. I complained about this before and not much happened on this front. We might not want to convert the whole kernel straight away, but for _new_ annotations there's no excuse not to name them properly. Lets phase out __kprobes, and use __noprobe from now on, okay? Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/