Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1879461pxj; Wed, 19 May 2021 16:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRTGs/CLtHb4Kz75RKk+cUYYnkpzInFXnc3sWYJIHVjUpXSrhIkfK0CTPCTMKgQ7ncoaIQ X-Received: by 2002:a17:907:1b11:: with SMTP id mp17mr1648896ejc.1.1621467174493; Wed, 19 May 2021 16:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621467174; cv=none; d=google.com; s=arc-20160816; b=Ve0Kh7gTL5tbcvs2FfQRD6IixpjFe8BzoJsU9F7JKU/HSnLEpR1UEneOLOhdR0UAhY RLiiU1KCwDcCwpuw1V2Q9zCytprmAp5xnOycNCHuClZUUFn0ruW7MzZHW3FRNhR8gzPL r3cEPTb8X3pl3RD8XPr+2o9KyqQYd9QT9HsipV7w3ugpf3uzLCnNgZ7Dzc3Bjz1lsq68 vqnPLH7q6lmB3538JwkNYWWcMaWI6wjOkM6gHRRe+rJoy9SAr3CyUArjoj76YKPBHOj0 7ym0TypbvTppWhntSnRCKHxEnJ48CUoERLoxbYJFVQWetuC3QAE+1Bu7WBK2cTJqmERU qVPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=U6LbOLV534aXdJvlVhE1IzHow7+wERTSTweZudGCg80=; b=KFKJkMyRDtkcbKph9ZCto/G2BJBnQ8AktOhYbx04/nEcq5CVYzKxJSJVFbwYi9Wrot k7mBcL/eiNow2pwD3ODLsDeCtC5rnbi34NDqj2xUUY4QAdlwkZ5e/xYMmaCSmbBkU5vS c/ssG2EZSALu+mUxQel5QUrsQ3RSTQaX4BiPr8lg6/rJ0S62dQIqPMPGFyRBgNklpya3 WtHhl/6/R9ZTH/CNuer5kS4kTQf/Bk8l+8PNF0IgzY5c3k5AriVA2Qhfvv8KH1J+Qm1y xpvzb8+/c+whXD9VA7FQIrCI2M6IL1yRxfTLhLy97fb2RWLWVHArBbewEg9PrRrDL9gi r/Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EsZr5LTz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si992070eju.724.2021.05.19.16.32.31; Wed, 19 May 2021 16:32:54 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EsZr5LTz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbhESXa5 (ORCPT + 99 others); Wed, 19 May 2021 19:30:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhESXa5 (ORCPT ); Wed, 19 May 2021 19:30:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C209610CB; Wed, 19 May 2021 23:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621466976; bh=6/whUwY1s4s16/hwQLNvUOYLO0zffwSHDrR5vJNwuf4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=EsZr5LTzneA83dV8soI8i3YX1gZa4OsXH7nTfBIa2Wurl5SJkjMmvVrqd7JDOls0f qzdPxPmnG2I300EQdWQAS5FvXbainILuLqQ9uo2veUq7basSqK27CfWHuyPn9RDqYd R9tuk1dIpSdZGVePfweQfRhylsJrdQvha5A+faMw2VMF3K/CaPWrvtz4CqzuOTB6qY NvWbMlWgFZZGEYegPF9YnQ0D4sA+hzLByUZhwQGyVA6ZX8O00CPerDlVfONCAJ7ARK 2K2O1Afi7A2lwo0Q3Nu1Y3wB5fpsPuq+Ubibl7QoSKe05k5Ue2mgK49ZGY1ZCa5I+/ cj0cD+SNKaiUw== Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features To: Len Brown , Thomas Gleixner Cc: Borislav Petkov , Willy Tarreau , Florian Weimer , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , linux-abi@vger.kernel.org, "libc-alpha@sourceware.org" , Rich Felker , Kyle Huey , Keno Fischer References: <20210415044258.GA6318@zn.tnic> <20210415052938.GA2325@1wt.eu> <20210415054713.GB6318@zn.tnic> <20210419141454.GE9093@zn.tnic> <20210419191539.GH9093@zn.tnic> <20210419215809.GJ9093@zn.tnic> <8735uxmucw.ffs@nanos.tec.linutronix.de> From: Andy Lutomirski Message-ID: Date: Wed, 19 May 2021 16:29:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/21 1:39 PM, Len Brown wrote: > On Sat, May 8, 2021 at 5:45 AM Thomas Gleixner wrote: > >> Where is #6 which describes the signal interaction? > > #6 Per the current ABI, Linux gives signal handlers access to all of > the hardware architectural state. > > #6a Signal Stack is on User Stack > > The architectural state is pushed on the user stack in uncompressed > XSTATE format. > > It is established that there exists application code that counts on > this opaque state being complete so that it can do a user-space > XRESTORE instead of a sigreturn(2). Is this established? Note that the specific case of a user program doing XRSTOR will work just fine if we omit the allocation of non-in-use states from the buffer, at least by my reading of the pseudocode. The case that would break is if user code then assumes that it can XSAVE back to the same buffer. > (My opinion is that not breaking > that legacy code is a requirement, and I'm actually shocked this view > is not unanimous) > It's pretty unanimous. But the legacy code that's broken has to actually exist for this to apply.