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.
aya/bpf/aya-bpf/src
Alessandro Decina 11c227743d bpf: improve bpf_probe_read_kernel_str_bytes and bpf_probe_read_user_str_bytes
This change does a few things:

- it fixes a bug in the wrappers, where we were expecting the kernel to
  return len=1 for b"\0" where it instead returns 0 and doesn't write
  out the NULL terminator

- it makes the helpers more robust by hardcoding bound checks in
  assembly so that LLVM optimizations can't transform the checks in a
  way that the verifier can't understand.

- it adds integration tests
2 years ago
..
maps aya-bpf/maps: Add `get_ptr` and `get_mut_ptr` methods to Array 2 years ago
programs feat(bpf+sk_skb): wrap `change_proto` helper 2 years ago
args.rs aya-bpf: use bpf_read_probe for reading pt_regs 3 years ago
helpers.rs bpf: improve bpf_probe_read_kernel_str_bytes and bpf_probe_read_user_str_bytes 2 years ago
lib.rs bpf: improve bpf_probe_read_kernel_str_bytes and bpf_probe_read_user_str_bytes 2 years ago