Re: [PATCH v6 07/23] rust: import upstream `alloc` crate

Kees Cook
2022-05-07T09:23:17Z

On Sat, May 07, 2022 at 07:24:05AM +0200, Miguel Ojeda wrote:
> This is a subset of the Rust standard library `alloc` crate,
> version 1.60.0, from:
>
> https://github.com/rust-lang/rust/tree/1.60.0/library/alloc/src
>
> The files are copied as-is, with no modifications whatsoever
> (not even adding the SPDX identifiers).

$ cd ~/src/rust
$ git checkout 1.60.0 -b krust
$ git submodule update --init --recursive

$ cd ~/src/linux
$ b4 shazam -P _ 20220507052451.12890-8-ojeda@kernel.org
$ cd rust/alloc
$ find . -type f -name '*.rs' | xargs sha256sum | \
(cd ~/src/rust/library/alloc/src && \
sha256sum -c -)
./raw_vec.rs: OK
./str.rs: OK
./boxed.rs: OK
./alloc.rs: OK
./fmt.rs: OK
./slice.rs: OK
./borrow.rs: OK
./vec/into_iter.rs: OK
./vec/spec_extend.rs: OK
./vec/drain_filter.rs: OK
./vec/mod.rs: OK
./vec/set_len_on_drop.rs: OK
./vec/is_zero.rs: OK
./vec/drain.rs: OK
./vec/partial_eq.rs: OK
./lib.rs: OK
./macros.rs: OK
./collections/mod.rs: OK
./string.rs: OK

Reviewed-by: Kees Cook <keescook@chromium.org>

--
Kees Cook