Date: Mon, 30 Oct 2017 18:32:16 +0100 From: Peter Zijlstra Message-ID: <20171030173216.72y673m32gra4b55@hirez.programming.kicks-ass.net> References: <1508631773-2502-1-git-send-email-alex.popov@linux.com> <1508631773-2502-3-git-send-email-alex.popov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [kernel-hardening] Re: [PATCH RFC v5 2/5] gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack To: Alexander Popov Cc: kernel-hardening@lists.openwall.com, keescook@chromium.org, pageexec@freemail.hu, spender@grsecurity.net, Ingo Molnar , Andy Lutomirski , tycho@docker.com, Laura Abbott , Mark Rutland , Ard Biesheuvel , Borislav Petkov , Thomas Gleixner , "H . Peter Anvin" , x86@kernel.org List-ID: On Mon, Oct 30, 2017 at 07:51:33PM +0300, Alexander Popov wrote: > When the thread stack is exhausted, this BUG() is hit. But do_error_trap(), > which handles the exception, calls track_stack() itself again (since it is > instrumented by the gcc plugin). So this recursion proceeds with exhausting the > thread stack. Add a __attribute__((nostacktrack)) on it?