[INFO] cloning repository https://github.com/wssheldon/scaryedr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wssheldon/scaryedr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwssheldon%2Fscaryedr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwssheldon%2Fscaryedr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7cfe899d09ce7d0300b3ec78c51892943efaaef [INFO] checking wssheldon/scaryedr against master#a9e7b30487235621751cc628f170c0f15fb215c4 for pr-136539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwssheldon%2Fscaryedr" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wssheldon/scaryedr on toolchain a9e7b30487235621751cc628f170c0f15fb215c4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/wssheldon/scaryedr [INFO] finished tweaking git repo https://github.com/wssheldon/scaryedr [INFO] tweaked toml for git repo https://github.com/wssheldon/scaryedr written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/wssheldon/scaryedr 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" "+a9e7b30487235621751cc628f170c0f15fb215c4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc1/source/scary-ebpf-process/Cargo.toml: unused manifest key: build [INFO] [stderr] warning: /workspace/builds/worker-4-tc1/source/scary/Cargo.toml: unused manifest key: package.ebpf_debug_path [INFO] [stderr] warning: /workspace/builds/worker-4-tc1/source/scary/Cargo.toml: unused manifest key: package.ebpf_release_path [INFO] [stderr] Updating git repository `https://github.com/aya-rs/aya` [INFO] [stderr] Updating git submodule `https://github.com/libbpf/libbpf` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded core-error v0.0.0 [INFO] [stderr] Downloaded aws-endpoint v0.55.3 [INFO] [stderr] Downloaded std-ext v0.3.1 [INFO] [stderr] Downloaded queue-ext v0.4.1 [INFO] [stderr] Downloaded aya-log-common v0.1.15 [INFO] [stderr] Downloaded aws-smithy-checksums v0.55.3 [INFO] [stderr] Downloaded dequemap v0.2.1 [INFO] [stderr] Downloaded aws-sdk-sso v0.28.0 [INFO] [stderr] Downloaded aws-smithy-http v0.55.3 [INFO] [stderr] Downloaded aws-smithy-client v0.55.3 [INFO] [stderr] Downloaded zerocopy-derive v0.8.9 [INFO] [stderr] Downloaded aws-sdk-sts v0.28.0 [INFO] [stderr] Downloaded aya-obj v0.2.1 [INFO] [stderr] Downloaded aws-config v0.55.3 [INFO] [stderr] Downloaded aws-smithy-types v0.55.3 [INFO] [stderr] Downloaded aya v0.13.1 [INFO] [stderr] Downloaded aws-sigv4 v0.55.3 [INFO] [stderr] Downloaded zerocopy v0.8.9 [INFO] [stderr] Downloaded aws-smithy-json v0.55.3 [INFO] [stderr] Downloaded aws-smithy-eventstream v0.55.3 [INFO] [stderr] Downloaded aws-http v0.55.3 [INFO] [stderr] Downloaded aws-sig-auth v0.55.3 [INFO] [stderr] Downloaded aws-smithy-xml v0.55.3 [INFO] [stderr] Downloaded aws-smithy-async v0.55.3 [INFO] [stderr] Downloaded aws-credential-types v0.55.3 [INFO] [stderr] Downloaded aws-smithy-http-tower v0.55.3 [INFO] [stderr] Downloaded aws-types v0.55.3 [INFO] [stderr] Downloaded aya-log v0.2.1 [INFO] [stderr] Downloaded network-types v0.0.7 [INFO] [stderr] Downloaded mpsc v0.2.5 [INFO] [stderr] Downloaded aws-smithy-query v0.55.3 [INFO] [stderr] Downloaded aws-sdk-s3 v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e0fde7052e9131462a47d3f32a39bd42e28558ae4c599cbee3ac788eb3ee4e5 [INFO] running `Command { std: "docker" "start" "-a" "9e0fde7052e9131462a47d3f32a39bd42e28558ae4c599cbee3ac788eb3ee4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e0fde7052e9131462a47d3f32a39bd42e28558ae4c599cbee3ac788eb3ee4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e0fde7052e9131462a47d3f32a39bd42e28558ae4c599cbee3ac788eb3ee4e5", kill_on_drop: false }` [INFO] [stdout] 9e0fde7052e9131462a47d3f32a39bd42e28558ae4c599cbee3ac788eb3ee4e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 696f110c106f6d9452cfdd1ac9d2a9bb23f015172eb6125c067015ac3ad177df [INFO] running `Command { std: "docker" "start" "-a" "696f110c106f6d9452cfdd1ac9d2a9bb23f015172eb6125c067015ac3ad177df", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/scary/Cargo.toml: unused manifest key: package.ebpf_debug_path [INFO] [stderr] warning: /opt/rustwide/workdir/scary/Cargo.toml: unused manifest key: package.ebpf_release_path [INFO] [stderr] warning: /opt/rustwide/workdir/scary-ebpf-process/Cargo.toml: unused manifest key: build [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking foldhash v0.1.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling aya-ebpf-cty v0.2.2 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling aya-ebpf-bindings v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling aws-types v0.55.3 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking vsimd v0.8.0 [INFO] [stderr] Checking outref v0.5.1 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Compiling aya-ebpf v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling zerocopy v0.8.9 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking aws-smithy-types v0.55.3 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling core-error v0.0.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking aws-smithy-eventstream v0.55.3 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling aya-log-common v0.1.15 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling aya-ebpf-macros v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling aya-log-parser v0.1.13 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling aya-log-ebpf-macros v0.1.0 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling zerocopy-derive v0.8.9 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-stream v0.1.16 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking aws-smithy-async v0.55.3 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking aws-credential-types v0.55.3 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking aya-log-ebpf v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking scary-ebpf-common v0.1.0 (/opt/rustwide/workdir/scary-ebpf-common) [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stdout] warning: unused imports: `kprobe` and `map` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use aya_ebpf::macros::{kprobe, map}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `PerCpuArray`, and `PerfEventArray` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use aya_ebpf::maps::{HashMap, PerCpuArray, PerfEventArray}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aws-smithy-json v0.55.3 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Checking aws-smithy-xml v0.55.3 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking aws-smithy-http v0.55.3 [INFO] [stderr] Checking hyper-rustls v0.23.2 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking aws-smithy-http-tower v0.55.3 [INFO] [stderr] Checking aws-smithy-client v0.55.3 [INFO] [stderr] Checking aws-sigv4 v0.55.3 [INFO] [stdout] warning: unused imports: `kprobe` and `map` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use aya_ebpf::macros::{kprobe, map}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `PerCpuArray`, and `PerfEventArray` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use aya_ebpf::maps::{HashMap, PerCpuArray, PerfEventArray}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aws-endpoint v0.55.3 [INFO] [stderr] Checking aws-sig-auth v0.55.3 [INFO] [stderr] Checking aws-http v0.55.3 [INFO] [stderr] Checking aya-obj v0.2.1 [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> scary-ebpf-common/src/error.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn into_error(self, context: &'static str) -> Error { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:247:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn emit_event(&self, event: &Event) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aya-log-common v0.1.15 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking aws-smithy-query v0.55.3 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking aya v0.13.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking anstyle v1.0.9 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking anstream v0.6.17 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking aws-smithy-checksums v0.55.3 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking aws-sdk-sts v0.28.0 [INFO] [stderr] Checking aws-sdk-sso v0.28.0 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking aya-log v0.2.1 [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> scary-ebpf-common/src/error.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn into_error(self, context: &'static str) -> Error { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:247:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn emit_event(&self, event: &Event) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking aws-config v0.55.3 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking scary-userspace-common v0.1.0 (/opt/rustwide/workdir/scary-userspace-common) [INFO] [stderr] Checking aws-sdk-s3 v0.28.0 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking dequemap v0.2.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking std-ext v0.3.1 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking queue-ext v0.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Checking ebpf v0.1.0 (/opt/rustwide/workdir/ebpf) [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> ebpf/src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bpf_loop` [INFO] [stdout] --> ebpf/src/events/path.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | bpf_loop, bpf_probe_read_kernel, bpf_probe_read_kernel_buf, bpf_probe_read_kernel_str_bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be16` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | type __be16 = u16; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be16` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be32` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | type __be32 = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bpf_get_current_task` and `bpf_probe_read_kernel` [INFO] [stdout] --> ebpf/src/events.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_task, bpf_get_current_uid_gid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | bpf_get_prandom_u32, bpf_ktime_get_ns, bpf_probe_read_kernel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scary_ebpf_common::bindings::task_struct` [INFO] [stdout] --> ebpf/src/events.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use scary_ebpf_common::bindings::task_struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros::kprobe` and `programs::ProbeContext` [INFO] [stdout] --> ebpf/src/programs/execve.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | macros::kprobe, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | programs::ProbeContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecveEvent`, `Type`, and `maps::send` [INFO] [stdout] --> ebpf/src/programs/execve.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | execve::{ExecveData, ExecveEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | }, [INFO] [stdout] 18 | maps::send, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SslData` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::events::ssl::{SslData, SslEvent, MAX_BUF_SIZE}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/events/path.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> ebpf/src/events/path.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | for depth in 0..3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/programs/execve.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> ebpf/src/programs/file.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | file: &FileRef, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_len` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let read_len = if bytes > MAX_BUF_SIZE as i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/events/path.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_process_info` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_process_info(data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_filename` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_filename(filename_ptr: *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_arguments` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_arguments(argv_ptr: *const *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathData` is never constructed [INFO] [stdout] --> ebpf/src/programs/execve.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct PathData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cwd` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe fn read_cwd(buffer: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/file.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let event_buf = unsafe { FILE_EVENT_BUFFER.get_ptr_mut(0) }.ok_or(-1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | match BUFFERS.insert(&tgid, &buf_ptr, 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | match BUFFERS.get(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | match STORAGE.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | match BUFFERS.remove(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> ebpf/src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bpf_loop` [INFO] [stdout] --> ebpf/src/events/path.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | bpf_loop, bpf_probe_read_kernel, bpf_probe_read_kernel_buf, bpf_probe_read_kernel_str_bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be16` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | type __be16 = u16; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be16` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be32` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | type __be32 = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bpf_get_current_task` and `bpf_probe_read_kernel` [INFO] [stdout] --> ebpf/src/events.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_task, bpf_get_current_uid_gid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | bpf_get_prandom_u32, bpf_ktime_get_ns, bpf_probe_read_kernel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scary_ebpf_common::bindings::task_struct` [INFO] [stdout] --> ebpf/src/events.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use scary_ebpf_common::bindings::task_struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros::kprobe` and `programs::ProbeContext` [INFO] [stdout] --> ebpf/src/programs/execve.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | macros::kprobe, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | programs::ProbeContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecveEvent`, `Type`, and `maps::send` [INFO] [stdout] --> ebpf/src/programs/execve.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | execve::{ExecveData, ExecveEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | }, [INFO] [stdout] 18 | maps::send, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SslData` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::events::ssl::{SslData, SslEvent, MAX_BUF_SIZE}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/events/path.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> ebpf/src/events/path.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | for depth in 0..3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/programs/execve.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> ebpf/src/programs/file.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | file: &FileRef, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_len` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let read_len = if bytes > MAX_BUF_SIZE as i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/events/path.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_process_info` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_process_info(data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_filename` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_filename(filename_ptr: *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_arguments` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_arguments(argv_ptr: *const *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathData` is never constructed [INFO] [stdout] --> ebpf/src/programs/execve.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct PathData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cwd` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe fn read_cwd(buffer: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/file.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let event_buf = unsafe { FILE_EVENT_BUFFER.get_ptr_mut(0) }.ok_or(-1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | match BUFFERS.insert(&tgid, &buf_ptr, 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | match BUFFERS.get(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | match STORAGE.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | match BUFFERS.remove(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking pathdiff v0.2.2 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking mpsc v0.2.5 [INFO] [stderr] Checking network-types v0.0.7 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking scary-ebpf-net v0.1.0 (/opt/rustwide/workdir/scary-ebpf-net) [INFO] [stdout] warning: unused imports: `EbpfContext`, `bpf_get_current_comm`, and `bpf_get_current_uid_gid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_uid_gid, bpf_ktime_get_ns, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | EbpfContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventBuilder`, `NetworkEventBuilder`, and `context::BpfContext` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | context::BpfContext, Event, EventBuilder, EventPayload, EventType, NetworkEventBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EbpfContext`, `bpf_get_current_comm`, and `bpf_get_current_uid_gid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_uid_gid, bpf_ktime_get_ns, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | EbpfContext, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventBuilder`, `NetworkEventBuilder`, and `context::BpfContext` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | context::BpfContext, Event, EventBuilder, EventPayload, EventType, NetworkEventBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | let len = ctx.arg::(2).ok_or(1)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:344:9 [INFO] [stdout] | [INFO] [stdout] 344 | let len = ctx.arg::(2).ok_or(1)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some(storage) = TEMP_DATA.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | let event_ptr = TEMP_EVENTS.get_ptr_mut(0).ok_or(Error::Map(-1))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:131:18 [INFO] [stdout] | [INFO] [stdout] 131 | unsafe { TEMP_DATA.get_ptr_mut(0).map(|p| *p).ok_or(Error::Map(-1)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | let len = ctx.arg::(2).ok_or(1)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sockfd` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | let sockfd = ctx.arg::(0).ok_or(1)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sockfd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:344:9 [INFO] [stdout] | [INFO] [stdout] 344 | let len = ctx.arg::(2).ok_or(1)?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid_tgid` [INFO] [stdout] --> scary-ebpf-net/src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | let pid_tgid = bpf_get_current_pid_tgid(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pid_tgid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some(storage) = TEMP_DATA.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | let event_ptr = TEMP_EVENTS.get_ptr_mut(0).ok_or(Error::Map(-1))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | EVENTS.output(self.0, event, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-net/src/main.rs:131:18 [INFO] [stdout] | [INFO] [stdout] 131 | unsafe { TEMP_DATA.get_ptr_mut(0).map(|p| *p).ok_or(Error::Map(-1)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> ebpf/src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bpf_loop` [INFO] [stdout] --> ebpf/src/events/path.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | bpf_loop, bpf_probe_read_kernel, bpf_probe_read_kernel_buf, bpf_probe_read_kernel_str_bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be16` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | type __be16 = u16; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be16` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be32` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | type __be32 = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bpf_get_current_task` and `bpf_probe_read_kernel` [INFO] [stdout] --> ebpf/src/events.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_task, bpf_get_current_uid_gid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | bpf_get_prandom_u32, bpf_ktime_get_ns, bpf_probe_read_kernel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scary_ebpf_common::bindings::task_struct` [INFO] [stdout] --> ebpf/src/events.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use scary_ebpf_common::bindings::task_struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros::kprobe` and `programs::ProbeContext` [INFO] [stdout] --> ebpf/src/programs/execve.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | macros::kprobe, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | programs::ProbeContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecveEvent`, `Type`, and `maps::send` [INFO] [stdout] --> ebpf/src/programs/execve.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | execve::{ExecveData, ExecveEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | }, [INFO] [stdout] 18 | maps::send, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SslData` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::events::ssl::{SslData, SslEvent, MAX_BUF_SIZE}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking xtask v0.1.0 (/opt/rustwide/workdir/xtask) [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> ebpf/src/main.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bpf_loop` [INFO] [stdout] --> ebpf/src/events/path.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | bpf_loop, bpf_probe_read_kernel, bpf_probe_read_kernel_buf, bpf_probe_read_kernel_str_bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be16` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | type __be16 = u16; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be16` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be32` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | type __be32 = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bpf_get_current_task` and `bpf_probe_read_kernel` [INFO] [stdout] --> ebpf/src/events.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_task, bpf_get_current_uid_gid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | bpf_get_prandom_u32, bpf_ktime_get_ns, bpf_probe_read_kernel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scary_ebpf_common::bindings::task_struct` [INFO] [stdout] --> ebpf/src/events.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use scary_ebpf_common::bindings::task_struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros::kprobe` and `programs::ProbeContext` [INFO] [stdout] --> ebpf/src/programs/execve.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | macros::kprobe, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | programs::ProbeContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecveEvent`, `Type`, and `maps::send` [INFO] [stdout] --> ebpf/src/programs/execve.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | execve::{ExecveData, ExecveEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | }, [INFO] [stdout] 18 | maps::send, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SslData` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::events::ssl::{SslData, SslEvent, MAX_BUF_SIZE}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/events/path.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> ebpf/src/events/path.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | for depth in 0..3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/programs/execve.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> ebpf/src/programs/file.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | file: &FileRef, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_len` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let read_len = if bytes > MAX_BUF_SIZE as i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/events/path.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_process_info` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_process_info(data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_filename` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_filename(filename_ptr: *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_arguments` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_arguments(argv_ptr: *const *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathData` is never constructed [INFO] [stdout] --> ebpf/src/programs/execve.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct PathData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cwd` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe fn read_cwd(buffer: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/file.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let event_buf = unsafe { FILE_EVENT_BUFFER.get_ptr_mut(0) }.ok_or(-1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | match BUFFERS.insert(&tgid, &buf_ptr, 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | match BUFFERS.get(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | match STORAGE.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | match BUFFERS.remove(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/events/path.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> ebpf/src/events/path.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | for depth in 0..3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scary-ebpf-file v0.1.0 (/opt/rustwide/workdir/scary-ebpf-file) [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/programs/execve.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> ebpf/src/programs/file.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | file: &FileRef, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_len` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let read_len = if bytes > MAX_BUF_SIZE as i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/events/path.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_process_info` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_process_info(data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_filename` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_filename(filename_ptr: *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_arguments` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_arguments(argv_ptr: *const *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathData` is never constructed [INFO] [stdout] --> ebpf/src/programs/execve.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct PathData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cwd` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe fn read_cwd(buffer: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/file.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let event_buf = unsafe { FILE_EVENT_BUFFER.get_ptr_mut(0) }.ok_or(-1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | match BUFFERS.insert(&tgid, &buf_ptr, 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | match BUFFERS.get(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | match STORAGE.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | match BUFFERS.remove(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comm_str` [INFO] [stdout] --> scary-ebpf-file/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let comm_str = get_comm_str(&comm); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comm_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-file/src/main.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | if unsafe { WATCHED_INODES.get(&inode_number).is_some() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scary-ebpf-process v0.1.0 (/opt/rustwide/workdir/scary-ebpf-process) [INFO] [stdout] warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> ebpf/src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #76560 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bpf_loop` [INFO] [stdout] --> ebpf/src/events/path.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | bpf_loop, bpf_probe_read_kernel, bpf_probe_read_kernel_buf, bpf_probe_read_kernel_str_bytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be16` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | type __be16 = u16; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be16` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `__be32` should have an upper camel case name [INFO] [stdout] --> ebpf/src/events/socket.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | type __be32 = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Be32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bpf_get_current_task` and `bpf_probe_read_kernel` [INFO] [stdout] --> ebpf/src/events.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | bpf_get_current_comm, bpf_get_current_pid_tgid, bpf_get_current_task, bpf_get_current_uid_gid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | bpf_get_prandom_u32, bpf_ktime_get_ns, bpf_probe_read_kernel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scary_ebpf_common::bindings::task_struct` [INFO] [stdout] --> ebpf/src/events.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use scary_ebpf_common::bindings::task_struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `macros::kprobe` and `programs::ProbeContext` [INFO] [stdout] --> ebpf/src/programs/execve.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | macros::kprobe, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | programs::ProbeContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecveEvent`, `Type`, and `maps::send` [INFO] [stdout] --> ebpf/src/programs/execve.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | execve::{ExecveData, ExecveEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | }, [INFO] [stdout] 18 | maps::send, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SslData` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::events::ssl::{SslData, SslEvent, MAX_BUF_SIZE}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> scary-ebpf-process/src/main.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | fn get_process_info(ctx: &TracePointContext, event: &mut Event) -> Result<(), u32> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> scary-ebpf-process/src/main.rs:411:38 [INFO] [stdout] | [INFO] [stdout] 411 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_comm` is never used [INFO] [stdout] --> scary-ebpf-process/src/main.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn read_comm( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/events/path.rs:62:38 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> ebpf/src/events/path.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | for depth in 0..3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> ebpf/src/programs/execve.rs:173:38 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> ebpf/src/programs/file.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | file: &FileRef, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_len` [INFO] [stdout] --> ebpf/src/programs/ssl.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let read_len = if bytes > MAX_BUF_SIZE as i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/events/path.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_process_info` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_process_info(data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_filename` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn read_filename(filename_ptr: *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_arguments` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn read_arguments(argv_ptr: *const *const u8, data: &mut ExecveData) -> Result<(), i64> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PathData` is never constructed [INFO] [stdout] --> ebpf/src/programs/execve.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct PathData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_NAME_LEN` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | const MAX_NAME_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cwd` is never used [INFO] [stdout] --> ebpf/src/programs/execve.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | unsafe fn read_cwd(buffer: &mut [u8]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> scary-ebpf-process/src/main.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | fn get_process_info(ctx: &TracePointContext, event: &mut Event) -> Result<(), u32> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/file.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | let event_buf = unsafe { FILE_EVENT_BUFFER.get_ptr_mut(0) }.ok_or(-1)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | match BUFFERS.insert(&tgid, &buf_ptr, 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | match BUFFERS.get(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | match STORAGE.get_ptr_mut(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> ebpf/src/programs/ssl.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | match BUFFERS.remove(&tgid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comm_str` [INFO] [stdout] --> scary-ebpf-file/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let comm_str = get_comm_str(&comm); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comm_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> scary-ebpf-process/src/main.rs:411:38 [INFO] [stdout] | [INFO] [stdout] 411 | unsafe extern "C" fn _process_dentry(idx: u32, data: *mut c_void) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_comm` is never used [INFO] [stdout] --> scary-ebpf-process/src/main.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn read_comm( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> scary-ebpf-file/src/main.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | if unsafe { WATCHED_INODES.get(&inode_number).is_some() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `kprobe` and `map` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use aya_ebpf::macros::{kprobe, map}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `PerCpuArray`, and `PerfEventArray` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use aya_ebpf::maps::{HashMap, PerCpuArray, PerfEventArray}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> scary-ebpf-common/src/error.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn into_error(self, context: &'static str) -> Error { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> scary-ebpf-common/src/event.rs:247:30 [INFO] [stdout] | [INFO] [stdout] 247 | fn emit_event(&self, event: &Event) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: failed to write to `/opt/rustwide/target/debug/deps/rmetaZ7qE09/lib.rmeta`: No space left on device (os error 28) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aws-sdk-s3` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "696f110c106f6d9452cfdd1ac9d2a9bb23f015172eb6125c067015ac3ad177df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "696f110c106f6d9452cfdd1ac9d2a9bb23f015172eb6125c067015ac3ad177df", kill_on_drop: false }` [INFO] [stdout] 696f110c106f6d9452cfdd1ac9d2a9bb23f015172eb6125c067015ac3ad177df