[INFO] cloning repository https://github.com/muhammad-hassnain/mpk-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/muhammad-hassnain/mpk-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-hassnain%2Fmpk-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-hassnain%2Fmpk-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88c772a1f910faa4d513e7c3dc5da20a8686cefa [INFO] testing muhammad-hassnain/mpk-demo against 1.90.0 for beta-1.91-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-hassnain%2Fmpk-demo" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/muhammad-hassnain/mpk-demo [INFO] finished tweaking git repo https://github.com/muhammad-hassnain/mpk-demo [INFO] tweaked toml for git repo https://github.com/muhammad-hassnain/mpk-demo written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/muhammad-hassnain/mpk-demo on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/muhammad-hassnain/mpk-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.2.32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e0ce95f1fddb9ebb2306622e4849d0d2c0067157bcb2b61f532eb0fc5f638f3 [INFO] running `Command { std: "docker" "start" "-a" "7e0ce95f1fddb9ebb2306622e4849d0d2c0067157bcb2b61f532eb0fc5f638f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e0ce95f1fddb9ebb2306622e4849d0d2c0067157bcb2b61f532eb0fc5f638f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e0ce95f1fddb9ebb2306622e4849d0d2c0067157bcb2b61f532eb0fc5f638f3", kill_on_drop: false }` [INFO] [stdout] 7e0ce95f1fddb9ebb2306622e4849d0d2c0067157bcb2b61f532eb0fc5f638f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d762c4ef88268dffb6a8cac24869dc3123af0f25cb033b8f7b3bb5a4dea61b8f [INFO] running `Command { std: "docker" "start" "-a" "d762c4ef88268dffb6a8cac24869dc3123af0f25cb033b8f7b3bb5a4dea61b8f", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling mpk-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / core::arch::asm!( [INFO] [stdout] 19 | | "xor ecx, ecx; xor edx, edx; wrpkru", [INFO] [stdout] 20 | | in("eax") pkru, [INFO] [stdout] 21 | | options(nostack, preserves_flags) [INFO] [stdout] 22 | | ); [INFO] [stdout] | |_____^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe fn wrpkru(pkru: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::mmap` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let p = libc::mmap(ptr::null_mut(), len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe fn mmap_rw(len: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pkey_mprotect` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | let rc = pkey_mprotect(ptr as *mut c_void, len, prot, key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe fn tag(ptr: *mut u8, len: usize, prot: i32, key: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.18s [INFO] running `Command { std: "docker" "inspect" "d762c4ef88268dffb6a8cac24869dc3123af0f25cb033b8f7b3bb5a4dea61b8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d762c4ef88268dffb6a8cac24869dc3123af0f25cb033b8f7b3bb5a4dea61b8f", kill_on_drop: false }` [INFO] [stdout] d762c4ef88268dffb6a8cac24869dc3123af0f25cb033b8f7b3bb5a4dea61b8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac0a5b1d393d34693d4aa591e97ddf661cc8e3af8ef1ca41774a65bf190dc94f [INFO] running `Command { std: "docker" "start" "-a" "ac0a5b1d393d34693d4aa591e97ddf661cc8e3af8ef1ca41774a65bf190dc94f", kill_on_drop: false }` [INFO] [stderr] Compiling mpk-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / core::arch::asm!( [INFO] [stdout] 19 | | "xor ecx, ecx; xor edx, edx; wrpkru", [INFO] [stdout] 20 | | in("eax") pkru, [INFO] [stdout] 21 | | options(nostack, preserves_flags) [INFO] [stdout] 22 | | ); [INFO] [stdout] | |_____^ use of inline assembly [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe fn wrpkru(pkru: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::mmap` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let p = libc::mmap(ptr::null_mut(), len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe fn mmap_rw(len: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pkey_mprotect` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | let rc = pkey_mprotect(ptr as *mut c_void, len, prot, key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe fn tag(ptr: *mut u8, len: usize, prot: i32, key: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "ac0a5b1d393d34693d4aa591e97ddf661cc8e3af8ef1ca41774a65bf190dc94f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac0a5b1d393d34693d4aa591e97ddf661cc8e3af8ef1ca41774a65bf190dc94f", kill_on_drop: false }` [INFO] [stdout] ac0a5b1d393d34693d4aa591e97ddf661cc8e3af8ef1ca41774a65bf190dc94f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b496b3da5bbd816e7151842e8a3572e6eeb3065fcb19b15876f6dc0c31b0152f [INFO] running `Command { std: "docker" "start" "-a" "b496b3da5bbd816e7151842e8a3572e6eeb3065fcb19b15876f6dc0c31b0152f", kill_on_drop: false }` [INFO] [stderr] warning[E0133]: use of inline assembly is unsafe and requires unsafe block [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | / core::arch::asm!( [INFO] [stderr] 19 | | "xor ecx, ecx; xor edx, edx; wrpkru", [INFO] [stderr] 20 | | in("eax") pkru, [INFO] [stderr] 21 | | options(nostack, preserves_flags) [INFO] [stderr] 22 | | ); [INFO] [stderr] | |_____^ use of inline assembly [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: inline assembly is entirely unchecked and can cause undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/main.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | unsafe fn wrpkru(pkru: u32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `libc::mmap` is unsafe and requires unsafe block [INFO] [stderr] --> src/main.rs:36:13 [INFO] [stderr] | [INFO] [stderr] 36 | let p = libc::mmap(ptr::null_mut(), len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/main.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | unsafe fn mmap_rw(len: usize) -> *mut u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pkey_mprotect` is unsafe and requires unsafe block [INFO] [stderr] --> src/main.rs:41:14 [INFO] [stderr] | [INFO] [stderr] 41 | let rc = pkey_mprotect(ptr as *mut c_void, len, prot, key); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/main.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | unsafe fn tag(ptr: *mut u8, len: usize, prot: i32, key: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] warning: `mpk-demo` (bin "mpk-demo" test) generated 3 warnings (run `cargo fix --bin "mpk-demo" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mpk_demo-224f2bbfcde0ca25) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b496b3da5bbd816e7151842e8a3572e6eeb3065fcb19b15876f6dc0c31b0152f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b496b3da5bbd816e7151842e8a3572e6eeb3065fcb19b15876f6dc0c31b0152f", kill_on_drop: false }` [INFO] [stdout] b496b3da5bbd816e7151842e8a3572e6eeb3065fcb19b15876f6dc0c31b0152f