Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4828969rwb; Sat, 21 Jan 2023 20:55:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMMEqVYXTA0zFXNiF4eVgII3YtaXu4qtPV9sf4EeTfR/HPODz2r5DsaY8fjmgvAGT/9Gg9 X-Received: by 2002:a05:6a20:1611:b0:b4:6f9:ef7d with SMTP id l17-20020a056a20161100b000b406f9ef7dmr26513890pzj.35.1674363316249; Sat, 21 Jan 2023 20:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674363316; cv=none; d=google.com; s=arc-20160816; b=IGNqa79VUoYmccbW3p0tiV6L0vuacU5ETiICea55mbqZQG0Gcvx8fXAd3ej8+e/IDp uBK/G4WfnM0PLIgLGHu6bJ8kJz9C4bGVszsnkxNjYCOgBemjGyUBeTKq0hyTZFuN0GG+ gsoQSwCwYZujyBVui031gooY9Sn1CwPHfai2KEiMzoBPzt9PSXY7Xd119+9z7I49HigZ rPf7Bowd1S3YBpA4OFetYrsOXTlp60ium7+1MI4y06tihiGX7XdCTwnr3ZYAlWq9dGvE mmA6n4CV1oxzDemK4wKT+6cDxDqKX5oYqfwt4wZPBwDLDBbjfcuWkIttBgwbFjjeBAgR J89w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1tmb0q5vagQmJCR13xUA7XIYx5NTdXZjqX+2SLCotdI=; b=VH7vJ5p3I1yCf18DElRASk592UHi6WcI5o/7N0PD3m7Kpokl8cxMaxZSULnoDQye9y sYaBJcpBsslYSZ6TdBPgSqerU1Dh1mltJ6GrJGSaYvDW8xJ+GFUa4YBu5o5Y9Fl1KiIi N+EP930KxTRKaexmyers/mKT9LRmdlz9dCqSU+oRZy32Iq1O5DWqHzMQ38nDVlT87gmM y05VV7Y4TLanPfSVfe8rC8RwhpMk9dlRFXkfXNcIwNa8F3TP5cAf0FSPcPRZC6/ZBHGP FLaCRmkLYJn6mt2X8HeC6yIEI6+79/f/ByyCQTfOPWuZPO+8zI1wQFi9j6F9DFcdLvXS YKSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d1BPzvtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b004cec9075330si16945048pgp.88.2023.01.21.20.55.01; Sat, 21 Jan 2023 20:55:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d1BPzvtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbjAVEeN (ORCPT + 53 others); Sat, 21 Jan 2023 23:34:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjAVEeM (ORCPT ); Sat, 21 Jan 2023 23:34:12 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5261B15CAA for ; Sat, 21 Jan 2023 20:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674362051; x=1705898051; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=q21kRTwJw+Eq+WoprO8u9oA8bN3/e1g2CKnGz/MGKNE=; b=d1BPzvtCJMJ7zqVfMKKjJYohsRVj8y1dlzsDz76XjYkOqyfDf4JaUvrD wc5R7l4NNgF7neuOgtd0dXiBAnu9+taI0uUaUrC3TtyFVUbrKMPkEZ0KB f/vPEY2O86Bl+X7egXKPJhJsYUSTMb3QLzs4FTHnTsD6gaITC8fjJtuqk foTM5ZPsQtAEBwyFIRTowGXxXDdoaf2NKYYCTB9199yQDR7IKJd7kMLpa 5DU5glGxIGSaBbN2bvjvhB2fP8cax+UmW21Nl2rKyJ8P4mRxxSPeO4++T DUK3OuWYVjljlcma04B6+SZp6kaoRo1uM0y1/Abb4Tow3EEGpo1GV58bD w==; X-IronPort-AV: E=McAfee;i="6500,9779,10597"; a="309440563" X-IronPort-AV: E=Sophos;i="5.97,235,1669104000"; d="scan'208";a="309440563" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2023 20:34:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10597"; a="724420916" X-IronPort-AV: E=Sophos;i="5.97,235,1669104000"; d="scan'208";a="724420916" Received: from aureliaw-mobl.amr.corp.intel.com (HELO [10.255.230.48]) ([10.255.230.48]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2023 20:34:10 -0800 Message-ID: Date: Sat, 21 Jan 2023 20:34:09 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: the x86 sysret_rip test fails on the Intel FRED architecture Content-Language: en-US To: "Li, Xin3" , "H. Peter Anvin" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "peterz@infradead.org" , "dave.hansen@linux.intel.com" Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" References: <5d4ad3e3-034f-c7da-d141-9c001c2343af@intel.com> <18B5DB6D-AEBD-4A67-A7B3-CE64940819B7@zytor.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/21/23 19:38, Li, Xin3 wrote: >> However, it doesn't seem to make sense to do so to me. The current behavior is >> much more of an artifact than desired behavior. > We kind of have an agreement that %r11 = %flags after returning from the kernel. > > And the question is, is it what we want? Can the selftest just set r11=rflags before the syscall? The old syscall entry path will set r11=rflags. The FRED path won't touch it. Either case will pass an r11==rflags check.