Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2589195yba; Sun, 7 Apr 2019 23:47:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0A6MT2xuujZgJz/1GKpHGDK8grTPbt684kj0w7rv20qRPMjjlj1gKWxMh3Y5LuKTYCKWg X-Received: by 2002:a62:b61a:: with SMTP id j26mr28272383pff.203.1554706031828; Sun, 07 Apr 2019 23:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554706031; cv=none; d=google.com; s=arc-20160816; b=vRuDaVP50vXhiYYfs/MNZSlY+CV4tyIam5KijeZgNo6So05GN0kJzXQOmwBXw+KGZ0 MV3GslG6SDA9wdxIbzIOJ3G5Z+t96qKRNadUWXzqfJmexp4tUx/hZXHV49m9W40X2KFU qiCxpmITsb3crQNDXC7Mbi4J6VCVjHe9o2GbTCYmtVXhZoTu1XlLeFSSRR3D33/AHP+w mFu5xpNNXPtO2y2K1WBDfiX7zzgMuizh/uAGPmQ0MmL5lyQEBXazZ2G5E9bwzDBgeJa4 gsltAYmoXHZ9ce7n0CMSrJiIVgXD+Yx3Hv1DtjA7gV6UcZMWhg4uFyXjSTyvBepRuAtE Dp5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=3gmeXXARTyO0PkMZBAyhTx2p1BYnSeRYxs69jvLSQbE=; b=adnWPibgrqmjpd6Xt4OxOA1Wc/5ykZiVR6LGmHG6kA7TP4gQlR4b0F58zEZlq/fKQQ ZK3jaGUwsbTyHrh72/fyiuABsPtSmBXQnIV8dJIzQ9MEUYQ3Brtl6MaCQkHq1y1ZBcCP cq2/0W3jx7S9ePyFmAkLT0OBV3S25jX8QLkfHTOzQvY9ISXppjkiDe0nco6GkR1Ty6/f XGlhRiIlDRowGS4wDodh71dXbpkJOkSxcE4gcR94FdwUbIm2wUabZaXY36OuvOFVEKix VK/2bl0yeugQa48p/76Ay5Nt+qRHn49nYr7EyJilOwPi6mB7lBYKoD3KdRD7fN7aAhIO 08kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f32si26732766plf.24.2019.04.07.23.46.54; Sun, 07 Apr 2019 23:47:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726349AbfDHGqS (ORCPT + 99 others); Mon, 8 Apr 2019 02:46:18 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51380 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbfDHGqR (ORCPT ); Mon, 8 Apr 2019 02:46:17 -0400 Received: from p5492ee6e.dip0.t-ipconnect.de ([84.146.238.110] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hDO2p-0003OD-K9; Mon, 08 Apr 2019 08:46:15 +0200 Date: Mon, 8 Apr 2019 08:46:15 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski cc: LKML , X86 ML , Josh Poimboeuf , Sean Christopherson Subject: Re: [patch V2 28/29] x86/irq/64: Remap the IRQ stack with guard pages In-Reply-To: Message-ID: References: <20190405150658.237064784@linutronix.de> <20190405150930.967389183@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 7 Apr 2019, Andy Lutomirski wrote: > On Sun, Apr 7, 2019 at 3:44 PM Thomas Gleixner wrote: > > Actually we have: save_stack_trace() > > > > Like I did here: > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=WIP.x86/stackguards Kinda, but what that code wants is to skip any entry before 'caller'. So we either add something like save_stack_trace_from() which is trivial on x86 because unwind_start() already has an argument to hand in the start of stack or we filter out the entries up to 'caller' in that code. Btw, your patch will explode badly because stack_trace::entries is just a pointer. It does not provide a storage array :) Thanks, tglx