From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by sourceware.org (Postfix) with ESMTPS id 5CF9F3858D33 for ; Wed, 28 Dec 2022 10:53:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5CF9F3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-yb1-xb2f.google.com with SMTP id g4so17127037ybg.7 for ; Wed, 28 Dec 2022 02:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VYOrDaVPNtLJtH5uQsxA5/SQ8gOQzjZNBqZBKz0xxG0=; b=ILJQ7viatc/sWoyOI6PgtljXBOzmpwzBfQDAilKs0B6lwQrjq5HL7DwvwtpULJvt+1 VQiqR85zvOp65xAM1/XCEnF7K2ODOUqj3WaYZR8wDgWyA3svNDGXdDbHeflF1uxVF1AQ u8fT/3Do0CZWgdttJ9tx9iDeOYe5qyzDCiw7O2L1Ig45+LB8MW5X4fsn5lsRogFPFPtv sOmyIiwDBYDPu+u4ktRS0pSJfr1kJds5ARUCYc0mfpI08EPrQxFu26EHhsDo0fEXkZDh blZHc/AFCwjcNQLp0v7r+fWkgujkFDa13YnVy6Z8h3VTinqJGNGW8dJxdcyz6doOZchy YOyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VYOrDaVPNtLJtH5uQsxA5/SQ8gOQzjZNBqZBKz0xxG0=; b=q6VpDu5+2yA5SN76vk5bo0AQzXGNfNuGXRhP2FP9i20v/5Y8TSvgj8D1gyd8gegXzJ yxyLqJYDT5ezi54aSIBYi3pNGtDxoKmoDcfY7cLUoV/RZO2GcruRM/tKy7tOoVXxCphy K+pkshN8fwdW+JrXPnUOZR9c5mw3IvNkKO8SfQt8q0WhXhviN8JZXDwD8f7Z2PPsCC53 DsWNlX1ZyrC5VldDPxReclPH4WvndXaouc1cTB0QQWiZnCbQ+T2zdKSEFmkqu5JsbFvV Bb4R6Pn5SmHYU2JUIH5DOQeaj6f5Tj3LqmM8C8R6CckB592YAFcsrX8oCeCZz49zXy9U qcqg== X-Gm-Message-State: AFqh2koZ53w7tvnFPbe+aRqadzJ19VqUT9cs57aSZN5xyKaBFMVtuJRy rEG91OveL/hIHNjsyMbisqGpFxNdQSDz4fs2xpURMA== X-Google-Smtp-Source: AMrXdXv/GrM455c4rEBnKdZooiFGmjG1NTCk/v2lDmwd21IG3IVAcgpI6Rtyppcz1ffeXX4Ot750lfNJRV7K8y/bRWY= X-Received: by 2002:a25:eb10:0:b0:6d3:bab1:8d32 with SMTP id d16-20020a25eb10000000b006d3bab18d32mr2467180ybs.541.1672224828642; Wed, 28 Dec 2022 02:53:48 -0800 (PST) MIME-Version: 1.0 References: <1631497278-29829-1-git-send-email-vincent.chen@sifive.com> <1631497278-29829-3-git-send-email-vincent.chen@sifive.com> <871r5sd1zq.fsf@oldenburg.str.redhat.com> <20210913135247.GL13220@brightrain.aerifal.cx> <87sfy5ndid.fsf@oldenburg.str.redhat.com> <73c0124c-4794-6e40-460c-b26df407f322@rivosinc.com> <50c598a6-e3b3-3062-abe7-23a406067533@rivosinc.com> <7430f494-9b43-5e03-c1e9-6b83e2611a11@rivosinc.com> <91ef3c45-165f-d2b3-7c77-322c01802c41@rivosinc.com> In-Reply-To: <91ef3c45-165f-d2b3-7c77-322c01802c41@rivosinc.com> From: Andy Chiu Date: Wed, 28 Dec 2022 18:53:37 +0800 Message-ID: Subject: Re: Adding V-ext regs to signal context w/o expanding kernel struct sigcontext to avoid glibc ABI break To: Vineet Gupta Cc: Richard Henderson , Vincent Chen , Florian Weimer , Rich Felker , Andrew Waterman , Palmer Dabbelt , Kito Cheng , =?UTF-8?Q?Christoph_M=C3=BCllner?= , davidlt@rivosinc.com, Arnd Bergmann , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Philipp Tomsich , Szabolcs Nagy , Greentime Hu , Aaron Durbin , Andrew de los Reyes , linux-riscv , GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Dec 23, 2022 at 4:28 AM Vineet Gupta wrote: > This approach looks perfect. Lets productize it to fold this patch into > the respective patch(es). > We would then need fixups to not unconditionally enable V on fork/execve > and hook that up to a prctl. > Let me work on that and provide something on top of your series. Hi Vineet, I have included the approach into the Vector series according to suggestions, which makes it formaler than the PoC one. Additionally, I picked up your prctl patch and added a kconfig to compile a kernel that won't unconditionally enable V. Please tell me if this does not seem right to you. I will submit the series if this seems well to you and let's discuss some more details further in that thread. Here is the tree, thanks: https://github.com/sifive/riscv-linux/tree/dev/andyc/for-next-v13.1-newapi-prctl -Andy