Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1011241rwb; Sat, 13 Aug 2022 14:14:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7T1t9C1zwm9MS+oRbFEZvVjSHd03UPKORfuPAHPI+9eILAWTVTI4zVrN6vUuvce9qQnzlR X-Received: by 2002:a17:903:1c3:b0:16f:878:ed42 with SMTP id e3-20020a17090301c300b0016f0878ed42mr9874469plh.163.1660425243857; Sat, 13 Aug 2022 14:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660425243; cv=none; d=google.com; s=arc-20160816; b=jHbPV1Aiux6Uu5T2N2NQiRduazRU37NP+4Lws8IxvxOhY/xQidqGWY8E/tuCTCJMMF yO3tnU90w+3J8KxxUaGgWPQG38MW9XHhZsGicKwPfqI2+2iIAyX3LGduUJGK3bZ7WXCS iJhw7sdusLCgwfhQQsTgnqav5wJvICPRTOOba3xpavUsIl7D1/8Ec7S3/s7XXcJAZ374 HkrueBoahYixM1Qd0nQlycryQCjOGHEasgxBJv6waMMJN4pxmb6WMoqqdudWP1edjmCs 8kDT6wOfQHoXFvvHuWP/h5M7D3/u680U6o+M1FoiB5bFBtWzgRSnFA+TexaGnwdZEgq4 0euQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=8fcTcuAeWHQjpVwzcJr2YO/c0/5Ia3k+hIoMp6C3cvs=; b=s82Qt+GF3MkoFqexAAY+srCUcopp+LQyJ/dqTuHTWMmPPXxk1+Kvn7LeZaiPwEbC1F Z0ZKa13flQ2Z1dDTnbbi0Daw7ubbWtzIy0D20lHTK30dc+WSJ2MvuRXvOda1JeG/pZdm GjJzTOKJhWUQI2VAudaSZG5D5cv3ezyjhIHRabW33VdB3qn6HwgectyA/w/FfX9f9CHt GyYfgION6JilN+QOxFswOUTVaYQglPTIVYm3SkUGdDBrcdTthYonTtd6pDjqMqm4IaFW lPe1UxR63GRNmafHdt619O5Mk689ZTu3VVKEItWCuTJxp1Q8wyRSg3YFOMm3L+MCAQCn F15A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm2 header.b=d3ZJr9EJ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kl6MUhf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u185-20020a6385c2000000b00411f2345f3csi5722104pgd.207.2022.08.13.14.13.41; Sat, 13 Aug 2022 14:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm2 header.b=d3ZJr9EJ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kl6MUhf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240495AbiHMVKc (ORCPT + 99 others); Sat, 13 Aug 2022 17:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240487AbiHMVKa (ORCPT ); Sat, 13 Aug 2022 17:10:30 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1B210579; Sat, 13 Aug 2022 14:10:29 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C6AA65C00F2; Sat, 13 Aug 2022 17:10:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 13 Aug 2022 17:10:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1660425028; x= 1660511428; bh=8fcTcuAeWHQjpVwzcJr2YO/c0/5Ia3k+hIoMp6C3cvs=; b=d 3ZJr9EJY3ECCcEo8FAO2lKRuA3495jqGwsZXg1ITVbnWG1sl45t/2+22sBSYRJpU 19PYjWEzteFAB3aBPkkSK0515BYVoDkm99J9hLBdCrMAmzsQ3GxtEDAFcf+ZFahu aasX+K19EHb0nEc5PB0XEFJaO4xzk6ds+YPXwXMIHlLW07K4H+QBz/zvV13HRXNe gnougRJtxzKxaNeyJswIYXVRRNDloI7795A/dT/11gccBWNvnBfyqpJIbVM/GX1C ksILa/HU33Hjt1wvhNqFKOHGz2blYm7iUuDAP+rxZhU7M0H2Okh8V03b6N3pIsgN v5RyuJzJkv+tTmoUkQzWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660425028; x= 1660511428; bh=8fcTcuAeWHQjpVwzcJr2YO/c0/5Ia3k+hIoMp6C3cvs=; b=k l6MUhf3mYPK+C1wiQ6ptsIeKDeIQ0V5Tgcb7zemsJpMJEjgSgwOSZrjCiRe922ME X9OCrwJC45gozPHfefZ1z3j96QjNT0l7cotCI4jmXsJ8RxFa31HBQKfvFv9MFwiz NTZBbmj55Unorad/IX+Hxu9FEJ9dvWWV/y7rNHpm8L1iHB9y0+2+CPfJ259ZOT1i 5SrtLzGBzMnmf/v2VT8eNc/NDFeM+LF2pe3bCpERYQlGTj0xzIK1JVY1+dscLdCt RCX/Hml1GlEl6wAP0sSVzUz0WSIroToG8P1pE4z/S5GOUgV2YLOmSt8Lvb71ZU7b mMShNfwQELDlTfjGJHbhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegkedgudeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthektddttddtjeenucfhrhhomhepfdfm ihhrihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovh drnhgrmhgvqeenucggtffrrghtthgvrhhnpefgjeeikefffeefvedugfdtkedvhfdttdei feevtdehgefgjeffleelgffggfdvkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Aug 2022 17:10:27 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 95A38104A08; Sun, 14 Aug 2022 00:13:30 +0300 (+03) Date: Sun, 14 Aug 2022 00:13:30 +0300 From: "Kirill A. Shutemov" To: Andy Lutomirski Cc: Borislav Petkov , Dave Hansen , "Kirill A. Shutemov" , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Sathyanarayanan Kuppuswamy , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , "Peter Zijlstra (Intel)" , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , Marcelo Henrique Cerri , tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, the arch/x86 maintainers , linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCHv7 10/14] x86/mm: Avoid load_unaligned_zeropad() stepping into unaccepted memory Message-ID: <20220813211330.73bse242m4m5fz3n@box.shutemov.name> References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-11-kirill.shutemov@linux.intel.com> <80cc204b-a24f-684f-ec66-1361b69cae39@intel.com> <073c5a97-272c-c5a0-19f2-c3f14f916c72@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 13, 2022 at 09:11:52AM -0700, Andy Lutomirski wrote: > Now if the TD module could deliver an unrecoverable #MC instead of an > impossible-to-handle #VE, maybe we could at least get a nice debug trace > out? Of course it’s not so easy to do anything with a debug trace that > doesn’t break confidentiality. It is not impossible-to-handle #VE, it is no #VE for the guest and exit to the host that cannot be recovered. Yes, it is not friednly for debugging. Our plan was to allow SEPT_VE_DISABLE=0 for debug TD. It helps with debugging stepping on unaccepted memory as allows #VE in the guest which leads to panic() and nice traceback. Would it be enough? -- Kiryl Shutsemau / Kirill A. Shutemov