From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 911C3EB64D9 for ; Mon, 26 Jun 2023 21:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjFZVr0 (ORCPT ); Mon, 26 Jun 2023 17:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjFZVrW (ORCPT ); Mon, 26 Jun 2023 17:47:22 -0400 X-Greylist: delayed 517 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 26 Jun 2023 14:47:19 PDT Received: from port70.net (port70.net [81.7.13.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC8351701; Mon, 26 Jun 2023 14:47:19 -0700 (PDT) Received: by port70.net (Postfix, from userid 1002) id A4A2AABEC0C7; Mon, 26 Jun 2023 23:38:40 +0200 (CEST) Date: Mon, 26 Jun 2023 23:38:40 +0200 From: Szabolcs Nagy To: Stafford Horne Cc: LKML , Linux OpenRISC , Jonas Bonn , Stefan Kristiansson , Eric Biederman , Kees Cook , "Jason A. Donenfeld" , Dominik Brodowski , linux-mm@kvack.org Subject: Re: [PATCH 3/4] openrisc: Support floating point user api Message-ID: <20230626213840.GA1236108@port70.net> References: <20230418165813.1900991-1-shorne@gmail.com> <20230418165813.1900991-4-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418165813.1900991-4-shorne@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Stafford Horne [2023-04-18 17:58:12 +0100]: > Add support for handling floating point exceptions and forwarding the > SIGFPE signal to processes. Also, add fpu state to sigcontext. > > Signed-off-by: Stafford Horne > --- ... > --- a/arch/openrisc/include/uapi/asm/sigcontext.h > +++ b/arch/openrisc/include/uapi/asm/sigcontext.h > @@ -28,6 +28,7 @@ > > struct sigcontext { > struct user_regs_struct regs; /* needs to be first */ > + struct __or1k_fpu_state fpu; > unsigned long oldmask; > }; this seems to break userspace abi. glibc and musl have or1k abi without this field. either this is a new abi where binaries opt-in with some marking and then the base sigcontext should be unmodified, or the fp state needs to be added to the signal frame in a way that does not break existing abi (e.g. end of the struct ?) and also advertise the new thing via a hwcap, otherwise userspace cannot make use of it. unless i'm missing something.