Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1391814ybt; Sat, 20 Jun 2020 09:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKVI14LkQI1ArFc6csuOhK0CfchxNpwtVsWM5Tk+M8jKi5B2KhfBynym64UK98BehpxkfJ X-Received: by 2002:a17:906:e298:: with SMTP id gg24mr8350370ejb.120.1592669056442; Sat, 20 Jun 2020 09:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592669056; cv=none; d=google.com; s=arc-20160816; b=WA9nUAJpfAc+DsVCHHLKlAoduhQnzU1L+X3wwN3/Mz1tunZrnWDbS9zSumR8V4baAL qZ/tUdCFFsdHmGtho3bs4QKLgQH0w1L3fkHJbw7wvvqZJoIXCWcwTWYboQR1qaH0yOMG hrwtAv1fJLDJhtsvoRvhwF1dQ16jSqaoEezWAN7+HHx7yrK0NvUGdl9cP0qw+0XL1Vo4 Apm8f8irb9TVTUyRjCVdtTUX+lX4kjcXDgN0oidvp2Kdi9DcUEIPzXLyDEkZy6u6KSM8 MvUIZtX8cFUiYU0Z0qCPb0Bin1dMO5iK+OR4LSSHcLFVeseAbMJnI8d6vcZPc6IwMsGa qZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=lFeqIL8bo4mlGyvfD4vGNnsSeHfU+7Jkg7P09FGBgVg=; b=frDPLeteegYPxdrtSoMziFwf0UJl1PeuwfNcmn3sHQYn9Hu/YPIB7wVp3OaRN2QV+Z /ULxHKN2NJOXSl9/W0hHM3G6FSWzotWI8sURUERLie2wShgp10jlypga0f7z5kEAQApF vyWKtbU08MRz7xHpG/uP5TH3UArGnL40mcv17MoUKXYBIklBJz0J/wfNQxMrnfILcg0g A6od0+D1RxGjm0AZSZvW37rS/AWY6TxFswJIilX9znO6zdJr8pgMSxS4JaVBd1xnpnoX giPLDQO5NioVp8omjQfHnvXvWRC5zbHsyZX0TkGlUvk6RDLkXl/8Kive2Jb3TsZzDzQK BgOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="XZ/wFy9U"; 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 c15si5764840ejx.148.2020.06.20.09.03.54; Sat, 20 Jun 2020 09:04:16 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="XZ/wFy9U"; 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 S1727083AbgFTQAM (ORCPT + 99 others); Sat, 20 Jun 2020 12:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbgFTQAK (ORCPT ); Sat, 20 Jun 2020 12:00:10 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A11AC06174E for ; Sat, 20 Jun 2020 09:00:10 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id f185so11702853wmf.3 for ; Sat, 20 Jun 2020 09:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=lFeqIL8bo4mlGyvfD4vGNnsSeHfU+7Jkg7P09FGBgVg=; b=XZ/wFy9UTZB/NtxhyA7L6e7U7ful70u3itnS9SmmxsPdShFHBzpnULtsAVcVWm5HbS Wv8tR/XpPz/P4Oqd8SkdPe9c/po7+QUOxKC+UZqsP2gvtIYHGE2LP4Il7ICtYy/hujy7 pYzHAbcT8/MvmfG0X8XQ7kDHmjZdeQHzK5eQuTFgrSsBDKhXudvArtHOcnMZ9w/un8iz J8ATrwrGcnbr+2kcscSJ4bRLcyNU1Cs6DcOI0hEhby7FODtjEMckB0WbEDVKeANqSoNO dIaJEDse0fC4j1XpgV/DofGpQ1t0I6G0Luai5TO/hPLVMzoYTTWDODFrPwehUgy9pjrS FyAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lFeqIL8bo4mlGyvfD4vGNnsSeHfU+7Jkg7P09FGBgVg=; b=dwSzj33W2jwYL0hZqixIcoCQXUbPf8WMEYtHzuFk8U1CZzPvH40v2gDzmHN+ZPMJOV i7iC1B5maJHBhvdZZg6+W3pPwniVizrJqcU7D0Va+T3LtyCtalyjbFZu3LuE8/2sSGhJ p9EZKKAbOURYEo94B/fSE57EVxnscFn6KO9XHLOKVLGxefXgMhZ8fjKDZUkE7k89XcqO wJt/shPCvLPavgjBRQSTH7r6JkPlmnJ6w4drVF0IG74FeaUjvkTsxgBE/VVOw6ukSJHa W0PrHhtn+0MELcCgxqe4M4m5B9v/n4DtPXiHSa2L4gy4XwxXkt1WuSostglZDTsTq8Qu yqsQ== X-Gm-Message-State: AOAM532rYAcACMFmsjUkIWLYy0/FrcYP9OR5SgeChgpIjOcShygm8NbH Qdf4ROAMCHrlXG2s9MgaR3YE6pvg3r56vvOOvAfHf/r8LCw= X-Received: by 2002:a1c:4804:: with SMTP id v4mr9293060wma.21.1592668808716; Sat, 20 Jun 2020 09:00:08 -0700 (PDT) MIME-Version: 1.0 From: Andy Lutomirski Date: Sat, 20 Jun 2020 08:59:57 -0700 Message-ID: Subject: Linux FSGSBASE testing To: LKML , X86 ML , Stas Sergeev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stas- FSGSBASE support is queued up for Linux 5.9. Since you're one of the more exotic users of segmentation on Linux, is there any chance you could test it? The code is here: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=x86/fsgsbase There are two interesting cases to test: 1. FSGSBASE on. This is the default if you boot this kernel on Ivy Bridge or newer hardware. 2. FSGSBASE off on a patched kernel. Boot the same kernel as in #1 but either pass nofsgsbase on the kernel command line or use pre-Ivy Bridge hardware. You will * You can tell you have FSGSBASE enabled for test #1 by running tools/testing/selftests/x86/fsgsbase_64 -- the first line of output will be :FSGSBASE instructions are enabled". You can build it by cd-ing to tools/testing/selftests/x86 and running make. If anything is broken for you, I'd like to know before this makes it into a released kernel! Thanks, Andy