mirror of https://github.com/aya-rs/aya
aya-ebpf: Remove irrelevant `FIXME` comment
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.reviewable/pr1340/r9
parent
a81bf024a0
commit
e3bc50c513
Loading…
Reference in New Issue