Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp123586ybk; Tue, 19 May 2020 17:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVV1X7qyk9rVklkA63tN8Nsy23WwroUomUJt2ZN/qZVlMXIXWjlRJyeuyGA+tABUd3kZoV X-Received: by 2002:a50:9b0f:: with SMTP id o15mr1115700edi.325.1589934040977; Tue, 19 May 2020 17:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589934040; cv=none; d=google.com; s=arc-20160816; b=xmVFABJCXWrNE4eUjqLlOhzZedcPRQE/hxn0uEQWSLJttrgZ9Y9i/T0rKchUMs7SgN +QNyHsQChS2C3BRM6BZmfFXk3IefNUL3gDAo8hn7Y+YfhahI8h8Y+yJKihNkytOI2yUY LXYhQhXdiItw/3RM3SLrrIRJhlLK5NfMFQU3/YCz5ZKSvMPwKCCEnFnpUG6bLfHOS9Uh Y3pi9Jpn9R0diXoK26bSF1pBdacnX7/67THwJcf3mHDY+YVSqsiMIqy09fYPa/7Xl7OB 1BUuaca3F9Zkhdx/qsLI6VX3Baf4LF9929T/slBAmMAhDMaYWp9yu0mIuixWaqXxBSk8 eIgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature:dkim-filter; bh=pzjrg1D/87oLc0VRBPeM1/XkcV73EGEp+ELgwdVZVik=; b=GFedLM8NTebN3Zyf7vmVKgx126m1i5DJZuV7XohSssJv4Vd/5nqpciLKoWhj6jv+LB ZzmPPw1slx3Uynz4Q0aq0wJ9COTzcYjhutCWePkMXM29WN1wKacxNyn7T9mN0EXy54p5 +dt6U9xbqMJ0Tes0Ywob0ulqNO4pCbgb/9t5XmRhZUcFim8p21rO4RYVcLx0xEOuVy7f sIRH5kAsyPJ+l4vIeUvp7UWYhlnsnCY2OQR+EygTE5NIsq+S8vyfAYRRg0hhyDLw4G/K g/IYbwnwsiT2egUc77m6Yyhsbv4DXGck8Z/K2TEDFU66EtKk8H1wibfRUc+oVBjIHElb DdtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2020042201 header.b=HamYMkz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si827336ejg.711.2020.05.19.17.20.16; Tue, 19 May 2020 17:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2020042201 header.b=HamYMkz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbgETASR (ORCPT + 99 others); Tue, 19 May 2020 20:18:17 -0400 Received: from terminus.zytor.com ([198.137.202.136]:51569 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgETASR (ORCPT ); Tue, 19 May 2020 20:18:17 -0400 Received: from carbon-x1.hos.anvin.org ([IPv6:2601:646:8600:3281:e7ea:4585:74bd:2ff0]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 04K0HX411072698 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 19 May 2020 17:17:33 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 04K0HX411072698 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020042201; t=1589933856; bh=pzjrg1D/87oLc0VRBPeM1/XkcV73EGEp+ELgwdVZVik=; h=Subject:To:References:From:Date:In-Reply-To:From; b=HamYMkz3aUvFBEnxHScelDoTxhchPW7LGv+blgvuTMUZVHDmfDUv74AYIKJI1ro2U zN+/K51Q17cFwmQLfzLD7zRXP9AjXocPMLKEOHOd7J4FzTsh7jwvFW7Dqn8palb7MG TdUZwiPmdwe4+E/nU0giQjER5XaBj/4d+oMLzWvXHzqB8qBb9fummM1+e8tRhdMyxW YJ17NbiV9peJ65dgDAc4nBLI2/x7cVg+Rxr2LLSIcUZHbIU1YHLLKar9DgJOSTqJCI 8oicAFRP/wJDM3D0mFa476rRb3O1H9XLiyGVwljcOIGeK8U1NSNMSTEV8Zpfar9COU AN1hLUSkxgemg== Subject: Re: umip: AMD Ryzen 3900X, pagefault after emulate SLDT/SIDT instruction To: Andreas Rammhold , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Ricardo Neri , "Eric W. Biederman" , Sergey Senozhatsky , Babu Moger , Kefeng Wang , Jason Yan , Brendan Shanks , linux-kernel@vger.kernel.org References: <20200519143815.cpsd2xfx2kl3khsq@wrt> From: "H. Peter Anvin" Message-ID: Date: Tue, 19 May 2020 17:17:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200519143815.cpsd2xfx2kl3khsq@wrt> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-19 07:38, Andreas Rammhold wrote: > Hi, > > I've been running into a weird problem with UMIP on a current Ryzen > 3900x with kernel 5.6.11 where a process receives a page fault after the > kernel handled the SLDT (or SIDT) instruction (emulation). > > The program I am running is run through WINE in 32bit mode and tries to > figure out if it is running in a VMWare machine by comparing the results > of SLDT against well known constants (basically as shown in the > [example] linked below). > Extremely weird. What is it expecting to happen -- or rather, what do you *want* it to do? -hpa