mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eBPF verifier in recent kernels should be smart enough to track map map types and catch invalid pointer casts. Rust type system makes sure that the `get` method can return only the same type the map was created with. Therefore, safe usage of Aya map types shouldn't cause element type mismatches. Manual alignment checks (`pointer::is_aligned` or manual pointer arithmetic operations) cause the following verifier error: ``` bitwise operator &= on pointer prohibited ``` And it extremely unlikely `bpf_map_lookup_elem` ever returns a misaligned pointer. |
5 days ago | |
---|---|---|
.. | ||
perf | 7 months ago | |
xdp | 5 days ago | |
array.rs | 5 days ago | |
bloom_filter.rs | 2 years ago | |
hash_map.rs | 5 days ago | |
lpm_trie.rs | 5 days ago | |
mod.rs | 2 years ago | |
per_cpu_array.rs | 5 days ago | |
program_array.rs | 7 months ago | |
queue.rs | 3 weeks ago | |
ring_buf.rs | 2 weeks ago | |
sock_hash.rs | 5 days ago | |
sock_map.rs | 5 days ago | |
stack.rs | 3 weeks ago | |
stack_trace.rs | 7 months ago |