Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16754814rwd; Mon, 26 Jun 2023 14:51:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SbJNt5FTv+yNjvWM71X0zgXzGokv6XerxSyhxL4wgNl4rhjESlGQWN2+5VF5AMMr4mxB/ X-Received: by 2002:a17:902:dac9:b0:1b7:c362:6ce9 with SMTP id q9-20020a170902dac900b001b7c3626ce9mr9788822plx.13.1687816318574; Mon, 26 Jun 2023 14:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687816318; cv=none; d=google.com; s=arc-20160816; b=IeMyz9SACElIkooNb/w7gtFs2/afU1tZZsYmscBnhzT3sWLHVPUrJCjMlhsc9fT+ya Yfues5TMfM5fgGqMweGsSliQIcrqa/8eKYiXjwmD26WOEyaLXizYMDNBaJ31sjH3JSzm h4gu3a3G8Ir11BQEb0b6djPrt+w66S2RzEyjIPMdGcBxvUfBaVs/Ac4BaTaBNWvIOcb/ OZ3oD5/zt+88Auk+wC1SCWonOOkUe7xF6avZbSpgVT3TpiDAR6LnzcKdNB54SjkM5pDr Q7gGo/YitCKT1rZ12yuFploJu/dzQ33jid5KvK3dlLPx+EjtCjE4daXvLUDqZf/HiO5l aw3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vd4fbVU+bE4Bae5nF7RsWxeVw9nw5j3BhVoW+lZoxfw=; fh=TFdeVx9Z8ttkopB8Wh3x/MNXpKq4n+tQFDs3N3qOlv4=; b=IejcCD7XoswxyVLmA/ymWG79GgXmGKQ+avzXc39bAk/UWkITvdlvOgw3X9k+Kj9Cv+ c5RS6mv/tJmLuaRxqNA9OvMWaa4wX/6elGpsxswXNRW8A9K3VCBcuroa2PLsIE/QrXAN VzautY1VgUXTSDMGXWRci7nehuIj2Kte+d624YBCOszE6o5PlM01W9s4SOnK6W7NXmBb KpUcwc4779qDJFGEsD6FhQlP7iIitWlbPrhqJK33kiha3Z94yWw2z0v7LPnrHYtv+sjH hI0xysV0IxrzYKRwlei8j5HelLVP88/ZD0zt8jF8HF5OV5HXH7tWCLfx+dMYKiRQgv8x Vx7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170902d4c900b001b248529a66si6060921plg.624.2023.06.26.14.51.46; Mon, 26 Jun 2023 14:51:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbjFZVrZ (ORCPT + 99 others); Mon, 26 Jun 2023 17:47:25 -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> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 * 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.