[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 try#2277c63fa464d237b17b68d3b87f9fbb89e58a3e for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwssheldon%2Fscaryedr" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wssheldon/scaryedr on toolchain 2277c63fa464d237b17b68d3b87f9fbb89e58a3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/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-1-tc2/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" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/scary-ebpf-process/Cargo.toml: unused manifest key: build [INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/scary/Cargo.toml: unused manifest key: package.ebpf_debug_path [INFO] [stderr] warning: /workspace/builds/worker-1-tc2/source/scary/Cargo.toml: unused manifest key: package.ebpf_release_path [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e23af670cb78f92d3935e3b71df839c825fb25587fbcf6a3aed43ef1b3376707 [INFO] running `Command { std: "docker" "start" "-a" "e23af670cb78f92d3935e3b71df839c825fb25587fbcf6a3aed43ef1b3376707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e23af670cb78f92d3935e3b71df839c825fb25587fbcf6a3aed43ef1b3376707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e23af670cb78f92d3935e3b71df839c825fb25587fbcf6a3aed43ef1b3376707", kill_on_drop: false }` [INFO] [stdout] e23af670cb78f92d3935e3b71df839c825fb25587fbcf6a3aed43ef1b3376707 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2977c8695a8bcfc8f353f5a26cc2af97a4a538ca2bf1163b883d4a5e20cc3b69 [INFO] running `Command { std: "docker" "start" "-a" "2977c8695a8bcfc8f353f5a26cc2af97a4a538ca2bf1163b883d4a5e20cc3b69", 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 typenum v1.17.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking foldhash v0.1.3 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling semver v1.0.23 [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] Checking hashbrown v0.15.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling cc v1.1.31 [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] Compiling rustc_version v0.4.1 [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] Compiling quote v1.0.37 [INFO] [stderr] Checking indexmap v2.6.0 [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 syn v2.0.87 [INFO] [stderr] Compiling aws-types v0.55.3 [INFO] [stderr] Checking outref v0.5.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking vsimd v0.8.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling aya-ebpf v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling zerocopy v0.8.9 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling core-error v0.0.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Compiling crunchy v0.2.2 [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] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking aws-smithy-types v0.55.3 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking aws-smithy-eventstream v0.55.3 [INFO] [stderr] Checking aws-smithy-json v0.55.3 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Checking aws-smithy-xml v0.55.3 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking aws-smithy-query v0.55.3 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle v1.0.9 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking anstream v0.6.17 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking dequemap v0.2.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking std-ext v0.3.1 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking sharded-slab v0.1.7 [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 pathdiff v0.2.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking network-types v0.0.7 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [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] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling aya-ebpf-macros v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling zerocopy-derive v0.8.9 [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-log-parser v0.1.13 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling aya-log-ebpf-macros v0.1.0 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking aya-log-ebpf v0.1.1 (https://github.com/aya-rs/aya#f9b34fe7) [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking aya-obj v0.2.1 [INFO] [stderr] Checking aya-log-common v0.1.15 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking scary-ebpf-common v0.1.0 (/opt/rustwide/workdir/scary-ebpf-common) [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Checking rust-ini v0.20.0 [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 yaml-rust2 v0.8.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-stream v0.1.16 [INFO] [stderr] Checking tower v0.4.13 [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 tokio-rustls v0.23.4 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking aws-smithy-async v0.55.3 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking aws-credential-types v0.55.3 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Checking aya v0.13.1 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking queue-ext v0.4.1 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Checking xtask v0.1.0 (/opt/rustwide/workdir/xtask) [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking mpsc v0.2.5 [INFO] [stderr] Checking aya-log v0.2.1 [INFO] [stderr] Checking scary-userspace-common v0.1.0 (/opt/rustwide/workdir/scary-userspace-common) [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] 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] 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 toml v0.8.19 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking ebpf v0.1.0 (/opt/rustwide/workdir/ebpf) [INFO] [stderr] Checking scary-ebpf-net v0.1.0 (/opt/rustwide/workdir/scary-ebpf-net) [INFO] [stderr] Checking scary-ebpf-process v0.1.0 (/opt/rustwide/workdir/scary-ebpf-process) [INFO] [stderr] Checking scary-ebpf-file v0.1.0 (/opt/rustwide/workdir/scary-ebpf-file) [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 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: 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 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: 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: `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] [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] [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: 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] --> 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: `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] --> 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/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: 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: `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: 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: 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] --> 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: 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/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: `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: 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: 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: `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/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: 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: `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: `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: `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: 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: 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: 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: 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: 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 hyper v0.14.31 [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 aws-smithy-http v0.55.3 [INFO] [stderr] Checking hyper-rustls v0.23.2 [INFO] [stderr] Checking aws-smithy-http-tower v0.55.3 [INFO] [stderr] Checking aws-sigv4 v0.55.3 [INFO] [stderr] Checking aws-smithy-checksums v0.55.3 [INFO] [stderr] Checking aws-smithy-client v0.55.3 [INFO] [stderr] Checking aws-sig-auth v0.55.3 [INFO] [stderr] Checking aws-endpoint v0.55.3 [INFO] [stderr] Checking aws-http v0.55.3 [INFO] [stderr] Checking aws-sdk-sts v0.28.0 [INFO] [stderr] Checking aws-sdk-sso v0.28.0 [INFO] [stderr] Checking aws-sdk-s3 v0.28.0 [INFO] [stderr] Checking aws-config v0.55.3 [INFO] [stderr] Checking scary-logger-plugins v0.1.0 (/opt/rustwide/workdir/scary-logger-plugins) [INFO] [stderr] Checking scary v0.1.0 (/opt/rustwide/workdir/scary) [INFO] [stdout] warning: unused import: `MapBuilder` [INFO] [stdout] --> scary/src/main.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::programs::{get_ebpf_path, MapBuilder, ProgramBuilder}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TracePoint`, `XdpFlags`, `Xdp`, and `include_bytes_aligned` [INFO] [stdout] --> scary/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | include_bytes_aligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | maps::{HashMap, MapData, PerfEventArray}, [INFO] [stdout] 7 | programs::{KProbe, Program, TracePoint, UProbe, Xdp, XdpFlags}, [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectData`, `Event`, `FileFlags`, `FileKey`, `Type as EventType`, and `socket::IpAddr` [INFO] [stdout] --> scary/src/main.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | connect::{ConnectData, ConnectEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | file::{FileEvent, FileFlags, FileKey}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 20 | socket::IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | ssl::SslEvent, [INFO] [stdout] 22 | Event, Header, Type as EventType, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> scary/src/main.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> scary/src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path::Path` and `self` [INFO] [stdout] --> scary/src/main.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | io::{self, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | os::unix::fs::MetadataExt, [INFO] [stdout] 44 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proc_perf_array` [INFO] [stdout] --> scary/src/main.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut proc_perf_array = PerfEventArray::try_from(proc_bpf.map_mut("EVENTS").unwrap())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proc_perf_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scary/src/main.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | let mut proc_perf_array = PerfEventArray::try_from(proc_bpf.map_mut("EVENTS").unwrap())?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> scary/src/main.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | io::{self, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> scary/src/main.rs:697:16 [INFO] [stdout] | [INFO] [stdout] 697 | let path = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_boot_time` is never used [INFO] [stdout] --> scary/src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_boot_time() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserSpaceEventData` is never constructed [INFO] [stdout] --> scary/src/main.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | struct UserSpaceEventData(EventData); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_username` is never used [INFO] [stdout] --> scary/src/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn get_username(uid: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hostname` is never used [INFO] [stdout] --> scary/src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn get_hostname() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_timestamp` is never used [INFO] [stdout] --> scary/src/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn format_timestamp(timestamp_ns: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> scary/src/main.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 237 | impl UserSpaceEventData { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 238 | fn to_json(&self) -> EventJson { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_exec_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn format_timestamp(timestamp_ns: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn get_comm(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn get_filename(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn get_cwd(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn get_args(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | fn get_hostname() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn get_username(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MapBuilder` [INFO] [stdout] --> scary/src/main.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::programs::{get_ebpf_path, MapBuilder, ProgramBuilder}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TracePoint`, `XdpFlags`, `Xdp`, and `include_bytes_aligned` [INFO] [stdout] --> scary/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | include_bytes_aligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | maps::{HashMap, MapData, PerfEventArray}, [INFO] [stdout] 7 | programs::{KProbe, Program, TracePoint, UProbe, Xdp, XdpFlags}, [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectData`, `Event`, `FileFlags`, `FileKey`, `Type as EventType`, and `socket::IpAddr` [INFO] [stdout] --> scary/src/main.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | connect::{ConnectData, ConnectEvent}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | file::{FileEvent, FileFlags, FileKey}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 20 | socket::IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | ssl::SslEvent, [INFO] [stdout] 22 | Event, Header, Type as EventType, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> scary/src/main.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> scary/src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path::Path` and `self` [INFO] [stdout] --> scary/src/main.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | io::{self, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | os::unix::fs::MetadataExt, [INFO] [stdout] 44 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proc_perf_array` [INFO] [stdout] --> scary/src/main.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut proc_perf_array = PerfEventArray::try_from(proc_bpf.map_mut("EVENTS").unwrap())?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proc_perf_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> scary/src/main.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | let mut proc_perf_array = PerfEventArray::try_from(proc_bpf.map_mut("EVENTS").unwrap())?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> scary/src/main.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | io::{self, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> scary/src/main.rs:697:16 [INFO] [stdout] | [INFO] [stdout] 697 | let path = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_boot_time` is never used [INFO] [stdout] --> scary/src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_boot_time() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserSpaceEventData` is never constructed [INFO] [stdout] --> scary/src/main.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | struct UserSpaceEventData(EventData); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_username` is never used [INFO] [stdout] --> scary/src/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn get_username(uid: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hostname` is never used [INFO] [stdout] --> scary/src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn get_hostname() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_timestamp` is never used [INFO] [stdout] --> scary/src/main.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn format_timestamp(timestamp_ns: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> scary/src/main.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 237 | impl UserSpaceEventData { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 238 | fn to_json(&self) -> EventJson { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_exec_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn format_timestamp(timestamp_ns: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn get_comm(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn get_filename(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn get_cwd(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn get_args(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | fn get_hostname() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn get_username(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized] target(s) in 2m 32s [INFO] running `Command { std: "docker" "inspect" "2977c8695a8bcfc8f353f5a26cc2af97a4a538ca2bf1163b883d4a5e20cc3b69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2977c8695a8bcfc8f353f5a26cc2af97a4a538ca2bf1163b883d4a5e20cc3b69", kill_on_drop: false }` [INFO] [stdout] 2977c8695a8bcfc8f353f5a26cc2af97a4a538ca2bf1163b883d4a5e20cc3b69