Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5222010rwb; Wed, 17 Aug 2022 13:24:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KZeQiDvAYZWu4/LBXNCiBZeHYEae0nHfSWzf/rgQg0OEXR7jEj8QHOjbDBzmfKLN51LDg X-Received: by 2002:a17:907:c12:b0:731:6473:baf6 with SMTP id ga18-20020a1709070c1200b007316473baf6mr17315255ejc.522.1660767865080; Wed, 17 Aug 2022 13:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660767865; cv=none; d=google.com; s=arc-20160816; b=B1Wj0hZZaKV+0g1cN5LQuXkC8m5NvxqMYeCn2POrXr5c2fUoFXhnk+dvJhxTJtwyjh zzn6CEksHHrA6lvk3mb7kYUthrv4MGxffbYbDI8F42yC3YoWESa1ScQ7zhgqA1JuSAo9 08z5ygvcz3Feh7oiBWxfXNfkVtUpg5Oe/sCBP9mAfVikG3sS1OQzrGJZRl/FgaPgpARx 94rNs6vATrc/w8pwlqcDIYS7i5SZWhTxxksKHt2AZHkllvTA1JCpdtjWg78jLLq9cTB7 P+mx/x6u0+wrseXtpgYF5boK5nhNow2RC2/aVrAaEqDch9/zc0SrhrvgCyYFYKvQAZ4E Ldyg== 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=FbyLuHm2xhCUGL19AXt8ffDVo0+YYpSKzX1/TVHy8eM=; b=ck2EpEuej+hPgRqh7CEAeB4jS9nvioucZLTI92VRDX9ZDpuSNraoeJlS1DvKIp9Vf5 OrABApSjeLETxtjUdc3LwvA4Po9tGLRvBeePgadsRhW/6Znb/pK5JtEMNjJByqcODTte CvGnXan0lbdnb+8BFZAaGeiog0kwShQtWeOKKm0QEKUzrkRasPrKJQ/B/wcngJp6TLjT sHiovnrgfoTy8vw3E6G1UsIxujN31g/X/f9HZS9N4av2oOVsKpf8cRioTXEiS7HlQH4Y BB0SIARQ73r3eiQ3LGUXvV8ye8Tj/p8ZGrw9YdR7ycMOT5GOhaxhGwwzaa7pYijntUzP wrVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Lv35uPWK; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt11-20020a170906ee8b00b007305f8cc1d8si13861501ejb.819.2022.08.17.13.23.54; Wed, 17 Aug 2022 13:24:25 -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=@chromium.org header.s=google header.b=Lv35uPWK; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241841AbiHQUOt (ORCPT + 99 others); Wed, 17 Aug 2022 16:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241854AbiHQUOj (ORCPT ); Wed, 17 Aug 2022 16:14:39 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1FA65B788 for ; Wed, 17 Aug 2022 13:14:35 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id f30so12970709pfq.4 for ; Wed, 17 Aug 2022 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=FbyLuHm2xhCUGL19AXt8ffDVo0+YYpSKzX1/TVHy8eM=; b=Lv35uPWK2dCxFc6yKVS0QrTwKJd+DyqJAJDYLYlMNmXnRdKNAscIzcoSbCxJgpBnQB wQyvuIuUxU1fialRwVmxITfAZuI+GS568dLSXNWfMr5o3ox+DM5xajm7FgElyHdDnT46 zfV825m20a/8rKJz/wJGMOGiHSoVcZptheJsM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=FbyLuHm2xhCUGL19AXt8ffDVo0+YYpSKzX1/TVHy8eM=; b=2a/eb9CDskCtYKHlKzt5n3PUaZiWy4ezV1Kgn8qO8HJ7+jKKgLetfaqSwptVVguZUQ kt54mj5FFWqhZs50r4mWipJct/DQkJhfeqqIHt7Mc8i3FmN5fJ0uhH97LYSL9IgzugxP 3wuon8QIP6pOmmvBeT7jD3xDOb/nnsb9Lpt/ERZcYsVz7D02WadTIKifwcw3KjK/QiXy elBzE8vyohLF6wVfbqfni0xc81BmyFeVPV2cCOwIcleu+DqWaIWXco8CVWYxdMBqi+3k n1/IesQxM01FJOu4wxp3z0mDycTeIus2uY22QfG4Q3uLwisPGuKi/kJPNlAGeNGrNmYA sVfQ== X-Gm-Message-State: ACgBeo2Sugjb1xhM+TcZWRRETXas5kRqB+8mVJlpw83Vl3FyKwySnkKi 0WgzY4sEFpXo9vEd6IwRvO55sQ== X-Received: by 2002:a65:458c:0:b0:428:ee87:33a8 with SMTP id o12-20020a65458c000000b00428ee8733a8mr13953189pgq.272.1660767274298; Wed, 17 Aug 2022 13:14:34 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e3-20020a056a0000c300b0052e7f103138sm10910092pfj.38.2022.08.17.13.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 13:14:33 -0700 (PDT) Date: Wed, 17 Aug 2022 13:14:32 -0700 From: Kees Cook 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 , Alex Gaynor , Wedson Almeida Filho , David Gow , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron Subject: Re: [PATCH v9 19/27] scripts: add `generate_rust_target.rs` Message-ID: <202208171314.D38EF72778@keescook> References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-20-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805154231.31257-20-ojeda@kernel.org> 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, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Aug 05, 2022 at 05:42:04PM +0200, Miguel Ojeda wrote: > This script takes care of generating the custom target specification > file for `rustc`, based on the kernel configuration. > > It also serves as an example of a Rust host program. > > A dummy architecture is kept in this patch so that a later patch > adds x86 support on top with as few changes as possible. > > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor Reviewed-by: Kees Cook -- Kees Cook