Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2455707rwb; Fri, 9 Dec 2022 02:15:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7uLt0Tu6vfqXzhwVOghGH7i2prXi7wFknl/7vanjtL2YMwdQto0Lt8V22x0pK6ZAhffdWS X-Received: by 2002:a17:906:1484:b0:78d:f455:3118 with SMTP id x4-20020a170906148400b0078df4553118mr3880842ejc.64.1670580944573; Fri, 09 Dec 2022 02:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670580944; cv=none; d=google.com; s=arc-20160816; b=WUeDyxoNI/KN7l77nJWvy7haGZolm/mkltWL5S9ZK0kj8VzNsT8nrthVNaFknQ5rG3 pJoQzXa+I+PssOxShr7rYKDtC3VU6zDvWIUHMDd57dqqcliPqC6lcrBJAArSGeWKnxsg wkaDQMxaAs8n8zASDECyGbWwpRufYjV/7Dn7a+gt7GLuvbMPsw/1ai2mTovIRTic3aiD 9lBscKPaZ9arUjUNcQEXx/KyvCsAce04NRDVrrTDgna42C6ZH7H2DUVUnwVMfTuIsGPP nxDqivs4EMOw6ZdbdvZuqg+ZEJxUFXofPrbU52S/cU+rI8y0SL2evR+JCI7/VoerfQLI sekw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=Unpex6/NiCsmNu3cvjnAB1nJqSua03CVH4d0B3gW9To=; b=Vhr1wfasO8RO3dPgkirAwDAIQ5KNG4oQQSkbCkjUnBogT2bAvWzAQLl6n97fdfqlPk +Y4bXZZLLWZAWCe8Bvr0gtev+qZzVEld9ATrqoscSWgYqxZTIOKwP1EzqPtoL7/XAjtr x5EHmkFCbnXSXIjDHZIB/WsGCV2z7AN3drjIw38yuLQ9DPSvjcl6fLfpi/iUV6UCvlhS 3xw7BgxLxgwGnvwWRkDUhC6kxNCJnpB4cnYcFBwacGxaQQ943T1uYMeeqWLXd1BIulI0 gZQ0aegB2spqBB/5P1B54Dezd+aar8hgFbjnaXhjIfhv2LZNlykoWOB2O4wvBF/HtM3E Og4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/qb9HTG"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr14-20020a170907720e00b007ad976163f4si976521ejc.254.2022.12.09.02.15.26; Fri, 09 Dec 2022 02:15:44 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R/qb9HTG"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbiLIKEH (ORCPT + 74 others); Fri, 9 Dec 2022 05:04:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbiLIKEG (ORCPT ); Fri, 9 Dec 2022 05:04:06 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0DB196 for ; Fri, 9 Dec 2022 02:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670580189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Unpex6/NiCsmNu3cvjnAB1nJqSua03CVH4d0B3gW9To=; b=R/qb9HTGrWxiUwnlqOK2SK9+8Bj5w/YMBedXExcwxGHYK+HYgzqx5Gg7L90MWVqgm2Kgnn I/KxHqE+IxgY+N/phNwCiQT9r0q0wThJ2KTi1CrFWhPexfgTDLAvTMA8RoXDP2cjo2v9fo iabsE131t7lhnwwx62XIcyoy27ZNG+w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-418-2rh5rKxzNzO0sMjpvC5Luw-1; Fri, 09 Dec 2022 05:03:07 -0500 X-MC-Unique: 2rh5rKxzNzO0sMjpvC5Luw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 328088582B9; Fri, 9 Dec 2022 10:03:06 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.168]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 886292166B26; Fri, 9 Dec 2022 10:03:01 +0000 (UTC) From: Florian Weimer To: Andrew Waterman Cc: Palmer Dabbelt , Vineet Gupta , stillson@rivosinc.com, Paul Walmsley , anup@brainfault.org, atishp@atishpatra.org, guoren@kernel.org, Conor Dooley , greentime.hu@sifive.com, vincent.chen@sifive.com, andy.chiu@sifive.com, Darius Rad , arnd@kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, bjorn@kernel.org, libc-alpha@sourceware.org, christoph.muellner@vrull.eu, Aaron Durbin , linux@rivosinc.com Subject: Re: RISCV Vector unit disabled by default for new task (was Re: [PATCH v12 17/17] riscv: prctl to enable vector commands) References: Date: Fri, 09 Dec 2022 11:02:57 +0100 In-Reply-To: (Andrew Waterman's message of "Thu, 8 Dec 2022 21:42:34 -1000") Message-ID: <877cz0nbce.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 * Andrew Waterman: > This suggests that ld.so, early-stage libc, or possibly both will need > to make this prctl() call, perhaps by parsing the ELF headers of the > binary and each library to determine if the V extension is used. If the string functions use the V extension, it will be enabled unconditionally. So I don't see why it's okay for libc to trigger this alleged UAPI change, when the kernel can't do it by default. Thanks, Florian