Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1866738yba; Sun, 7 Apr 2019 02:26:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+0vocTMptoTa/LQ9ZY21KnORbJeZBidoVgGkafHdxk0J0XVAoEM8Vz4a+E7IXRSe5qKs6 X-Received: by 2002:a63:30c5:: with SMTP id w188mr21824161pgw.76.1554629185954; Sun, 07 Apr 2019 02:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554629185; cv=none; d=google.com; s=arc-20160816; b=KP6Oq0irN2ZkWr1tGmrrd1/XAJ8nwGwVXOHtdyjj0gLlNmzTxEF3LZBDzkuKoHFlGe qOX4wJCjhIssUPTEu5hRxsl9VZEb01B5QyknB4yUSdRE9JhTMolmAM3kMI7507LSgqQ4 cAlRZUVWHz4gJPbEc+MOcVzh4TLBF1v15mH1Mk7UcqI4LxUgWFr1k4tneIpfRYWiQocd zTlrI+DR4HeZREoEAunKLhe7FGUU2j2Nz4ymLxT+3oUF92uYSmdev8U7U6QaQ3lYI4Fs 05FGPs0fnSPuXnzUJwPPugo9qC5VcYnYgiJuWwfeN+b+rdxADdpIJ4RIYABntW1HeWwV lRsg== 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=9OQXaOkqMh2ImbnpO66v4otCJ7K5z0gk844qPhjG2Vg=; b=mRuShm0a5kEnAvcPMzYQXoJdQ7lCUr0u0Q0styqcLWQbPENDk0iKbnxWj9AVc+zBoN TDMQ+Jqe8u82CJGLX9xR3NvIOQSoTUYf3VT/ZnhynY37Z77dhlqwT7qUEjg5ANZyQlvb 9UJ2C/hrDacpJB0An8zvEtRF2kFGwdRbkVXeAHoMkpVtLTnPW+/Fjv+vCxRRz8mQ9lAP ulmJ720Y6NrNKaXm1ZsYUhfd0P1UQZDajpdd0rtIxrZ7v1qV2R6j428dF9wXebBK9qdA dekfgFxWPChvB5t8Fk9xynGCY/5ZFqzX9YH7/S6ethPLybrjZMrnZGO1BGTiTz6kX4K6 3ulg== 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 m1si19333920plt.397.2019.04.07.02.26.10; Sun, 07 Apr 2019 02:26:25 -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 S1726335AbfDGJXl (ORCPT + 99 others); Sun, 7 Apr 2019 05:23:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50721 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfDGJXl (ORCPT ); Sun, 7 Apr 2019 05:23:41 -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 1hD41b-000055-3z; Sun, 07 Apr 2019 11:23:39 +0200 Date: Sun, 7 Apr 2019 11:23:38 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski cc: LKML Subject: Re: 8b275b3754 ("x86/irq/64: Remap the IRQ stack with guard pages"): BUG: unable to handle kernel paging request at ffffb659000a1000 In-Reply-To: Message-ID: References: <5ca84952.hpEqUp6kap0tafzR%lkp@intel.com> 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 Sat, 6 Apr 2019, Andy Lutomirski wrote: > I haven't spotted the actual bug yet, but the faulting instruction is: > > 2a: 65 8b 35 09 ca 75 63 mov %gs:*0x6375ca09(%rip),%esi > # 0x6375ca3a <-- trapping instruction > > This seems to be faulting just above the top of the stack (the thing > in RSP), so I suspect that there is some path that is shoving the > remapped value into GSBASE, which is wrong. > > Also, FWIW, there was some reason that I initialized all the virtual > mappings for all possible CPUs early. I don't remember what it was, > and it may not have been a good reason, but I put at least some > nonzero amount of thought into it :) There is absolutely no reason to have irq stacks before init_IRQ(). 32bit uses at runtime allocated irq stacks for years. If the CPU takes a device interrupt before that, then there are way more things which explode than just the irqstack pointer being NULL. Thanks, tglx