Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1468894ybk; Sun, 10 May 2020 18:06:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJMq0xKxZR/w9/cXEZ4zbVdT3tEqnfcvx+GCpTwWD1h58E8cr2AjjsRGdrREo39I6SrtI0Q X-Received: by 2002:a17:906:cce6:: with SMTP id ot38mr3396398ejb.108.1589159215185; Sun, 10 May 2020 18:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589159215; cv=none; d=google.com; s=arc-20160816; b=ZWixQIr1QKQqFqnlmJApKwahWTSEw75i2Ysxe8EVtrAOetTnhoh20lcFqXgM5IFwBR wyHkdYJaTvrkwE23K5+rOSD/qYRS5U+ehqhKkO2jySeLZAMwY7L9+OwSI7y02SlFLkNP ToEe7sbOGQ1+KZ7nLlyWy1iIdk3Wn78yuNKYFRbqT4Z6vpOHnQML2SX0Sd6R2B8Ainwl KofYhbGMTRskMKN4942mU+quDHwquezPTz3bXte0oRWMetMJHu9CZpSxiDkVy37twO/8 FN4qABOvYUaZsEjP6qIqIBHx+O0B6x2UdTd42k7aQuWB3Eb58w+JetxynpLcibnn+dPg +vpw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=v4z3ZHtdI2Vd6tXsncYp65U5N2PHrJQYyevkNElDw4E=; b=W0Nqe7f0wAKdmUj15UFcOmkODH8YOQnlGaY0QGS4Il5re7/5uy4NSdgBk1GDJ0euSD EF9RMoETvRp1XW5Io7/uufgCEiQZnZmp8K+4RPVd3XOw08Ow1cpQotvyX8OBwWdhkuB8 2UBcEpVnSMEGzdOwZskEyxBzAcolGXZdUrpsRKcCu9eokNcQIyTtbRx+9Nyh5ThJG8HK 2CWs1W2lp3iToByGsbn6wdESDzosx0oBruEcWjmF9b/rKUyLxNxBP0aCQWL40kEGsaD9 ZHP1CtbIBuUl0gRdURxp1MgtvJv2Ne6Djk8pt0rMInFDp5O9fM1IvWhRME/jFamBamuo 6aTQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si3867163edz.29.2020.05.10.18.06.28; Sun, 10 May 2020 18:06:55 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729313AbgEKAsn (ORCPT + 99 others); Sun, 10 May 2020 20:48:43 -0400 Received: from mga17.intel.com ([192.55.52.151]:11367 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729095AbgEKAsn (ORCPT ); Sun, 10 May 2020 20:48:43 -0400 IronPort-SDR: X4vsdFenIFJgSKlt2CACB5s9w5A0uWJ3gxXWH4lZukLw1j8Tgm2hJ+UgMsqrDuKIx8Z6He6+uW ajI7T7G+Exiw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2020 17:48:43 -0700 IronPort-SDR: 0rT8LofpJeZwr5rA4yJ6dR9cocpWl46vX4m/HcvmOB8psEsKXn7FLzgB5a+u1WPBBB09o3VIYt iriK1U1OLNlg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,377,1583222400"; d="scan'208";a="296746824" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by fmsmga002.fm.intel.com with ESMTP; 10 May 2020 17:48:42 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id A7A1D301C52; Sun, 10 May 2020 17:48:42 -0700 (PDT) Date: Sun, 10 May 2020 17:48:42 -0700 From: Andi Kleen To: Vegard Nossum Cc: Sasha Levin , linux-kernel@vger.kernel.org, tglx@linutronix.de, luto@kernel.org, tony.luck@intel.com, chang.seok.bae@intel.com Subject: Re: [PATCH v10 00/18] Enable FSGSBASE instructions Message-ID: <20200511004842.GJ3538@tassilo.jf.intel.com> References: <20200423232207.5797-1-sashal@kernel.org> <5a6a0ef5-4dfc-d0b1-9181-5df4211cfcd9@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > [ 6402.786418] ------------[ cut here ]------------ > [ 6402.787769] WARNING: CPU: 0 PID: 13802 at arch/x86/kernel/traps.c:811 > do_debug+0x16c/0x210 ... > [ 6402.848299] ? trace_hardirqs_off_thunk+0x1a/0x33 > [ 6402.849593] trace_hardirqs_off_caller+0xa6/0xd0 > [ 6402.850862] ? debug+0x4e/0x70 > [ 6402.851727] trace_hardirqs_off_thunk+0x1a/0x33 > [ 6402.852983] debug+0x53/0x70 > [ 6402.853785] RIP: 0033:0x400060dd So this is a check that checks if you're running in user mode if you have a debug trap with single step, but somehow it triggered for a user segment. Probably the regs got corrupted. Sasha, I suspect you're missing a mov %rsp,%rdi somewhere in the debug entry path that sets up the regs argument for the C code. -Andi