From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbcHOQwm (ORCPT ); Mon, 15 Aug 2016 12:52:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbcHOQwl (ORCPT ); Mon, 15 Aug 2016 12:52:41 -0400 Date: Mon, 15 Aug 2016 11:52: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 42/51] x86/unwind: create stack frames for saved syscall registers Message-ID: <20160815165238.6bwekwqdbdxjvfbk@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.30]); Mon, 15 Aug 2016 16:52: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 01:23:11AM -0700, Andy Lutomirski wrote: > On Fri, Aug 12, 2016 at 7:29 AM, Josh Poimboeuf wrote: > > The entry code doesn't encode pt_regs for syscalls. But they're always > > at the same location, so we can add a manual check for them. > > At first I thought these would be useless (they're the *user* state > and aren't directly relevant to the kernel), but then I realized that > they could be extremely valuable: they contain the syscall args. Yeah, that's what I was thinking. I'll add that justification to the patch header. > Do they display in OOPS dumps? Yes. > It might be nice to add orig_ax to the regs display too so we get the > syscall nr as well. Hm, good idea. I'm surprised orig_ax isn't already being shown since it could be useful for exceptions and irqs too. -- Josh