Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1295117rwb; Fri, 7 Oct 2022 10:30:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79L6qcbX5OzkvD48GPmC9fog1YVoN9J8gOrjgVjG6jv0mUCu9UPMC9+OKxOyiA+H8xBRrv X-Received: by 2002:a17:907:97d2:b0:787:a9ee:8ced with SMTP id js18-20020a17090797d200b00787a9ee8cedmr4898076ejc.335.1665163809971; Fri, 07 Oct 2022 10:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665163809; cv=none; d=google.com; s=arc-20160816; b=nIO7G7TUzm4741asF4J/Km7i/e5nLyNOABrgPkusrtOLXgkDoeGmef1+gIfYquwvyR Nv2SQbNAocN0h0cb+O82lGZqchTsbsJSYw1yxoMlF7wmUVzd29mNd0Y8OlJVOf/vqS/w h+Vqwkwg2tFLgDFQuDE7XCShP2EE4LKa/8kzZWZxE/RX8mr1Cz9q/DyiGBJOE0RE6CSN fMEVs220ZW2hU4alKOmJWUjchJgxNUoM8/2dildM7k2i7AFf0KVUHr5gDaOtwTofCJSE qK8ng8ywSyOajl84p9FF0KUPAvSN/vHI+sNxZZqkxJSPKbG/e1BTcbmbWskrSkOgMeyB ezbw== 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:dkim-signature; bh=Qu0RZlUOKHKbdJ93oyFutpaLoUL4bQrVrDVJWi930ac=; b=QCe7aK+IJ/aQUz9B7qMsG1KM6D7SV73lpzPl9qSdUZkd4CxbFqx4z9dFxmcoaQ1yU0 VW93XlGRYZ3zRAkIgeKTBoMF6ZmfNn7BNw+AIs1X3vsScBnwnKCoBtuXql2jhwOWbr0V LzV4RtM2sSy5/LEeLDvX008Xb41O9vjOD3eLg4HjNl9SKkYvqkOn5rTernXoUI4hKW8V QEg0yAZXtLLLPxiGQ/e2b/7ODw1WURwqGxnB6CjBQAehlNDBWzaB6C6BKAMRqBtvVHje 6k8GIdBFlCp5GBRE311rPhXw4U7d0AuroABilozgswMaJv5d7gI9VLXzrcgUK0p1SUyI je6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Q0GO23CT; 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 hp36-20020a1709073e2400b0078d3ba4d567si1816129ejc.422.2022.10.07.10.29.42; Fri, 07 Oct 2022 10:30:09 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Q0GO23CT; 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 S229582AbiJGRSS (ORCPT + 99 others); Fri, 7 Oct 2022 13:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiJGRSO (ORCPT ); Fri, 7 Oct 2022 13:18:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE06D57D3; Fri, 7 Oct 2022 10:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Qu0RZlUOKHKbdJ93oyFutpaLoUL4bQrVrDVJWi930ac=; b=Q0GO23CTsRrxoMOQjBT07b+fbV xuHE10+DAr4bRVKdI21rVUamN7uWea2x2WNRmw/k4O6MPz8tcxa0e8gdbRgtcikOsgRm6U9bVNtj9 NemvdrSzkjq+5qZFSIqDfYcP8/khTwRJLWO0ENyhwlnjl6OavwwZ8pJQTslvlxA2g5xz9ZiMn/EMg /E+xc4H9GfCHrxZhwZiHBU/LTfFOo8WVgshOfZdrGzyNdpgp83WFv+VRxyL/XYtl5vEpxXugq7AaZ 2mOeZtggX+2Xr6/40reAzY+9g41G18YaYwerbGXemmx2SzKVpAHhNMH0SqaJq6UMRCnjJCBos635x D2zSOXeQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogqyr-0022Yg-Rl; Fri, 07 Oct 2022 17:17:50 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 911D3300155; Fri, 7 Oct 2022 19:17:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 753BC2BD94364; Fri, 7 Oct 2022 19:17:43 +0200 (CEST) Date: Fri, 7 Oct 2022 19:17:43 +0200 From: Peter Zijlstra To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Kees Cook , Alex Gaynor , Wedson Almeida Filho , David Gow , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927131518.30000-26-ojeda@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Tue, Sep 27, 2022 at 03:14:56PM +0200, Miguel Ojeda wrote: > Note that only x86_64 is covered and not all features nor mitigations > are handled, but it is enough as a starting point and showcases > the basics needed to add Rust support for a new architecture. Does it fail the build if required options are missing? Specifically are things like kCFI and IBT enabled? Silently not handling those will result in an unbootable image. As to missing mitigations; does it at least visibly warn people? I'm very *very* uncomfortable having to 'support' a half-arsed compiler like this.