Received: by 10.223.176.46 with SMTP id f43csp885344wra; Fri, 26 Jan 2018 08:23:51 -0800 (PST) X-Google-Smtp-Source: AH8x225ep3hPBxHqRW/d9TnZM+P+3sWkyF98kA4SCTJvnoSxIsnOlPcdlYcq2oE7rc1ohC6Lcvc4 X-Received: by 10.98.178.133 with SMTP id z5mr19568984pfl.88.1516983831521; Fri, 26 Jan 2018 08:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516983831; cv=none; d=google.com; s=arc-20160816; b=yq7M0oAbImyTvCf3xchlbiLMCy4JnKCiUafZThDVQs+3LvLPac3HaRSFsc8j42HcFu 5NIEb91C4V2l2L0xVoTN9ZdQvcTiFyp+I56SjnMzT+JePBbdBWGHjqDXg2pMiU6v1J8K 5lXHTsOd9IKTv9sJapytyMvjtqMXaiocNgHWOkVf8woth6258NgPpx5RAGyrtykqNHS0 FrSJW45WnwwDHyV3lhCyH60b0aDbZmTk8Pja01deelFDZOrkI/ylbzF4i8Vsmt7RxLPE 0twsdhfpLiOrlPKwsTQ/pUp9aImqI/q7YVrMHrHhH6bi80M1PKQsSnS8taTayHNMzAC1 1gew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=i9cHSV6hh1HvPyxWgxJEiddgzsPpJzML2H0MAa4Hmf4=; b=CpSWboIm5B1ErPUKaS11aMfI4M+kHFZ+VpEpeFM8Pm5s2PbBcPXidC7S5Gh7DP2z06 qvPbIC8YKkFrzXQA3YEV4hIwAxPSg7jReD7X6PxNBiRP0ds9E5idLMcPHCvQxC5LDf8v Kh98RqkfTk5uaAIDX5KJ5xBqzFy2cqjBVqdzySlKuQ2Mk8J1opNCZNgoraI3XkTCQEsw GdBBnKJb2fl3UGqgsrisag1+Qk2cwdvnyIHf1NQAhchOjba/N/K7g6evefiKxZ62O5st kM1tdZhA+etsxb9FHBx5Uqd7oyN5LUUCI204c49xkT9vCovxCCTfPfeWhKXObcucqQil 89+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i184si3166441pgc.333.2018.01.26.08.23.37; Fri, 26 Jan 2018 08:23:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbeAZQXL (ORCPT + 99 others); Fri, 26 Jan 2018 11:23:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:43982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753601AbeAZQXJ (ORCPT ); Fri, 26 Jan 2018 11:23:09 -0500 Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C35F21851 for ; Fri, 26 Jan 2018 16:23:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C35F21851 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org Received: by mail-io0-f181.google.com with SMTP id f4so971421ioh.8 for ; Fri, 26 Jan 2018 08:23:09 -0800 (PST) X-Gm-Message-State: AKwxyteAof96janU6RxC+1eyKqa4D81RBMBZ/Ll4wbkGQXlvP2mQPtZg 45ewYQm/fMKzarwSzx1FM7kDWsqYWJHzh51ALzkg4A== X-Received: by 10.107.167.136 with SMTP id q130mr3060641ioe.173.1516983788816; Fri, 26 Jan 2018 08:23:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.137.84 with HTTP; Fri, 26 Jan 2018 08:22:48 -0800 (PST) In-Reply-To: <20180126153631.ha7yc33fj5uhitjo@xps> References: <20180126153631.ha7yc33fj5uhitjo@xps> From: Andy Lutomirski Date: Fri, 26 Jan 2018 08:22:48 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: selftests/x86/fsgsbase_64 test problem To: Dan Rue Cc: Shuah Khan , Ingo Molnar , Andy Lutomirski , Dmitry Safonov , Borislav Petkov , "open list:KERNEL SELFTEST FRAMEWORK" , LKML 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 On Fri, Jan 26, 2018 at 7:36 AM, Dan Rue wrote: > > We've noticed that fsgsbase_64 can fail intermittently with the > following error: > > [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 > Before schedule, set selector to 0x1 > other thread: ARCH_SET_GS(0x1) -- sel is 0x0 > [FAIL] GS/BASE changed from 0x1/0x0 to 0x0/0x0 > > This can be reliably reproduced by running fsgsbase_64 in a loop. i.e. > > for i in $(seq 1 10000); do ./fsgsbase_64 || break; done > > This problem isn't new - I've reproduced it on latest mainline and every > release going back to v4.12 (I did not try earlier). This was tested on > a Supermicro board with a Xeon E3-1220 as well as an Intel Nuc with an > i3-5010U. > Hmm, I can reproduce it, too. I'll look in a bit.