Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5259624rwb; Wed, 17 Aug 2022 14:16:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR79lo5IlijeKZgCZ7sE/C0azKIFFpJ1uPd9ozYYtqz8ppdfg9VVfpZaTXYrI6nWF0MlhV0O X-Received: by 2002:a17:907:8a0a:b0:730:a118:75de with SMTP id sc10-20020a1709078a0a00b00730a11875demr18333945ejc.189.1660770975593; Wed, 17 Aug 2022 14:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660770975; cv=none; d=google.com; s=arc-20160816; b=Ctl3IJ1f7+VmRkkR/nCqzCorJlJVYd37tdNaSEQfEb5nHwW47JPQC7pXzIwQnXRy7v qy/TnmkZXBBAaI2pc/IMlxj0GYuiL8WkAzD5AdzLZQfl92tGN4jnkxOykDLhyqfY/m5S KowuZBjnR46wQ4rcxgT/Cu/hOujZNlv35qSYaNJjitgSrO/MINwj/hz0+dk0Zc450Lde i5rloM46pY5A0R8a6N6PQRl9VxbZ4OevevbqvJXdlKiTz7S5SXc8q3LAwJqwvByDM8ni O+qo5OfkMaU2kR6rRs0WvWLEKTbq7fWsTSXOPzwzQZZoT70zQ2Hb4wbW9Wwo2xiTvq0x kHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=40iIAr8LYhq5AvW22C3hNEy4bzm1gOgGQLFh1Xg7rvI=; b=XAbkl9qAmrp18hL7ZL1BXv/mOv52AP2sbvZ3BxwvLq8uLCt0MveMlo7OgcqX4gf8J7 cE3rKI6ZNOBsAVKWQsFUAaQ/FSPQT4dJGLpXwNemuk3PDY4KzAditvJpARx4VPRxNIyx 5k91ED+B2SNU8p+ahCJx59eJqfXZ9E2LM6iba7LRzWYui2R8HIPcdnNv6F0QuWD3BzmA CNcoyB/VKbX+0HEVQhYKGx9nF92CSIhBIcPHSMv4BvhAbyqMK2VU6nDRNMvqt8YF5e3b CJLBihyts8qCHqlIgYF5khdgtYI8ZsN+Ihns5dkLWcZqcFijZ4Jk37D9IfKxQKs5uJqG VdoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UzVVbzii; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg15-20020a170907970f00b00722e3529906si13711642ejc.324.2022.08.17.14.15.46; Wed, 17 Aug 2022 14:16:15 -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=@gmail.com header.s=20210112 header.b=UzVVbzii; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242170AbiHQVAj (ORCPT + 99 others); Wed, 17 Aug 2022 17:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242132AbiHQVAh (ORCPT ); Wed, 17 Aug 2022 17:00:37 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09EAE44577; Wed, 17 Aug 2022 14:00:36 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id q16so1030275ile.1; Wed, 17 Aug 2022 14:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=40iIAr8LYhq5AvW22C3hNEy4bzm1gOgGQLFh1Xg7rvI=; b=UzVVbziiojQv3LCsqLxQ/RkYiVAPOLMi+ecGqOGoVaUva1PaYPrdnN5Kor+wyv+doe oTcltujdLHKR9FH1b8i2IkoPcsgoSA7EH5wfIGX2GntI/IPVrLr6nVCSRVMVN7IlRjL5 8tkCIFgNvhueXXmcaTok+gEBFkUmLIki7txlv8/l7GKHDBa0etfwuumZLwmAfl8qd0fB EAxbQFwZkFdoTaQfYHsh7FU5FbRyCHNU/OBBxIoh/tKonBmMAKr8IEs7H4Qd9wS4me1W XqvAgCsQ9nB2T6x++wkmAsOS0EoTMMbeycUNZ1H200y5AJxn493q1Jrb+EY4N2Wk2oVb FYcw== 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; bh=40iIAr8LYhq5AvW22C3hNEy4bzm1gOgGQLFh1Xg7rvI=; b=WRODdIYz5X2O965nJrkEjmYRD22QD25n4gBA/S7hwBSRNGYgNb5gz3guFhZa0hKYYO JkuwvV1aPKExYWqmhA056wVGNZG5KUiU1VD4m8SwYZVEKS+zFo8PoSyj4ihfv/xzPcEy sHeR5Bgb11XDfBL1jw1qIzKPkligTEP9pvHByduxHcgeKZ5mfG5YhdTu3RFWZTOeIwhL 2am4k66tbPRLz4bCjwyMBYC2NfqZOAC7dJuIMbZtWkucQOrRfqQ45O6FXNN2o+1jJutH AiCWIlLfbPWymgYQH8lM66VowgFWN9PPl64VnlB8El6wnJVyniHLoWQVP534Y4coNgkD FPmA== X-Gm-Message-State: ACgBeo3zOum9BFCM574yG/E0kl4GrdnnmhgT8wrzOCWYJB5nFB0Pa9FV /fWO1NRImPNOkWDqVpmeQOUgEsNr6Iz1c843GVo= X-Received: by 2002:a05:6e02:1ca9:b0:2e5:fa2a:6345 with SMTP id x9-20020a056e021ca900b002e5fa2a6345mr5042837ill.5.1660770035500; Wed, 17 Aug 2022 14:00:35 -0700 (PDT) MIME-Version: 1.0 References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-8-ojeda@kernel.org> <202208171257.E256DAA@keescook> In-Reply-To: <202208171257.E256DAA@keescook> From: Miguel Ojeda Date: Wed, 17 Aug 2022 23:00:24 +0200 Message-ID: Subject: Re: [PATCH v9 07/27] rust: import upstream `alloc` crate To: Kees Cook Cc: Miguel Ojeda , 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 , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, Aug 17, 2022 at 10:07 PM Kees Cook wrote: > > Can you include an easy script (in the commit log) for this kind of > verification? Of course, good idea! > For this, I have done: > > $ git am 0001-rust-import-upstream-alloc-crate.patch > $ for i in $(diffstat -lp3 0001-rust-import-upstream-alloc-crate.patch); do > wget --quiet -O check.rs \ > https://github.com/rust-lang/rust/raw/1.62.0/library/alloc/src/$i > diff -up rust/alloc/$i check.rs && echo $i: ok > rm -f check.rs > done Thanks for providing the steps like in the other version. This one is even fancier :) Cheers, Miguel