Граф коммитов

610 Коммитов

Автор SHA1 Сообщение Дата
Alan Jowett 811c060983
Add support for building ARM64 native only eBPF for Windows. (#3921)
* Add support for building ARM64 native only eBPF for Windows.

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-10-10 22:49:07 +00:00
Alan Jowett b312e0725e
Switch to group affinity to work correctly on systems with > 64 CPUs (#3923)
* Switch to group affinity

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Update libs/runtime/ebpf_platform.h

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-10-10 16:34:12 +00:00
Lorenz Bauer 847d14a8d5
bpf(): return ENOENT when looking up out-of-bounds index in array (#3902)
Looking up an index which is larger than an array's length currently
results in EINVAL. This doesn't match what Linux does, which is to return
ENOENT.

Change the behaviour to return ENOENT instead.
2024-10-09 20:43:22 +00:00
Lorenz Bauer 30a6cf75f1
Return ENOENT from bpf_obj_get when no pinned object exists (#3899)
The current implementation of bpf_obj_get doesn't follow libbpf semantics,
because it always returns -1 on error, instead of returning the negative
error number.

This is especially noticeable when trying to open a non-existant object,
which should return -ENOENT.

See caa17bdcbf/src/bpf.c (L625-L626)
2024-10-09 19:23:31 +00:00
Alan Jowett 205802b082
Revert CPU activation code until issues are resolved (#3909)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2024-10-08 14:53:38 +00:00
Sharmi f23ab7def5
Support TraceLoggingBinary for map find, update and delete. (#3781)
* Initial commit

* Initial commit

* Added _DEBUG around tail call display

* Renamed key to data

* Removed _DEBUG

* Added SAL annotation, as per the comments

* Added SAL annotation, as per the comments

* Fix crash

* make data non-optional

* Added the check for .key_size != 0

* Removed additional tracing in EBPF_LOG_MESSAGE_BINARY macro

* Merged with main

* Trying 16KB of stack size

* Addressed PR comment

* Added macro with combined traces

* Increased stack size to 32K for DEBUG image

* Fix the string concatenation in macro

* Increase the stack size to 64, and added some logs to check the crashdumps during hangs

* Added retry when the dump file cannot be compressed because it is used by another process

* Expanded stack size for all netebpf wfp callouts

* Addressed PR comments

* Added _DEBUG back

* Increased stack size to 20K for DEBUG

* Add optimatization

* With 4K stack expansion size

* Final commit
2024-10-04 20:20:47 +00:00
Lorenz Bauer 504ed9a032
Return EBADF for negative object fds (#3901)
On Linux, -1 is a commonly used value for "invalid fd". As such it makes more
sense to return EBADF instead of EINVAL from object related API when a negative
fd is passed.

_get_handle_from_file_descriptor() returns ERROR_INVALID_HANDLE, which turns into
EBADF via the various compat layers. We can therefore simply remove the <= 0 check.
2024-10-04 17:28:48 +00:00
Lorenz Bauer e0b61633e0
Backwards compatible fixes to bpf() syscall emulation (#3870)
* bpf(): do not return errors via errno

The Linux ABI returns all syscall errors via the function return value,
not via errno.

Fixes https://github.com/microsoft/ebpf-for-windows/issues/3749

* Allow detecting if bpf() command is not implemented

Use SetLastError to indicate to callers that a bpf() command is not
implemented. This avoids polluting the bpf() return value with
platform specific error returns while still allowing detection of
this important case.

* Add forwards and backwards compatibility to bpf() emulation

On Linux, bpf() accepts a bpf_attr which is larger than what the
syscall expects, as long as the unknown fields are all 0. It also
accepts a bpf_attr which is smaller than what it expects, by assuming
that all missing fields are zero.

This allows forwards and backwards compatilibity between old and new
versions of both the Linux kernel and user space tooling.

Implement a similar scheme for the bpf() emulation.

* Return EPERM from bpf() if user is not privileged

On Linux, bpf() returns EPERM if the user doesn't have CAP_BPF. Return
the same error when the user isn't able to open the device handle.
2024-10-04 15:01:20 +00:00
Alan Jowett c65ed46cb6
Wrap platform specific code in approriate #defines (#3894)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-10-04 15:00:16 +00:00
Alan Jowett 735ec5277f
Refactor common platform and config into Directory.Build.props (#3891)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-10-02 19:14:14 +00:00
Alan Jowett 8743c34ab3
Enforce memory ordering in RCU aware hash-table (#3890)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-10-02 04:23:23 +00:00
Alan Jowett ee6ebaf576
Avoid unneeded atomic operations (#3878)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-09-30 21:27:13 +00:00
Anurag Saxena 462b8e3cab
Update store APIs to also update HKLM (#3660) (#3853) 2024-09-20 23:13:36 +00:00
Alan Jowett 0aa85539af
Prevent double activation (#3854)
* Prevent double activation

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback and more asserts

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Fix test failures

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-09-20 18:40:11 +00:00
Alan Jowett 6ad1063766
Set the freed_epoch to current_epoch, not 0 (#3850)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-09-19 18:28:58 +00:00
Alan Jowett a0b093c940
Enable add/remove CPU's from epoch consensus (#3771)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-09-11 21:08:04 +00:00
Anurag Saxena 99c4e48856
direct call for prog array, add spd file (#3816) 2024-09-07 05:06:00 +00:00
Alan Jowett 06533c8d48
Switch to crc32 if available for hashing function (#3803)
* Switch to crc32 if available for hashing function

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Only do crc32 when keys are directly accessible

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Minimize branches and extra ALU ops

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-09-04 20:19:57 +00:00
Alan Jowett 3240a2eb09
Inline _ebpf_adjust_value_pointer to reduce cost of ebpf_map_find_entry (#3804)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-08-30 21:17:22 +00:00
Ben Lewis 71759c0abc
First string functions for ebpf general helpers. (#3780)
* Initial progress on function implementations.

* Moved code.

* Updated kernel project.

* Working on parallel user and kernel mode versions.

* Work in Progress.

* Added tests, added a lot.

* Cleaned up test code some, still doesn't build.

* Re-enabled some tests.

* Got a working set of tests, now to figure out what to do with this in the interim.

* Removing as-yet-unimplemented functions for now.

* Fixed a name.

* Doxygen fixes. Also removed a function header that'll be needed another time.

* Got down to one source file, got a build working in user mode.

* Renamed string_opts to ebpf_strings

* Corrected build issues, removed other extraneous comments.

* Fixed the test selection name, and suppressed an analysis error in a Windows header.

---------

Co-authored-by: Ben Lewis (REDMOND) <Ben.Lewis@microsoft.com>
2024-08-27 20:55:55 +00:00
Dave Thaler 94a66d67bd
Correct obsolete comment (#3767)
windows_error_to_ebpf_result was renamed to
win32_error_code_to_ebpf_result moved to ebpf_utilities.h
back in 2022 but this comment was missed.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
2024-08-13 03:46:57 +00:00
Alan Jowett 3738c826c7
Switch to using Visual Studio's version of LLVM and Clang (#3754)
* Add VS Clang to path

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Fix tests

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Reformat using clang 17.0.3

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Account for git_commit_id.h dependency

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Revert https://github.com/microsoft/ebpf-for-windows/pull/3756 from this branch

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Make LLVM path dependent on cl.exe path

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Use VCINSTALLDIR as root of LLVM path

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Update hash and set path to use environment variable

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-08-07 16:43:47 +00:00
Shankar Seal 6af442038c
invalid prog data tests. (#3718)
* invalid prog data tests.

changes.

* analysis_assume.

* PR feedback.

---------

Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2024-07-29 22:46:29 +00:00
Sharmi 54632eb360
Set errno for bpf_object__find_map_by_name (#3712)
* Initial Commit

* Initialize errno

* Set errno for bpf_object__find_map_by_name

* Added Doxygen comment
2024-07-23 18:32:28 +00:00
Anurag Saxena ffb3638259
Implement `implicit_context` for helper functions. (#3656)
* backup

* backup

* fix build issues

* fix build

* fix analysis failures, fix tests

* seperate out sample for implicit context

* backup

* add ctx as last argument

* fix hash

* block implicit context for jit and interpret

* stabilize tests

* tail call fast path

* add check to reject change in context_header support

* enable implicit context for jit and interpret

* fix

* fix build

* fix analysis build

* update version, update expected files

* fix test failures

* fix test failures

* fix tests

* cleanup

* cleanup

* more cleanup

* enable performance tests

* enable performance tests

* remove tail_call changes

* remove tail_call changes

* remove tail_call changes

* remove tail_call changes

* fix analysis error

* update documentation

* code cleanup

* fix bad merge

* fix test case

* cr comments

* update expected files

* cr comments
2024-07-19 17:12:08 +00:00
Alan Jowett cb37e78295
_ebpf_link_instance_invoke_with_context_header should call correct batch_end api (#3709)
Signed-off-by: Alan Jowett (from Dev Box) <alanjo@microsoft.com>
2024-07-17 18:58:54 +00:00
Alan Jowett 50f513d002
Optimize integer size key in hash-tables. (#3710)
Signed-off-by: Alan Jowett (from Dev Box) <alanjo@microsoft.com>
2024-07-17 18:18:45 +00:00
Shankar Seal 6b75459f04
UM API to write into a ring buffer map. (#3689)
* UM API to write into a ring buffer map.

* PR Feedback.

* PR feedback.

* PR comments.
2024-07-17 07:57:37 +00:00
Sharmi 7ee9edfb44
[bpf_map_lookup_batch] Fix bpf_map_lookup_batch data retrieval and add test cases for percpu hash map batch lookup (#3590)
* Initial commit

* Initial commit

* debug

* Initial commit

* Initial commit

* Added BPF_MAP_TYPE_PER_CPU to get the map type
2024-07-16 18:48:17 +00:00
Alan Jowett a055146760
Upgrade all C_ASSERT to static_assert (#3702)
Signed-off-by: Alan Jowett (from Dev Box) <alanjo@microsoft.com>
2024-07-16 17:46:04 +00:00
Anurag Saxena 00c9138876
Use `context_header` for tail call perf improvement (#3698)
* fix

* fix

* fix

* fix tests

* fix tests

* change to capabilities, add check for prog_array map

* fix analysis build, add tests

* update documentation

* add context_header_support callback for maps

* CR comment

* change capabilities to bitfield

* Apply suggestions from code review

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>

* cr comments

* cr comments

* Apply suggestions from code review

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>

* CR comments

---------

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2024-07-15 16:23:51 +00:00
D. Michael Agun 2efce152dc
Set empty program name to hash of instructions (#3493)
* Move C++ hashing lib from tests/libs/util/ to libs/shared/

This puts hash.cpp/hash.h in a more central location for use by other project files.

* Set empty program name to hash of instructions

ebpf_program_load_bytes now hashes the instructions and uses that for the name
instead of generating a random number.

Closes #3443

* fix signed/unsigned warning (and ensure windows helper id >= 0)

* add bcrypt.dll dependency for ebpfapi.dll

* WIP new test case for ebpf_program_load_bytes with nullptr program name

* WIP ebpf_program_load_bytes testing

* truncate SHA256 hash to 63 bytes to stay under BPF_OBJ_NAME_LEN

* remove bcrypt from release dependencies and suppress analyze warning

* PR feedback - fix comment and bpf2c include paths

---------

Co-authored-by: Michael Agun <danielagun@microsoft.com>
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2024-07-02 14:47:03 +00:00
dependabot[bot] 4667783ba1
Bump external/ubpf from `2c2a68a` to `d2a33c2` (#3676)
* Bump external/ubpf from `2c2a68a` to `d2a33c2`

Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `2c2a68a` to `d2a33c2`.
- [Commits](2c2a68a2d9...d2a33c28db)

---
updated-dependencies:
- dependency-name: external/ubpf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build break

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-06-26 21:38:07 +00:00
Alan Jowett 83a35d3c71
Speedup ebpf_handle_table_terminate by avoiding acquire/release of lock (#3605)
* Speedup ebpf_handle_table_terminate by avoiding acquire/release of lock

Signed-off-by: Alan Jowett (from Dev Box) <alanjo@microsoft.com>

* Add workaround for native module handle cleanup delay

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett (from Dev Box) <alanjo@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-06-25 21:49:39 +00:00
Alan Jowett 3fca9f1348
Fix conflict between Windows and ubpf headers (#3665)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-06-25 21:46:41 +00:00
Alan Jowett 8440c60ced
Add hint to LTCG that code should be inlined (#3658)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-06-21 17:40:58 +00:00
Alan Jowett 7dc742e4e4
Simplify native module handle cleanup (#3653)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2024-06-20 19:06:52 +00:00
dependabot[bot] 2cf8fa184e
Bump external/ebpf-verifier from `df34181` to `2018df9` (#3600)
* Bump external/ebpf-verifier from `df34181` to `2018df9`

Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `df34181` to `2018df9`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](df3418141c...2018df951b)

---
updated-dependencies:
- dependency-name: external/ebpf-verifier
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build failures due to breaking change

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2024-06-03 19:10:39 +00:00
Dave Thaler 7b3f682ded
Implement libbpf autoload APIs (#3592)
* Implement libbpf autoload APIs

Fixes #3555

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Suppress spurious compiler warning

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Fix test failure

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Update tests

Files with no program sections succeed loading

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Address PR comment from Anurag

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* PR feedback

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Fix test

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Prevent changing prog type of a native program

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* PR feedback

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Remove unused program_type from native load ioctl

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Update default autoload value

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* PR feedback

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Fix test

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Add check to unit_test to match api_test

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Fix api_test

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

---------

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
2024-06-03 15:28:04 +00:00
nullswan dfbcda9001
chore: rename (#3603) 2024-06-03 04:32:16 +00:00
Anurag Saxena 05a7189556
move enum to header (#3593) 2024-05-31 21:06:42 +00:00
Alan Jowett 22742b4d45
Add workaround for NmrRegisterClient calling detach (#3594)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-05-31 03:51:03 +00:00
Dave Thaler 840269a9ec
Add support for multiple programs per section (#3557)
* Allow multiple programs per section

Temporarily use a fork of ebpf-verifier until
https://github.com/vbpf/ebpf-verifier/pull/642 is merged.

Per https://stackoverflow.com/questions/13147170/attribute-always-inline-failing
the __attribute__((always_inline)) doesn't do anything unless you also
have the "inline" keyword.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Update verifier to latest

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Address comment from Alan

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Address API compat comment from Anurag

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

---------

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
2024-05-29 15:30:20 +00:00
Alan Jowett a5ebdba9d6
Cleanup batch APIs and remove unused parameter (#3580)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Sharmi <shpalan@microsoft.com>
2024-05-29 15:06:50 +00:00
Alan Jowett bba08b58d3
Pickup latest ubpf and fix breaking changes (#3581)
* Pickup latest ubpf and fix breaking changes

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Pickup fix in ubpf

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Fix parsing issue

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Pickup fix in ubpf

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Sharmi <shpalan@microsoft.com>
2024-05-28 23:12:20 +00:00
Anurag Saxena f7ec168340
Add `total_size` to extension header. (#3573)
* change ebpf_extension_header_t to ebpf_version_header_t

* revert to ebpf_version_header_t

* revert to ebpf_version_header_t

* update header

* update doc

* update doc

* use total_size to get the actual struct size

* Apply suggestions from code review

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>

---------

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2024-05-24 01:05:36 +00:00
Alan Jowett aed27b488b
Add option to control the level of verbosity emitted by verifier. (#3570)
* Add option to control the level of verbosity emitted by verifier.

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Re-order enums to make normal < informational < verbose

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Workaround for verifier failure #643

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Revert change in ebpf-service verification path

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2024-05-23 14:02:34 +00:00
Alan Jowett aaad411354
Phase 1 of removing the rundown protection for invoke (#3534)
* Phase 1 of removing the rundown protection for invoke

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Fix SAL annotation error

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Phase 1 of removing the rundown protection for invoke

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Fix SAL annotation error

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Ensure that _ebpf_program_free always run outside of an epoch to prevent deadlocks

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Revert unrelated change

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* PR feedback and leak fix

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2024-05-17 14:41:38 +00:00
Alan Jowett 1639d18586
Pickup latest ubpf and fix breaking contract changes (#3531)
* Pickup latest ubpf and fix breaking contract changes

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

* Suppress warnings in external code

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2024-05-17 14:41:24 +00:00
Dave Thaler d096b21ac5
Update copyright to be eBPF for Windows contributors (#3508)
* Update copyright to be eBPF for Windows contributors

Fixes #3507

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>

* Undo gratuitous formatting changes in expected files

---------

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
2024-05-04 19:55:56 +00:00