From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752986AbcHOPcm (ORCPT ); Mon, 15 Aug 2016 11:32:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53882 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbcHOPcl (ORCPT ); Mon, 15 Aug 2016 11:32:41 -0400 Date: Mon, 15 Aug 2016 10:32:38 -0500 From: Josh Poimboeuf To: Andy Lutomirski Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , "linux-kernel@vger.kernel.org" , Linus Torvalds , Steven Rostedt , Brian Gerst , Kees Cook , Peter Zijlstra , Frederic Weisbecker , Byungchul Park , Nilay Vaish Subject: Re: [PATCH v3 31/51] x86/dumpstack: allow preemption in show_stack_log_lvl() and dump_trace() Message-ID: <20160815153238.prejjyfqsn65xcq2@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 15 Aug 2016 15:32:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 14, 2016 at 12:45:35AM -0700, Andy Lutomirski wrote: > On Fri, Aug 12, 2016 at 7:28 AM, Josh Poimboeuf wrote: > > show_stack_log_lvl() and dump_trace() are already preemption safe: > > > > - If they're running in interrupt context, preemption is already > > disabled and the percpu irq stack pointers can be trusted. > > I agree with the patch, but I have a minor nitpick about the > description. The "irq stack" is an actual thing, but the relevant > stacks here aren't just the irq stack: they're the irq stack, the IST > stacks (on 64-bit), and the NMI stack (on 32-bit). The same logic > applies, though. Yeah. Maybe I'll just remove the "irq" qualifier and instead call them "percpu stack pointers". -- Josh