Received: by 10.223.176.46 with SMTP id f43csp833296wra; Fri, 26 Jan 2018 07:37:15 -0800 (PST) X-Google-Smtp-Source: AH8x227Pm4kPdz57/4j6Df0VOWtSxBmGmRRQ2TZ+3GpIVKetIwkLEdYkfEgxdpU8m3fGhSTr6K18 X-Received: by 10.99.125.78 with SMTP id m14mr16206451pgn.383.1516981034987; Fri, 26 Jan 2018 07:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516981034; cv=none; d=google.com; s=arc-20160816; b=DxIMz9IsE/3HtOPLjhPMkqGzQz1EYkahFPXNO000txZAOnSZHC4myd7Jt7tC3dWg3G qpRStOcKivDk4ikiECzka1zenXx7TMXmBI3NvbUfCvlC1MJIQ7+lB6mShGzV826kf2zu Ru3yFzKui5DYhSmdgpfTppt2BgbzoKwq5P/A8RFYnSOujlS1EPSR4MuTknec3Y0+sPNM 12tkBHRf1/6Y6N1Bh5zS58c2kNpfA7AOBLVx8FT+Qf1lfym4VGm7Wc9rWZrRFvf6AEEz sAnuOJQs0UkJiRDpOpgLimHu+gxkCJVy3zhF3+TLBrsJVb5MydV2rFaKmlfkoWmmx9Yd uX5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-authentication-results; bh=VvkX/mwNdwc14UE7UJTi3GMzReI2x6k++yAiFAMKinc=; b=xyBdYt1K+pkxMYLyu/oGEDDNLGxzUQ6NyLxiI08N99W+lbDzifLqVg8I3UaOqJ14Tl u/iEtSKD0wyM4yFnlJNOEmh6EIKt+ktQKUxyPdT+fs7hJm8a0Jv0SKAYqOuzXfdGpP72 es+g2FDTCRTKDsD/bizLKB/lbQn8W1KrbneKxTthrATfQpsfqQjTekR/U0sjIf1J6EGC pdr38drW+EldXZM6GExbU25pCScZsmoF3Gb2xNIyM9nznu/FyORMeFPklJTunpUyXLpH xDf0B7SpH62kQHW8MQra5mPdiQvKuGgbEV+QFdbg9WvjDRgwKgM1FCMFRwoSoPNGSznh ygjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GbBKXzvQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si3822453pli.294.2018.01.26.07.37.00; Fri, 26 Jan 2018 07:37:14 -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; dkim=pass header.i=@linaro.org header.s=google header.b=GbBKXzvQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbeAZPgf (ORCPT + 99 others); Fri, 26 Jan 2018 10:36:35 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:38197 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbeAZPgd (ORCPT ); Fri, 26 Jan 2018 10:36:33 -0500 Received: by mail-io0-f178.google.com with SMTP id d13so824933iog.5 for ; Fri, 26 Jan 2018 07:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=VvkX/mwNdwc14UE7UJTi3GMzReI2x6k++yAiFAMKinc=; b=GbBKXzvQEFhuIBDZfch5zK0IFalR3X7xKersrrobTZyH4/cgXVm91T6f7SmkuOkKbK 6BbGkXr8sWvaD/CvJQpn34BiB5Z85jU7nGcJixU5z4fIIuwjKwa/jdOX7xjEP3hy3lI3 Xykflzx32uC1Qqg54oMg0UZ5cLhweCyuOuI2E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=VvkX/mwNdwc14UE7UJTi3GMzReI2x6k++yAiFAMKinc=; b=MvF+6bdtukOvimy7y+hGpV0zbAumBclJiFFaMOVUJqqSAQEdPz0416ASEKpFW02Zaf 90pWJo3y2SznYGil73bITDrShs2xHbBAzPm3nY8DYBQAKXIgyVrsgIVo3/0xR3xDaShZ x3svV3PDO/Dm2BRiMU++MMjFPW7gh8mlSaj4FqHFwCKP1CiPrzbNsWXNgaZTSv7lZBMW 9HdIDA1ynWodfxivAKTsLZbKcgYUS77qj8ULBVCmqTzwn/yPHo824xT9YVeDdQIrgZdz OPG8KIp9O3kWTwtJL/dh3LOttzxynQBZMlCgibO63TgmCtVCoLZ31tXNBVI9HlRFnoYS BCMw== X-Gm-Message-State: AKwxytdKFPtF2cuThbOTZKDDZYA4d/xFk1fx7yhYiv/FDmSb9XoLx2Gj KFU58z0eTLs8yEIg6AgcA6NLBA== X-Received: by 10.107.17.37 with SMTP id z37mr15290086ioi.282.1516980993014; Fri, 26 Jan 2018 07:36:33 -0800 (PST) Received: from localhost (c-68-47-89-210.hsd1.mn.comcast.net. [68.47.89.210]) by smtp.gmail.com with ESMTPSA id j66sm2380325itj.25.2018.01.26.07.36.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 07:36:32 -0800 (PST) Date: Fri, 26 Jan 2018 09:36:31 -0600 From: Dan Rue To: Shuah Khan , Ingo Molnar , Andy Lutomirski , Dmitry Safonov , Borislav Petkov , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: selftests/x86/fsgsbase_64 test problem Message-ID: <20180126153631.ha7yc33fj5uhitjo@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Dan