From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A2B6C432C3 for ; Wed, 20 Nov 2019 13:39:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 538FB2251E for ; Wed, 20 Nov 2019 13:39:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="HWCY1Uyq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731132AbfKTNj2 (ORCPT ); Wed, 20 Nov 2019 08:39:28 -0500 Received: from mail.skyhub.de ([5.9.137.197]:55078 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728541AbfKTNjZ (ORCPT ); Wed, 20 Nov 2019 08:39:25 -0500 Received: from zn.tnic (p200300EC2F0D8C00B1B17C12861BCCA4.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:8c00:b1b1:7c12:861b:cca4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C79B21EC0CC2; Wed, 20 Nov 2019 14:39:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1574257159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=QFI3bxCqn+b0PFcULsjiFv5KvKyUWgIUFkTaCiU0Ovw=; b=HWCY1UyqaOi6dX2884FcCHqa62YZDwgCWCNNyR2vqp5f723r6YuKbqVWQy2htFtpEqw/Nf iCmKHvc23XqOunZjqIdtrsDecwIfTuhA1AOMebnug7AzqEWQgcAEZIJK2oJokk1OeK1Ev5 nG2/BQ3b5FK0x94wPRTE/V4WbLap3BM= Date: Wed, 20 Nov 2019 14:39:13 +0100 From: Borislav Petkov To: Ingo Molnar Cc: Jann Horn , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev , kernel list , Andrey Konovalov , Andy Lutomirski , Sean Christopherson , Andi Kleen Subject: Re: [PATCH v3 2/4] x86/traps: Print non-canonical address on #GP Message-ID: <20191120133913.GG2634@zn.tnic> References: <20191120103613.63563-1-jannh@google.com> <20191120103613.63563-2-jannh@google.com> <20191120111859.GA115930@gmail.com> <20191120123058.GA17296@gmail.com> <20191120123926.GE2634@zn.tnic> <20191120132830.GB54414@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191120132830.GB54414@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 20, 2019 at 02:28:30PM +0100, Ingo Molnar wrote: > I'd rather we not trust the decoder and the execution environment so much > that it never produces a 0 linear address in a #GP: I was just scratching my head whether I could trigger a #GP with address of 0. But yeah, I agree, let's be really cautious here. I wouldn't want to debug a #GP with a wrong address reported. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette