Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3102740yba; Mon, 8 Apr 2019 11:09:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJFaOp+nLzwNG4tC0uYXpJmjknvsYp4YxQQow3h4c4JOtUkAkEMw9GPM/fOBmx4PA8AEP6 X-Received: by 2002:a63:2983:: with SMTP id p125mr30297250pgp.262.1554746961208; Mon, 08 Apr 2019 11:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554746961; cv=none; d=google.com; s=arc-20160816; b=XmKey1rqB9i1yvvH5Pm89s6DsBwc2goVV4CNFx8nRzF+GAcEIgPpGIz14QV9jfEJzC FXb0YIpefwzq0WGhx+jcgnunpI6O4LR2S7dWix4PGKDCCjGdyQaNn7QPi3VdAtBeoIoa sH+SDIV5ff2wnYKYDpOLyxmx8sBU6o44xWC/wS5NNiAM7LQ6m73JZ0O+Y3g7U7fKR7Ye WcCzqTqXNbqfuQ7pTrpp5/MEqjc8gtlBVqksef/i5xhsUSq4bZyCpB/snbTs/DzCAwd2 DWL+MqVMLNbZw1bEjEmcJ71gMq8MYwiscSiOK55PPYvvCB9mMXVrd448aKI7tglWUU6t ilKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KnglxTi58N/5mc9WaQz0FeGZ9jpes1i1mxMUqY0LQo8=; b=KBKA8MxdFbSAJplXG/El4ZcpWHot6Xk2VuFsxF4JfelPntVXglCCiAMd8u2hUlcO7v zC1BCDT3PCRtovMnaGDYkbbClAz14iT/iooHnG8IXlDSvz8GHVQgtQCYEcoTQTWeOaS8 2fyXZASI+Zjz48aPBRchaGMCOtMsKbkoAZCHxMX1k63wWAs5mIuDw2TfT7Cr4MsYpIuI zug3GnFg4o3jDlQriUvoMT/+RTI8nk66rZ8sl7NeW/CWRJ+hqS/JJGvvz9gXY4rBeJjL oIe+z9HG4Go4veCVm5MOua/tf+xYMkpSR13/qDyNR3g7j9Fen+jQNtDtr/Nil2z/ruDb M9HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UV4jNJDk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si9532730pfh.205.2019.04.08.11.09.05; Mon, 08 Apr 2019 11:09:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UV4jNJDk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727776AbfDHQSO (ORCPT + 99 others); Mon, 8 Apr 2019 12:18:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:57302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbfDHQSN (ORCPT ); Mon, 8 Apr 2019 12:18:13 -0400 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1C5521874 for ; Mon, 8 Apr 2019 16:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554740293; bh=7Nu9QXvcI0vEF10mrCEynsPN8ROv6UmoVrwf8Folv9w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UV4jNJDky2SjzQFhe1zoqjj57aiUKZ7K27mCBSIReawC/43mWhYpKymoWXrR9UJBA gHKcuyuPhMsYAV7h/MJUkdWvsVv2jzAc87Kun+n6P43Bs/Mhf6WvL0SMEh8eUK8aBB RYQLncI67mSplO1metmFZ6ibUX6oADCVv3wD+elo= Received: by mail-wr1-f48.google.com with SMTP id k17so17092581wrx.10 for ; Mon, 08 Apr 2019 09:18:12 -0700 (PDT) X-Gm-Message-State: APjAAAVdJBsDFBXUuFdkH5GFMucozcw8SFHUFsotmPVmZ6m3NZFm3bIJ cJ3081BzX11YObqrWnod0SLx938dXv5E0EJFE7perA== X-Received: by 2002:adf:efc1:: with SMTP id i1mr19176947wrp.199.1554740291374; Mon, 08 Apr 2019 09:18:11 -0700 (PDT) MIME-Version: 1.0 References: <20190405150658.237064784@linutronix.de> <20190405150930.967389183@linutronix.de> In-Reply-To: From: Andy Lutomirski Date: Mon, 8 Apr 2019 09:18:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V2 28/29] x86/irq/64: Remap the IRQ stack with guard pages To: Thomas Gleixner Cc: Andy Lutomirski , LKML , X86 ML , Josh Poimboeuf , Sean Christopherson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 7, 2019 at 11:46 PM Thomas Gleixner wrote: > > 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. > > Whoops! I could add a save_stack_trace_from() or I could add a "caller" argument to struct stack_trace. Any preference as to which looks better? The latter seems a little nicer to me.