Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2270596ybd; Mon, 24 Jun 2019 03:39:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0T7Sw1PcMm0mKQoTY58TUEnIoRA64zhhX1kpdWTomaQK1QWSqYDPEli8RzTo3jF/+tLI0 X-Received: by 2002:a65:5347:: with SMTP id w7mr31959250pgr.375.1561372765247; Mon, 24 Jun 2019 03:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561372765; cv=none; d=google.com; s=arc-20160816; b=XECuKmQc2GbimUm7PPDprlFGAEbGZjeZlMx2eSrdyE3QuDv7Rxdi0px3yHBd86Aed4 AN35m1wdCI//qh1wN7aUdj4qQ7IzV6sThoN5VEt6P3B+ZTfP8qCQQJ3AVT9zciuh5dWK mKsCn4dRgKKJ1Kfer8cuSdZqWPSHpgcGjl4rGwJf5CY2uDTs2ySQuQlfKOUzh8U/HdxX y2b/GeITrz6uZlLjO1DnHX0fL8/6t7mawOE2EZ1XmvP4N2N9xIeOxzGuZB2Numxo2WkY tHhfdA0Yk5NNr06Rn2ZkDMIKgpQMOCfeiw/KpqnDVkjSFHgaA1NH7BSERvZnJhE2LRUR w8eA== 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=1HBf8DMZ7yp/vkWFD3oYwHz4gM8LBOt+2J/JfaxQbQU=; b=B/d3/NhBe/CqDUsza1B76el/QAshQ7GFyHju1YX3L/kTqahjM27rpzhw26lngSLnUr 3FpmPxm8EicuUInpyO8EYYIj8BJJOxAQ2/Z8eXkElUzRkD/sWXXh8uAvLvpFFNlN0ru2 3yy59abPw9spBVraeAS1D4piCUoaAK4CbRm9T/Tw/sgP6wyy1Jp7GT2yid7wH7HV2bqH BXNinUICosMDqfwUxhenyJslVYx8vH0h6ToUT++KN0r9Df69gQvMsCkgibbYwk4ZgfB1 jk1MirPSOZeojIOVQDFUTrK0AhwRsAgLk7Ke2Dvpthv5UFBWT07X8BnNOHIlvC64GxlF 0qPQ== 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 gn3si9198227plb.321.2019.06.24.03.39.08; Mon, 24 Jun 2019 03:39: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 S1729097AbfFXKhd (ORCPT + 99 others); Mon, 24 Jun 2019 06:37:33 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35607 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728831AbfFXKhd (ORCPT ); Mon, 24 Jun 2019 06:37:33 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hfMLm-0006Yf-SY; Mon, 24 Jun 2019 12:37:27 +0200 Date: Mon, 24 Jun 2019 12:37:25 +0200 (CEST) From: Thomas Gleixner To: Jan Kiszka cc: Ingo Molnar , Borislav Petkov , x86@kernel.org, Linux Kernel Mailing List Subject: Re: x86: Spurious vectors not handled robustly In-Reply-To: <1565f016-4e3b-fa89-62e5-fc77594ee5aa@siemens.com> Message-ID: References: <1565f016-4e3b-fa89-62e5-fc77594ee5aa@siemens.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 Mon, 24 Jun 2019, Jan Kiszka wrote: > On 24.06.19 12:09, Thomas Gleixner wrote: > > If it is a vectored one it _IS_ acked. > > > > inc_irq_stat(irq_spurious_count); > > > > /* see sw-dev-man vol 3, chapter 7.4.13.5 */ > > pr_info("spurious APIC interrupt through vector %02x on CPU#%d, " > > "should never happen.\n", vector, smp_processor_id()); > > > > and the vector through which that comes is printed correctly, unless > > regs->orig_ax is hosed. > > ...which is exactly the case: Since that commit, all unused vectors share the > same entry point, spurious_interrupt, see idt_setup_apic_and_irq_gates(). And > that entry point sets orig_ax to ~0xff. Bah. Of course I did not look at that ... /me goes back to stare at the code. Thanks, tglx