e95a54f593 
								
									
								
							
								 
							
						 
						
							
							
								
								build(deps): update thiserror to 2.0.3  
							
							... 
							
							
							
							This removes the fake std module in aya-obj which is no longer needed as
thiserror now properly supports no_std.
Signed-off-by: Tamir Duberstein <tamird@gmail.com> 
							
						 
						
							12 months ago  
				
					
						
							
							
								 
						
							
							
								fbbc2ec050 
								
							
								 
							
						 
						
							
							
								
								ci: automatically download latest kernel revs  
							
							... 
							
							
							
							Let's get off the treadmill.
Switch (almost) all wget usages to curl. 
							
						 
						
							12 months ago  
				
					
						
							
							
								 
						
							
							
								e3bfeb9dd6 
								
							
								 
							
						 
						
							
							
								
								Allow QEMU to fall back  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								05623a0eb7 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1076  from aya-rs/dependabot/cargo/cargo-crates-c08699da63  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								e67a21265b 
								
									
								
							
								 
							
						 
						
							
							
								
								build(deps): update which requirement in the cargo-crates group  
							
							... 
							
							
							
							Updates the requirements on [which](https://github.com/harryfei/which-rs ) to permit the latest version.
Updates `which` to 6.0.3
- [Release notes](https://github.com/harryfei/which-rs/releases )
- [Changelog](https://github.com/harryfei/which-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/harryfei/which-rs/compare/6.0.0...6.0.3 )
---
updated-dependencies:
- dependency-name: which
  dependency-type: direct:production
  dependency-group: cargo-crates
...
Signed-off-by: dependabot[bot] <support@github.com> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								2791badd94 
								
							
								 
							
						 
						
							
							
								
								Release aya v0.13.1  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								c6a34cade1 
								
							
								 
							
						 
						
							
							
								
								Release aya-obj v0.2.1  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								b2ac9fe85d 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1073  from dave-tucker/reloc-bug  
							
							... 
							
							
							
							fix(aya): BSS Sections must be filled with zeros 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								ca0c32d107 
								
							
								 
							
						 
						
							
							
								
								fix(aya): Fill bss maps with zeros  
							
							... 
							
							
							
							The loader should fill bss maps with zeros according to the size of the
ELF section.
Failure to do so yields weird verifier messages as follows:
```
cannot access ptr member ops with moff 0 in struct bpf_map with off 0 size 4
```
Reference to this in the cilium/ebpf code is here [1].
I could not find a reference in libbpf.
1: d0c8fc1937/elf_reader.go (L1159-L1165) 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								3aa2745972 
								
							
								 
							
						 
						
							
							
								
								test(init): run test with debug logs  
							
							... 
							
							
							
							This provides more useful failure messages when integration tests fail
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								adf16e2102 
								
							
								 
							
						 
						
							
							
								
								test: Reproduce relocation bug  
							
							... 
							
							
							
							Users have reported issues with programs failing the verifier when they
are attempting to read or write to variables that the compiler places in
the .bss section. Add a test that places variables in each section and
exercises read and write operations on them.
Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								f9b34fe76f 
								
							
								 
							
						 
						
							
							
								
								qemu: remove bios argument  
							
							... 
							
							
							
							I did this for arm64 because we'd get a black screen without it but I
have now confirmed that console=ttyAMA0 solves that problem.
I don't remember why I did it for x86. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								298e2a751c 
								
							
								 
							
						 
						
							
							
								
								Update public-api to 0.40.0  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								240291ab81 
								
							
								 
							
						 
						
							
							
								
								Update public-api to 0.39.0  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								758a4f9d1e 
								
							
								 
							
						 
						
							
							
								
								Remove workspace members from workspace.dependencies  
							
							... 
							
							
							
							Doesn't make much sense to have them here. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								59b3873a92 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1055  from aya-rs/codegen  
							
							... 
							
							
							
							Update libbpf to 80b16457cb23db4d633b17ba0305f29daa2eb307 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								f8ad84c3d3 
								
							
								 
							
						 
						
							
							
								
								[codegen] Update libbpf to 80b16457cb23db4d633b17ba0305f29daa2eb307  
							
							... 
							
							
							
							Update libbpf to 80b16457cb23db4d633b17ba0305f29daa2eb307
Files changed:
M	aya-obj/src/generated/btf_internal_bindings.rs
M	aya-obj/src/generated/linux_bindings_aarch64.rs
M	aya-obj/src/generated/linux_bindings_armv7.rs
M	aya-obj/src/generated/linux_bindings_powerpc64.rs
M	aya-obj/src/generated/linux_bindings_riscv64.rs
M	aya-obj/src/generated/linux_bindings_s390x.rs
M	aya-obj/src/generated/linux_bindings_x86_64.rs 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								366c599c20 
								
							
								 
							
						 
						
							
							
								
								codegen: cgroup_iter_order NFPROTO* nf_inet_hooks  
							
							... 
							
							
							
							Adds the following to codegen:
- `bpf_cgroup_iter_order`: used in `bpf_link_info.iter.group.order`
- `NFPROTO_*`: used in `bpf_link_info.netfilter.pf`
- `nf_inet_hooks`: used in `bpf_link_info.netfilter.hooknum`
Include `linux/netfilter.h` in `linux_wrapper.h` for `NFPROTO_*` and
`nf_inet_hooks` to generate. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								0e70838b0f 
								
							
								 
							
						 
						
							
							
								
								Release aya-log v0.2.1  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								04bbbccffa 
								
							
								 
							
						 
						
							
							
								
								Release aya-log-common v0.1.15, aya-log-ebpf v0.1.1  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								c3f0c7dc3f 
								
							
								 
							
						 
						
							
							
								
								chore: Prepare for aya-log-ebpf release  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								59082f572c 
								
							
								 
							
						 
						
							
							
								
								Release aya-ebpf-cty v0.2.2, aya-ebpf-bindings v0.1.1, aya-ebpf-macros v0.1.1, aya-ebpf v0.1.1  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								c169b727e6 
								
							
								 
							
						 
						
							
							
								
								Release aya-obj v0.2.0, aya v0.13.0, safety bump aya v0.13.0  
							
							... 
							
							
							
							Signed-off-by: Dave Tucker <dave@dtucker.co.uk> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								5478cac008 
								
							
								 
							
						 
						
							
							
								
								feat(aya): Implement TCX  
							
							... 
							
							
							
							This commit adds the initial support for TCX
bpf links. This is a new, multi-program, attachment
type allows for the caller to specify where
they would like to be attached relative to other
programs at the attachment point using the LinkOrder
type.
Signed-off-by: astoycos <astoycos@redhat.com>
Co-authored-by: Andre Fredette <afredette@redhat.com>
Co-authored-by: Dave Tucker <dave@dtucker.co.uk>
Co-authored-by: Tamir Duberstein <tamird@gmail.com> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								1d272f38bd 
								
							
								 
							
						 
						
							
							
								
								build(deps): update hashbrown requirement in the cargo-crates group  
							
							... 
							
							
							
							Updates the requirements on [hashbrown](https://github.com/rust-lang/hashbrown ) to permit the latest version.
Updates `hashbrown` to 0.15.0
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.14.3...v0.15.0 )
---
updated-dependencies:
- dependency-name: hashbrown
  dependency-type: direct:production
  dependency-group: cargo-crates
...
Signed-off-by: dependabot[bot] <support@github.com> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								aa240baadf 
								
							
								 
							
						 
						
							
							
								
								Appease clippy  
							
							... 
							
							
							
							```
error: the following explicit lifetimes could be elided: 'data, 'file
    --> aya-obj/src/obj.rs:1083:6
     |
1083 | impl<'data, 'file, 'a> TryFrom<&'a ObjSection<'data, 'file>> for Section<'a> {
     |      ^^^^^  ^^^^^                             ^^^^^  ^^^^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes 
``` 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								55ed9e0546 
								
									
								
							
								 
							
						 
						
							
							
								
								fix(aya-log): print &[u8] using full width ( #1008 )  
							
							... 
							
							
							
							Otherwise `&[1u8, 0u8]` cannot be distinguished from `&[0x10u8]` (they both become 10) 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								d05110fd86 
								
							
								 
							
						 
						
							
							
								
								perf: cache `nr_cpus` in a thread_local  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								afd777b705 
								
							
								 
							
						 
						
							
							
								
								Clarify `Arc` usage  
							
							... 
							
							
							
							Absent this it's easy to miss that there's an `Arc` being cloned here. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								e992c280cb 
								
							
								 
							
						 
						
							
							
								
								Replace `Arc` with `&'static`  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								0e867572ff 
								
							
								 
							
						 
						
							
							
								
								Avoid intermediate allocations in parse_cpu_ranges  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								f3b2744072 
								
							
								 
							
						 
						
							
							
								
								Reduce duplication in `{nr,possible}_cpus`  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								2b299d4fba 
								
							
								 
							
						 
						
							
							
								
								Replace `lazy_static` with `std::sync::LazyLock`  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								0f163633e3 
								
							
								 
							
						 
						
							
							
								
								Appease clippy  
							
							... 
							
							
							
							See https://github.com/rust-lang/rust/pull/130778 .
```
warning: empty line after doc comment
  --> test/integration-ebpf/build.rs:16:1
   |
16 | / /// [bindeps]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html?highlight=feature#artifact-dependencies 
17 | |
   | |_
18 |   fn main() {
   |   --------- the comment documents this function
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments 
   = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default
   = help: if the empty line is unintentional remove it
error: empty line after doc comment
  --> aya/src/maps/bloom_filter.rs:34:1
   |
34 | / /// ```
35 | |
   | |_
...
38 |   pub struct BloomFilter<T, V: Pod> {
   |   --------------------------------- the comment documents this struct
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments 
note: the lint level is defined here
  --> aya/src/lib.rs:41:5
   |
41 |     clippy::all,
   |     ^^^^^^^^^^^
   = note: `#[deny(clippy::empty_line_after_doc_comments)]` implied by `#[deny(clippy::all)]`
   = help: if the empty line is unintentional remove it
error: empty line after doc comment
  --> aya/src/maps/lpm_trie.rs:46:1
   |
46 | / /// ```
47 | |
   | |_
...
50 |   pub struct LpmTrie<T, K, V> {
   |   --------------------------- the comment documents this struct
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments 
   = help: if the empty line is unintentional remove it
warning: empty line after doc comment
  --> test/integration-test/build.rs:38:1
   |
38 | / /// [bindeps]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html?highlight=feature#artifact-dependencies 
39 | |
   | |_
40 |   fn main() {
   |   --------- the comment documents this function
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments 
   = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default
   = help: if the empty line is unintentional remove it
warning: calling `CStr::new` with a byte string literal
  --> test/integration-test/src/tests/xdp.rs:45:20
   |
45 |         .from_name(CStr::from_bytes_with_nul(b"lo\0").unwrap())
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a `c""` literal: `c"lo"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals 
   = note: `#[warn(clippy::manual_c_str_literals)]` on by default
``` 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								045032bff0 
								
							
								 
							
						 
						
							
							
								
								ci: Use libLLVM from Rust CI tarball  
							
							... 
							
							
							
							Instead of relying on Homebrew for macOS (which ships older LLVM
versions) and `apt.llvm.org` for Linux (which often has bugs at the
packaging level), we now use the tarball from Rust CI to provide
`libLLVM`. This ensures it always matches the version used by the latest
Rust nightly.
This removes our reliance on homebrew shipping LLVM versions matching
those used by rustc. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								f498a1b7a9 
								
							
								 
							
						 
						
							
							
								
								Remove assertion that doesn't work in macOS HVF  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								59a153076a 
								
							
								 
							
						 
						
							
							
								
								ci: use {clang,llvm}-15 on ubuntu-22.04  
							
							... 
							
							
							
							These come preinstalled, we just need to add them to $GITHUB_PATH. 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								5b29008691 
								
							
								 
							
						 
						
							
							
								
								Appease `static_mut_refs`  
							
							... 
							
							
							
							Made stricter in https://github.com/rust-lang/rust/commit/5ba6db1b648d9 . 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								48ca623a1f 
								
							
								 
							
						 
						
							
							
								
								Update public-api to 0.38.0  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								5f91efdf43 
								
							
								 
							
						 
						
							
							
								
								build(deps): bump DavidAnson/markdownlint-cli2-action  
							
							... 
							
							
							
							Bumps the github-actions group with 1 update: [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action ).
Updates `DavidAnson/markdownlint-cli2-action` from 16 to 17
- [Release notes](https://github.com/davidanson/markdownlint-cli2-action/releases )
- [Commits](https://github.com/davidanson/markdownlint-cli2-action/compare/v16...v17 )
---
updated-dependencies:
- dependency-name: DavidAnson/markdownlint-cli2-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								11d953fee8 
								
							
								 
							
						 
						
							
							
								
								build(deps): bump the cargo-crates group with 2 updates  
							
							... 
							
							
							
							Updates the requirements on [rbpf](https://github.com/qmonnet/rbpf ) and [network-types](https://github.com/vadorovsky/network-types ) to permit the latest version.
Updates `rbpf` to 0.2.0
- [Commits](https://github.com/qmonnet/rbpf/compare/v0.2.0...v0.2.0 )
Updates `network-types` to 0.0.7
- [Release notes](https://github.com/vadorovsky/network-types/releases )
- [Changelog](https://github.com/vadorovsky/network-types/blob/main/CHANGELOG.md )
- [Commits](https://github.com/vadorovsky/network-types/compare/v0.0.6...v0.0.7 )
---
updated-dependencies:
- dependency-name: rbpf
  dependency-type: direct:production
  dependency-group: cargo-crates
- dependency-name: network-types
  dependency-type: direct:production
  dependency-group: cargo-crates
...
Signed-off-by: dependabot[bot] <support@github.com> 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								b87f4b9642 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1029  from aya-rs/fix/ci-linux-kernel-version  
							
							... 
							
							
							
							Fix linux kernel version in gh ci runners 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								e775f8329b 
								
							
								 
							
						 
						
							
							
								
								Fix linux kernel version in gh ci runners  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								2cd35769dc 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1023  from l2dy/fdlink/sockops  
							
							... 
							
							
							
							aya: use FdLink in SockOps programs 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								c44f8b0f5b 
								
							
								 
							
						 
						
							
							
								
								aya: use FdLink in SockOps programs  
							
							... 
							
							
							
							See: https://github.com/aya-rs/aya/issues/987  
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								02d1db5fc0 
								
							
								 
							
						 
						
							
							
								
								aya: remove unwrap and NonZero* in info  
							
							... 
							
							
							
							Addresses the feedback from #1007 :
- remove panic from `unwrap` and `expect`
- Option<NonZero*> => Option<int> with `0` mapping to `None`
Refs: #1007  
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								635ed3baed 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1020  from l2dy/sockops-ctx  
							
							... 
							
							
							
							aya-ebpf: Add set_reply accessor to SockOpsContext 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								95e1763e30 
								
							
								 
							
						 
						
							
							
								
								aya-ebpf: Add set_reply accessor to SockOpsContext  
							
							
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								40f303205f 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #985  from reyzell/main  
							
							... 
							
							
							
							Add the option to support multiple and overrideable programs per cgroup 
							
						 
						
							1 year ago  
				
					
						
							
							
								 
						
							
							
								f790685d75 
								
							
								 
							
						 
						
							
							
								
								Add the option to support multiple and overrideable programs per cgroup  
							
							... 
							
							
							
							This change allows multiple BPF programs to attach to a cgroup (via the option
`CgroupAttachMode::AllowMultiple`), and allows a program to specify that it can be
overridden by one in a sub-cgroup (via the option `CgroupAttachMode::AllowOverride`). 
							
						 
						
							1 year ago