Commit 0cc5c66
Cherry-pick fixes to
* Fix bpf2bpf calls: global helper index, runtime_context propagation, and map access from subprograms (#5274)
* fix
* add missing sample program
* fix
* update tests
* update expected files
* update tests
* cleanup
* fix helper update callback, add tests
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* update verifier submodule (#5335)
* Implement sock_addr bind hook (#5272)
* Align bind hook with Linux: add CGROUP_INET4/6_BIND attach types
Add new attach types BPF_CGROUP_INET4_BIND and BPF_CGROUP_INET6_BIND under
the existing BPF_PROG_TYPE_CGROUP_SOCK_ADDR program type. This provides a
Linux-aligned bind hook using bpf_sock_addr_t, enabling cross-platform eBPF
programs that use 'cgroup/bind4' / 'cgroup/bind6' SEC names.
Key changes:
- New attach type GUIDs in ebpf_program_attach_type_guids.h
- New BPF enum values in ebpf_structs.h
- ELF section name mappings 'cgroup/bind4' / 'cgroup/bind6'
- New WFP callouts at ALE_RESOURCE_ASSIGNMENT_V4/V6 (distinct GUIDs from
legacy bind callouts so both can coexist at the same WFP layer)
- New net_ebpf_extension_sock_addr_bind_classify() with bind-specific
bpf_sock_addr context population (user_ip/user_port = local bind address,
msg_src_* = 0)
- Multi-attach support via ATTACH_CAPABILITY_MULTI_ATTACH_WITH_WILDCARD
(satisfies issue #5180)
- bpf_sock_addr_get_network_context extended to support bind hook IDs
Out of scope: address modification (bind hook is allow/deny only in this
phase), post-bind, unbind/release. Legacy BPF_PROG_TYPE_BIND with bind_md_t
remains unchanged for backward compatibility.
Issue: #333
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add tests for sock_addr-aligned bind hook (issue #333)
Adds sample BPF program (cgroup_sock_addr_bind.c) and socket driver tests
for the new BPF_CGROUP_INET4/6_BIND attach types.
* Document sock_addr-aligned bind hook (#333)
New docs/BindHook.md documents BPF_CGROUP_INET4_BIND and
BPF_CGROUP_INET6_BIND attach types under BPF_PROG_TYPE_CGROUP_SOCK_ADDR,
including their relationship to the legacy bind hook, context semantics,
helper support, and Linux compatibility.
Cross-references added to docs/ConnectAuthorizationAttachTypes.md and
docs/ListenHook.md.
Sample tests/sample/cgroup_sock_addr_bind.c (added earlier in this branch)
is registered in tests/bpf2c_tests/elf_bpf.cpp, and the corresponding
expected outputs in tests/bpf2c_tests/expected/ are checked in.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Expose interface_type/tunnel_type WFP fields for bind hooks
Add FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4/V6_INTERFACE_TYPE and
_TUNNEL_TYPE to the wfp_bind_fields[] table and populate them in
_net_ebpf_extension_sock_addr_copy_wfp_bind_fields().
The get_network_context helper was already extended to accept bind
hook IDs on this branch. Update documentation comments on
bpf_sock_addr_network_context_t, the helper, and BindHook.md to
list BIND as a supported attach type.
Add cgroup/bind4 and cgroup/bind6 programs to cgroup_sock_addr_helpers.c
that call bpf_sock_addr_get_network_context and store results in the
network_context_map. Add driver tests bind_helper_functions_validation_tcp_v4
and _v6 that bind a socket and verify the network context map contains
valid interface_type and tunnel_type values.
Regenerate bpf2c expected output for the updated helper programs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix bpf2c expected output: regenerate with clang 18.1.8 matching CI
Previous regeneration used clang 19.1.4 (NuGet) but CI installs clang
18.1.8 from llvm-project GitHub releases. The different LLVM versions
produce different bytecode and #line numbers, causing bpf2c_tests to
fail on the Verify test case.
Regenerated using clang 18.1.8 from C:\Program Files\LLVM\bin\clang.exe
with the official scripts\generate_expected_bpf2c_output.ps1 script.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add matching comments to V6 entry in wfp_bind_fields
Add descriptive comments for zeroed fields in the V6 entry of
wfp_bind_fields[] to match the V4 entry style. Addresses review
feedback from FetoiuCatalin.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address PR review feedback for bind hook (#5272)
Documentation:
- Update 'bind() requests' and 'bind() calls' wording to 'bind operations'
in attach type/program type doc comments across ebpf_program_attach_type_guids.h,
ebpf_structs.h, and ebpf_nethooks.h. INET4/INET6_BIND comments now read
'when an IPv4/IPv6 socket is bound to an address/port' (dthaler, shankarseal).
Sample code:
- Document the counter_key scheme used by cgroup_sock_addr_helpers programs
(1=connect_v4, 2=connect_v6, 3=recv_accept_v4, 4=bind_v4, 5=bind_v6) near
the connection_count_map declaration.
- Clarify the IPv6 connection ID hash with a comment explaining that
ctx->user_ip6[0] and ctx->user_ip6[3] are the first and last dwords
of the IPv6 address (dthaler).
Tests:
- Refactor bind_helper_functions_validation_tcp_v4 / _v6 into a single
parameterized bind_helper_functions_validation_test(ADDRESS_FAMILY) helper
with two thin TEST_CASE wrappers, matching the existing
helper_functions_validation_test pattern (dthaler).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Clarify that bind hook fires on explicit and implicit binds
shankarseal's PR review feedback noted that "bind() calls" is misleading
since the cgroup/bind hook fires whenever a socket gets bound to a local
address/port, including implicit binds triggered by connect()/listen()/
sendto() on an unbound socket (the ALE_RESOURCE_ASSIGNMENT WFP layer
intercepts all of them).
Update BindHook.md and ConnectAuthorizationAttachTypes.md to:
- Use "bind operations" in prose (consistent with the header doc
comment fixes in 6716dc7).
- Explicitly call out both explicit and implicit bind in the
"Hook Integration and Flow" section and the architecture diagram.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Use dual-stack AF_INET6 socket in bind helper validation test
Per shankarseal's PR review feedback. Matches the dual-stack pattern used
by helper_functions_validation_test (connect_authorization): one AF_INET6
socket with IPV6_V6ONLY=0, one sockaddr_in6 populated via IN6ADDR_SETV4MAPPED
or IN6ADDR_SETLOOPBACK. The bind() + SAFE_REQUIRE moves outside the if/else,
which now contains only the address and connection_id hash (per-family by
necessity).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Regenerate bpf2c expected files for cgroup_sock_addr_helpers
The goldens were last regenerated in `ac9b46e69` ("Fix bpf2c expected
output: regenerate with clang 18.1.8 matching CI"), but a later commit
`a65aa6c21` ("Address PR review feedback for bind hook (#5272)") added
a struct field in `tests/sample/cgroup_sock_addr_helpers.c` near line 37,
shifting every function below it down by one line. The shifted `#line`
directives in the goldens no longer matched bpf2c's output (golden expected
`#line 53` but bpf2c emits `#line 54` for `test_sock_addr_helpers_v4`),
causing `cgroup_sock_addr_helpers _test_mode::Verify` to fail.
Regenerated via `scripts/generate_expected_bpf2c_output.ps1 .\x64\Debug\`
to bring the goldens back in sync with the current sample source. Only the
three `cgroup_sock_addr_helpers_{dll,raw,sys}.c` files changed; the other
sample goldens are byte-identical to their prior state.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address PR #5272 review feedback
Bind multi-attach correctness and documented-contract enforcement:
* Add bind-specific process_verdict that accumulates the most-restrictive
verdict and short-circuits on REJECT (fixes [REJECT, PROCEED_SOFT]
incorrectly permitting the bind under multi-attach).
* Normalize unknown sock_addr return values to REJECT in both the bind and
shared (connect / auth_connect) verdict paths per ebpf_nethooks.h.
* NULL-safe `bpf_get_current_logon_id` / `bpf_is_current_admin` for system
binds with no user token.
Helper test coverage at the bind attach point:
* Exercise all bind-supported helpers from the v4/v6 bind sample and assert
per-helper return values + the existing connection_count_map updates.
* Add unknown-verdict regression tests for bind and connect_authorization.
Docs:
* BindHook.md: note address/port modification divergence from Linux; document
socket_cookie / logon_id / is_admin behavior at the bind layer.
* ebpf_nethooks.h: mark next_hop_interface_luid / sub_interface_index as
unspecified at BIND.
Regenerate cgroup_sock_addr_helpers bpf2c expected files.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix brace-elision bug in connection_test_connect_authorization_unknown_verdict
The single-program initializer was using a two-program brace pattern, leaving
program_spec.attach_type uninitialized and the program name truncated.
Validated on the test VM: the 4 affected cases now pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* bpf_is_current_admin: return -1 when admin status cannot be determined
Per the helper's documented contract in include/bpf_helper_defs.h (<0 = error,
0 = not admin, 1 = admin), returning 0 for a missing user token incorrectly
indicates `not admin`. Return -1 (error) instead and update BindHook.md
helper table.
Addresses #5272 (comment)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Michael Agun <danielagun@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add listen hook implementation to sock_addr (#5268)
* Add listen hook to sock_addr: WFP callout, classify, types, and registration
Add support for eBPF programs that hook into listen() socket calls via
WFP ALE_AUTH_LISTEN_V4/V6 layers, enabling security/observability for
listen operations. Closes #4480.
- Define EBPF_ATTACH_TYPE_CGROUP_INET4/6_LISTEN GUIDs and
BPF_CGROUP_INET4/6_LISTEN enum values.
- Add EBPF_HOOK_ALE_AUTH_LISTEN_V4/V6 hook IDs.
- Register WFP callouts for ALE_AUTH_LISTEN_V4/V6 layers.
- Implement net_ebpf_extension_sock_addr_authorize_listen_classify() with
permit/block/hard-permit verdict handling.
- Add _net_ebpf_extension_sock_addr_copy_wfp_listen_fields() for
extracting listen-specific WFP fields (local address/port only).
- Add cgroup/listen4 and cgroup/listen6 section definitions.
- Wire up _does_attach_type_support_attachable_fd() for listen types.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Expose interface_type/tunnel_type WFP fields for listen hooks
Add FWPS_FIELD_ALE_AUTH_LISTEN_V4/V6_INTERFACE_TYPE and _TUNNEL_TYPE
to the wfp_connection_fields[] table and populate them in
_net_ebpf_extension_sock_addr_copy_wfp_listen_fields().
Extend the bpf_sock_addr_get_network_context helper to accept listen
hook IDs so BPF programs at the listen attach point can retrieve
interface_type and tunnel_type via the versioned helper struct.
Update documentation comments on bpf_sock_addr_network_context_t and
the get_network_context helper to list LISTEN as a supported attach type.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add verbose log for missing USER_ID in listen hook
Add a VERBOSE-level trace log when the USER_ID field is not present
in the listen classify callback, matching the existing pattern for
PROCESS_ID. Addresses review feedback from FetoiuCatalin.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Document why next_hop_interface_luid/sub_interface_index are unspecified at listen
Expand the inline comment on the NET_IF*_UNSPECIFIED assignments in
_net_ebpf_extension_sock_addr_copy_wfp_listen_fields to explain that the
ALE_AUTH_LISTEN WFP layer has no next-hop concept and does not expose a
SUB_INTERFACE_INDEX field (unlike ALE_AUTH_CONNECT/RECV_ACCEPT), and to
point readers at sock_addr_ctx->base.interface_luid (populated from
FWPS_FIELD_ALE_AUTH_LISTEN_V*_IP_LOCAL_INTERFACE) for the local interface
LUID, which is exposed to BPF programs via bpf_sock_addr_t::interface_luid.
Addresses review feedback from FetoiuCatalin and keith-horton on PR #5268.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add driver-level socket tests for listen hook
Move driver-level integration tests for the new listen hook from the
follow-up test PR into the implementation PR so the implementation
ships with end-to-end test coverage. In-process tests
(netebpfext_unit, netebpfext_fuzzer) and the supporting usersim
submodule bump remain on the follow-up PR.
- Add `authorize_listen4` / `authorize_listen6` programs.
- Add `listen_connection_policy_map` for policy-based listen filtering.
- Add a listen network-context helper sample.
- Regenerate the bpf2c golden outputs (`_dll.c`, `_raw.c`, `_sys.c`
for both `cgroup_sock_addr` and `cgroup_sock_addr_helpers`) to
match the updated samples. Generated with clang 18.1.8 to match
the CI configuration.
Three driver-level test cases via the `execute_connection_test`
framework (test infra is already on main from #5267):
- `listen_hook_enforcement_framework` — exercises the native
`ebpf_program_attach` path with INADDR_ANY bind (zero `local_ip`
branch of `_copy_wfp_listen_fields`).
- `listen_enforcement_libbpf` — exercises the libbpf-compat
`bpf_prog_attach` path with LOOPBACK bind (non-zero `local_ip`
branch of `_copy_wfp_listen_fields`).
- `listen_hard_permit_verdict` — verifies the hard-permit verdict
short-circuits subsequent layer evaluation.
Each test covers IPv4 and IPv6, block and allow verdicts, and asserts
the exact `WSAEACCES` error code on block.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Move user-mode test updates for listen sections to listen impl PR
Updates the netsh `show sections` golden output and the libbpf JIT
test map-iteration assertions to include the new `listen_connection_policy_map`
and the cgroup/listen4 + cgroup/listen6 attach types.
These test updates were previously held back on the listen-tests PR (#5269),
but the production code that emits the new netsh sections and the new map
ships on this PR. Without these matching test changes, the CI runs on this
PR fail at:
tests/end_to_end/netsh_test.cpp(440): REQUIRE(output_matches)
tests/unit/libbpf_test_jit.cpp(462): REQUIRE(map == nullptr)
tests/unit/libbpf_test_jit.cpp(544): REQUIRE(map == nullptr)
Moving the matching test deltas with the impl keeps CI green here. The
remaining in-process tests, fuzzer additions, and usersim bump stay on
#5269.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Defensively null-check IP_LOCAL_INTERFACE in listen field copy
Mirror the bind hook's null-check pattern when copying the LUID at the
ALE_AUTH_LISTEN_V4/V6 layer. If WFP does not provide the LUID (the
`value.uint64` pointer is NULL), default to 0 (NET_IFLUID_UNSPECIFIED)
instead of dereferencing the NULL pointer.
Official documentation does not state whether IP_LOCAL_INTERFACE can be
NULL at AUTH_LISTEN, so defensive consistency with the bind hook is the
safer choice.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Test all netebpfext sock_addr helpers at the listen attach point
Extends test_listen_helpers_v4/v6 in cgroup_sock_addr_helpers.c to call all
five additional sock_addr helpers and write the captured values to
bind_helper_results_map (keys 8 and 9 for v4/v6 respectively). Extends
listen_helper_functions_validation_tcp_v4/v6 in socket_tests.cpp to read
the results back and assert the listen-appropriate value for each helper:
- bpf_get_current_pid_tgid: upper 32 bits == GetCurrentProcessId()
- bpf_get_current_logon_id: non-zero
- bpf_is_current_admin: 0 or 1 (not -1)
- bpf_sock_addr_set_redirect_context: -1 (explicit rejection at listen)
- bpf_get_socket_cookie: 0 (transport_endpoint_handle zeroed at listen)
Mirrors the bind helper validation pattern introduced in PR #5272. Addresses
review feedback on PR #5268 (thread r3376380448) asking whether other
sock_addr helpers apply to listen and whether they need test coverage.
The five helpers all behave correctly at listen without any implementation
change: four work as expected (the listen classify callback populates
process_id, access_information, and the network context fields), while
set_redirect_context is explicitly rejected and socket_cookie returns 0
because the WFP transport endpoint is not allocated/exposed at the
ALE_AUTH_LISTEN layer.
Regenerates the cgroup_sock_addr_helpers bpf2c expected files to reflect
the new helper calls in the sample program.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Michael Agun <danielagun@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: D. Michael Agun <mikeagun@gmail.com>
Co-authored-by: Michael Agun <danielagun@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>release/1.3 (#5362)1 parent aad8c3a commit 0cc5c66
40 files changed
Lines changed: 13857 additions & 2092 deletions
File tree
- docs
- external
- include
- libs
- api
- execution_context
- netebpfext
- tests
- bpf2c_tests
- expected
- end_to_end
- sample
- socket
- unit
- tools/bpf2c
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
229 | | - | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
| |||
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | | - | |
246 | | - | |
| 250 | + | |
| 251 | + | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
253 | 258 | | |
254 | | - | |
255 | | - | |
| 259 | + | |
| 260 | + | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| |||
Submodule ebpf-verifier updated 81 files
- .github/workflows/coverage.yml+1-1
- .gitignore+1
- CHANGELOG.md+91
- CMakeLists.txt+100-9
- README.md+9-2
- examples/using_installed_package/CMakeLists.txt+1-1
- examples/using_installed_package/README.md+1-1
- examples/using_installed_package/TESTING_DETAILS.md+1-1
- scripts/generate_elf_inventory.py+3-3
- scripts/update_verify_expectations.py+3-3
- src/analysis_context.hpp+8-9
- src/crab/add_bottom.hpp+6
- src/crab/array_domain.cpp+99-50
- src/crab/array_domain.hpp+23-12
- src/crab/cow.hpp+48
- src/crab/ebpf_checker.cpp+62-5
- src/crab/ebpf_domain.cpp+12-26
- src/crab/ebpf_domain.hpp+12-10
- src/crab/ebpf_transformer.cpp+95-68
- src/crab/extrapolator.cpp+51
- src/crab/extrapolator.hpp+47
- src/crab/finite_domain.hpp+2
- src/crab/region_semantics.cpp+1
- src/crab/type_domain.cpp+6
- src/crab/type_domain.hpp+2
- src/crab/type_to_num.cpp+3-6
- src/crab/type_to_num.hpp+6-1
- src/crab/var_id_map.hpp+19
- src/crab/zone_domain.cpp+24
- src/crab/zone_domain.hpp+2
- src/fwd_analyzer.cpp+42-114
- src/io/elf_loader.cpp+2-2
- src/io/elf_loader.hpp+3-3
- src/io/elf_reader.cpp+2-3
- src/ir/assertions.cpp+14-1
- src/ir/call_resolver.cpp+3-1
- src/ir/call_resolver.hpp+3-3
- src/ir/cfg_builder.cpp+15-2
- src/ir/syntax.hpp+32-8
- src/ir/unmarshal.cpp+18
- src/linux/gpl/spec_prototypes.cpp+87-1
- src/linux/kfunc.cpp+37-15
- src/linux/kfunc.hpp+6-3
- src/linux/linux_platform.cpp+9-6
- src/main.cpp+3-2
- src/platform.hpp+6-1
- src/printing.cpp+4
- src/result.cpp+13-28
- src/result.hpp+3-9
- src/spec/function_prototypes.hpp+14
- src/spec/type_descriptors.hpp+1
- src/string_constraints.cpp+75
- src/string_constraints.hpp+7-4
- src/test/ebpf_yaml.cpp+45-8
- src/test/marshal.cpp+1-19
- src/test/marshal.hpp
- src/test/parse.cpp+4-104
- src/test/parse.hpp+5-1
- src/test/test_elf_loader.cpp+4-4
- src/test/test_marshal.cpp+47-1
- src/test/test_verify_build.cpp+1-2
- src/test/test_verify_cilium_core.cpp+9-27
- src/test/test_verify_linux_selftests.cpp+1-1
- src/test/test_verify_prototype_kernel.cpp+1-3
- src/test/test_yaml.cpp+1
- src/verifier.hpp+2-3
- test-data/add.yaml+6-9
- test-data/assign.yaml+11-22
- test-data/call.yaml+3-6
- test-data/calllocal.yaml+101
- test-data/callx.yaml+3-6
- test-data/ctx.yaml+124
- test-data/elf_inventory.json+1.0k-1.1k
- test-data/jump.yaml+3-1
- test-data/loop.yaml+2-2
- test-data/map.yaml+4-8
- test-data/nonconvex.yaml+3-4
- test-data/packet.yaml+2-2
- test-data/pointer.yaml+169
- test-data/stack.yaml+2
- test-data/uninit.yaml+14-10
0 commit comments