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. |
1 month ago | |
|---|---|---|
| .. | ||
| perf | 8 months ago | |
| xdp | 1 month ago | |
| array.rs | 1 month ago | |
| bloom_filter.rs | 2 years ago | |
| hash_map.rs | 1 month ago | |
| lpm_trie.rs | 1 month ago | |
| mod.rs | 2 years ago | |
| per_cpu_array.rs | 1 month ago | |
| program_array.rs | 8 months ago | |
| queue.rs | 2 months ago | |
| ring_buf.rs | 2 months ago | |
| sock_hash.rs | 1 month ago | |
| sock_map.rs | 1 month ago | |
| stack.rs | 2 months ago | |
| stack_trace.rs | 8 months ago | |