Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4876357rwb; Sat, 21 Jan 2023 22:04:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6VxNxQNN2iM/0XC6Uv/HOwbknoBVSS1Vb0rvtIZsRLEUUi3Pus3PTvNilsPpV+yOBGOVy X-Received: by 2002:a05:6402:cba:b0:49d:25f3:6b4e with SMTP id cn26-20020a0564020cba00b0049d25f36b4emr20707650edb.28.1674367453670; Sat, 21 Jan 2023 22:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674367453; cv=none; d=google.com; s=arc-20160816; b=E926sKFxnE05r7+2qGFKAk9bacM/THGjDhpGJk2lFijgK2Myy6F1Z8iUSFwUPuMCWY Nf8C6iHdF4S//LRoSWQD4AzDvCM1+5bL2aoctjHNPI6dsyudu9fNvA79JYSmRgEWP45J E/YvEHepWhAFZBJXCYNy5DyXLHSBhxsuwin5yNi3O4FtbhJpipVPGSEP/QC9hsbmDJoA lyh3x5UkUfjruGgjcRDMFjT7rTa2K0OCj4Njp4/HSpdGPCJxiSVXGDYJ4js2ZiT7Dxwr otRTPGVxOZurFP3Vgyy98qb90Sbrpo+enu3dnqcEYeYNioPaps1ESXOJtsUj/xPdCHwU BubQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=9Ab0ZijIloczLbeQG6t/QkuzyM4WvID+T58SXRdtSVc=; b=kkGG3v6+4Pf4svDS3YZWeR5t0e/ELo8Ab/QuMa75CIRN5uYjuLjZQHILRj7w7duN6x VYymV0JlYqfwb6uxxjWS+7dKpzOuoa1SnZhGgaR7GORYYMSABdUBb7g2HcNCeIu4qFHd 9hEpYJioUlGGjkOiw/X+1+7VrHhUXRiAE22ceTDAmOIaKslTl1Q/qPwEB1YixMzmWNK0 8mjQunMo5hdjdu3fhuzGarcXPc6NT52e6SQHfguetcyNqwKNjyeQE/LIN+Ii+R5rI48i e0kBK5F+O39fq5O/hFgaiKNjHFavJI4MRHh9mrefulsqr3M/OG9SHcUPpRX2dBqkSyNv uSrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023010601 header.b=BPbLJU3D; 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=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056402431300b0049e1788de1fsi26869087edc.236.2023.01.21.22.03.53; Sat, 21 Jan 2023 22:04:13 -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=@zytor.com header.s=2023010601 header.b=BPbLJU3D; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbjAVEpA (ORCPT + 53 others); Sat, 21 Jan 2023 23:45:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjAVEo6 (ORCPT ); Sat, 21 Jan 2023 23:44:58 -0500 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DBB223131 for ; Sat, 21 Jan 2023 20:44:58 -0800 (PST) Received: from [127.0.0.1] ([73.223.250.219]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 30M4ifcP1810703 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 21 Jan 2023 20:44:41 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 30M4ifcP1810703 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023010601; t=1674362682; bh=9Ab0ZijIloczLbeQG6t/QkuzyM4WvID+T58SXRdtSVc=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=BPbLJU3DuoKO3bcAyH/dElIU0H9XvgdJDXsFkCekZKEZJdlGRmLjXGt6w4rlxNSOE ffFPJaFdEXDIxcx7cVcbLRQBgjn49E4Bz090L+Ry3o7QS73RV1NuTigRy0FL6a7UX8 PmnAi2H4lX/zHkVVknR9gtP4sfA0D3Mpxw3NL5xZOMg5zh1lChMJxBHBALCiUzyCBq 0vE5nv6jMuwPGHK9a+X/fiw6KBfrNGifgTSvBpjkysuFahq+BBRPxeBqj0KTq67m93 eAwap1Thzj3F4zK+hK/OsV1FS8K09paElb30OSRuhG059d2cMDeRma85TpTbSYMssT cslfshLkx6/iw== Date: Sat, 21 Jan 2023 20:44:38 -0800 From: "H. Peter Anvin" To: Dave Hansen , "Li, Xin3" , "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" Subject: Re: the x86 sysret_rip test fails on the Intel FRED architecture User-Agent: K-9 Mail for Android In-Reply-To: References: <5d4ad3e3-034f-c7da-d141-9c001c2343af@intel.com> <18B5DB6D-AEBD-4A67-A7B3-CE64940819B7@zytor.com> Message-ID: <65D9F1DE-96D4-4CC7-A21C-A740B7DDE0C8@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 January 21, 2023 8:34:09 PM PST, Dave Hansen = wrote: >On 1/21/23 19:38, Li, Xin3 wrote: >>> However, it doesn't seem to make sense to do so to me=2E The current b= ehavior is >>> much more of an artifact than desired behavior=2E >> We kind of have an agreement that %r11 =3D %flags after returning from = the kernel=2E >>=20 >> And the question is, is it what we want? > >Can the selftest just set r11=3Drflags before the syscall? The old >syscall entry path will set r11=3Drflags=2E The FRED path won't touch it= =2E >Either case will pass an r11=3D=3Drflags check=2E That's a good idea=2E