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 79F44EB64D7 for ; Mon, 26 Jun 2023 17:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjFZRpc (ORCPT ); Mon, 26 Jun 2023 13:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjFZRp0 (ORCPT ); Mon, 26 Jun 2023 13:45:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69AC10EF for ; Mon, 26 Jun 2023 10:45:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5DFA260F11 for ; Mon, 26 Jun 2023 17:45:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51AFAC433C0; Mon, 26 Jun 2023 17:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687801523; bh=+kUmBnlJJH57De2VxGhsUAjHC+GxcuB0Jy6ACQhtu1I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lVnF0ewmjn07l1/Loc4mw3nbnex0dnqjCAH6ay9NGIeCFqI6eAEQcQT0yqwvvpb5d 74Qj97QphTcXEAmP1zsB1si8XaFTYH6PcFX55gJmXBAV6U5NewvZJaSJ17hmncmbYN 27ztGL82x54Q8aqOLtzaGJrSC+tNLLsawHmwEHgAmPmwlHuRf30mRtGMh4KH1GXyhE czy9Jo1ffJYjy97NKWlT5Kq98q0awO/sgGdDsBLcJwwtgiIuY/OqW5mD/0VffGy63q D02/IQGnFHxLBBTLhDqc+ZpfhSZuw8iz4WUJUAjmEY/oWJnmT025q5ZCl4qF7tkIhc /na2/2kWtYuDg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-kernel@vger.kernel.org, linux@rivosinc.com, Palmer Dabbelt , =?utf-8?Q?R?= =?utf-8?Q?=C3=A9mi?= Denis-Courmont , Darius Rad , Andy Chiu Subject: Re: [PATCH v2] riscv: Discard vector state on syscalls In-Reply-To: <20230626165736.65927-1-bjorn@kernel.org> References: <20230626165736.65927-1-bjorn@kernel.org> Date: Mon, 26 Jun 2023 19:45:20 +0200 Message-ID: <87y1k6m827.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bj=C3=B6rn T=C3=B6pel writes: > From: Bj=C3=B6rn T=C3=B6pel > > The RISC-V vector specification states: > Executing a system call causes all caller-saved vector registers > (v0-v31, vl, vtype) and vstart to become unspecified. A bit of a corner case, but this will make sigreturn syscalls discard the vector state as well. Is that an issue? E.g. a user cannot build userspace context switching application. Does arm64 SVE handle sigreturn in a special way? Bj=C3=B6rn