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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 A77B7C433E0 for ; Sat, 23 May 2020 02:21:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 71E902074B for ; Sat, 23 May 2020 02:21:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=notmuch.email header.i=@notmuch.email header.b="EgDMD/AE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387544AbgEWCVg (ORCPT ); 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