Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp755043ybr; Fri, 22 May 2020 19:25:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKceOv2HlAid8LUTE7vR31h4/ogbfVwl+WN+ZnGgDXw8aNM6el+ovYZSQCvj3/doSWoVs5 X-Received: by 2002:a50:d1c4:: with SMTP id i4mr5368201edg.344.1590200756302; Fri, 22 May 2020 19:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590200756; cv=none; d=google.com; s=arc-20160816; b=Ez0Gs0lPG0eGVzETy7t9kj7vRDJPfPAk/VNk0lMfqegsDGbbGmAbgTXgtRQ+UIzMqQ O5CYJHsHK5EkgSIBqBJSz+au2JyRllM1g1/5Ry42u3ED5/wHaS4jDEvTgOCuhmnVDhQX okmQkEC2vtHMgSW47/crKkgUWdR2i73axLjfezbqD9Gubjo8Z9zAG8Gh2wcHKvlU4Bc+ 0X5fn/wkBdYgUXQcnu+7ScJudXNM0nnR7EnlCG573DXWZxx+MFWxZYFmbgTNYA2Bt1UW KDCB0nTf6gj/4+5D2mnQnSZ+Z9cZJeC5h/lCNSaL5Chh5+bEpALTB3WGMYiuR4wro4SW DMIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=Qbmux8TBIyumzPkqdTO5JW7secQMsHMFpVe42GokGHY=; b=eRZV+lRpnn/pOz7cmxhSg0GiGyfHagHYt0d18A56jLd4BGsuQJHatM37VdKDs5jMSa ba5YAL0NywACCxMUhrChSpWOput69Idr/kotKDtYEcrcQthiqkdkxRdjIgzeIxdzvKfZ 4wF/saW0UqNFffouACyxMrSiy26qgpV+G0L6e1M0pGyPioG5F1ZTpI9ZiGu6oPaAhz/6 OwFUWSUVjbqZtRDRqyLUaj/BSJ8HWMvGZbEkbcQ4sV3Ngz4/+AB4HdvSe92QE5I2HdYE N2hoJFlhvEYFXZbwbYV2IFgL19jxmN1+Jro2lhPE+reczHln2PSLsgsfA5zXZIyz+RdV GQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@notmuch.email header.s=mail header.b="EgDMD/AE"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si5523322edb.207.2020.05.22.19.25.33; Fri, 22 May 2020 19:25:56 -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=@notmuch.email header.s=mail header.b="EgDMD/AE"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387537AbgEWCVg (ORCPT + 99 others); Fri, 22 May 2020 22:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387427AbgEWCVg (ORCPT ); Fri, 22 May 2020 22:21:36 -0400 X-Greylist: delayed 231 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 22 May 2020 19:21:35 PDT Received: from mx.h4ck.space (mx.h4ck.space [IPv6:2a01:4f8:1c1c:f2f5::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E688FC061A0E for ; Fri, 22 May 2020 19:21:35 -0700 (PDT) Date: Sat, 23 May 2020 04:21:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=notmuch.email; s=mail; t=1590200493; bh=Qbmux8TBIyumzPkqdTO5JW7secQMsHMFpVe42GokGHY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=EgDMD/AE6k40hgy8j1qnn0E97vCeVhXbdOAY1VMLREP1yJB8YAT2k8Oq6sXsKn+fE BSuDbZqnrqJ8KLlOJk8d0j2awkol4aIJz93Aa7uht7z2ByxfXK3ahVlZXzHcGt09gE w4hwXBTrJZqHyYvVEx6HIuPyV/AYvhYEhE+XqVf8= From: andi@notmuch.email To: Brendan Shanks Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Ricardo Neri , "Eric W. Biederman" , Sergey Senozhatsky , Babu Moger , Kefeng Wang , Jason Yan , linux-kernel@vger.kernel.org Subject: Re: umip: AMD Ryzen 3900X, pagefault after emulate SLDT/SIDT instruction Message-ID: <20200523022133.rjgu7kw2goyoj4ip@wrt> References: <20200519143815.cpsd2xfx2kl3khsq@wrt> <2330FAB4-A6CE-49E7-921C-B7D55763BDED@codeweavers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2330FAB4-A6CE-49E7-921C-B7D55763BDED@codeweavers.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11:56 19.05.20, Brendan Shanks wrote: > The problem is that the kernel does not emulate/spoof the SLDT instruction, only SGDT, SIDT, and SMSW. > SLDT and STR weren't thought to be commonly used, so emulation/spoofing wasn’t added. > In the last few months I have seen reports of one or two (32-bit) Windows games that use SLDT though. > Can you share more information about the application you’re running? This is basically the "minimal" reproducer for the issue I've been observed (as by the previously linked article): https://gist.githubusercontent.com/andir/071981717460242a1df2e0fc20836fdc/raw/0c31877aa7ee59146596fe68934f9cecb5c998ae/test.c