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

1559 Коммитов

Автор SHA1 Сообщение Дата
Shankar Seal 5b7e0cf88e
Fix api_test documentation. (#3013)
* fix documentation.

* Update docs/GettingStarted.md

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

---------

Co-authored-by: Dave Thaler <dthaler1968@gmail.com>
2023-11-08 00:18:17 +00:00
Pengfei Ni 4b9ba35173
chore: fix the hash for setup scripts (#3009)
* chore: fix the hash for setup scripts

* chore: fix the hash in the getting started guide
2023-11-07 22:36:34 +00:00
Sharmi 41e686d267
Fix ASAN linker error (#3027)
* Remove enable asan

* Test

* Test 2

* Change /spgo

* Add LTCG and WPO asan condition
2023-11-07 21:02:16 +00:00
Igor Klemenski e8821886f2
Clean up bpf_object on exceptions. (#3014)
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
2023-11-01 18:04:01 +00:00
dependabot[bot] a53e1c9db4
Bump external/Catch2 from `766541d` to `966d361` (#3010)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `766541d` to `966d361`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](766541d12d...966d361551)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 15:09:25 +00:00
dependabot[bot] 180f9ae79a
Bump ossf/scorecard-action from 2.3.0 to 2.3.1 (#3011)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](483ef80eb9...0864cf1902)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 15:09:18 +00:00
Alan Jowett 14e104fce7
Switch to bpf_performance v0.0.4 (#3008)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-29 07:05:55 +00:00
Alan Jowett f11e053f55
Fix failure during fault injection (#3007)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-27 14:56:56 +00:00
Dhiren Vispute ed0435b130
Add support for in-memory etl traces (#2946)
Co-authored-by: Dhiren Vispute <Dhiren.Vispute@microsoft.com>
2023-10-26 19:01:46 +00:00
Igor Klemenski 708a1b623f
Restore VM after driver job finishes. (#3000)
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
2023-10-26 18:57:37 +00:00
Alan Jowett 973cfef978
Increase critical value threshold (#3004)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-26 18:56:30 +00:00
Dhiren Vispute 5ef308edd0
Raise IRQL to DISPATCH _after_ test_helper is successfully initialized. (#2988)
* temporary testing mods

* Make sure we raise IRQL to dispatch after successful initialization

---------

Co-authored-by: Dhiren Vispute <Dhiren.Vispute@microsoft.com>
2023-10-25 22:43:14 +00:00
Alan Jowett a3540bf4ec
Delay free of objects to epoch end (#2989)
* Split cleanup of eBPF objects into zero-refcount
and free operations. Zero-rerfcount is permits the
object to release refcounts on other objects while
still permitting it to operate.
The free operation is the final release of the object
and is performed once the current epoch ends.

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

* Wait for epoch free to complete

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

* Fix address sanitizer failure

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>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-25 18:41:12 +00:00
Dhiren Vispute e29d4041b7
Do not run the 'quick' user-mode multi-threaded stress test in scheduled CI/CD workflows. (#2999)
Co-authored-by: Dhiren Vispute <Dhiren.Vispute@microsoft.com>
2023-10-24 19:54:24 +00:00
dependabot[bot] 9dc754a5fc
Bump fkirc/skip-duplicate-actions from 5.3.0 to 5.3.1 (#2993)
Bumps [fkirc/skip-duplicate-actions](https://github.com/fkirc/skip-duplicate-actions) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/fkirc/skip-duplicate-actions/releases)
- [Commits](12aca0a884...f75f66ce18)

---
updated-dependencies:
- dependency-name: fkirc/skip-duplicate-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 15:15:24 +00:00
dependabot[bot] bce8251595
Bump actions/checkout from 4.1.0 to 4.1.1 (#2992)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 15:15:13 +00:00
dependabot[bot] 13aa9fef84
Bump external/ubpf from `a6ad704` to `8e3b87c` (#2990)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `a6ad704` to `8e3b87c`.
- [Commits](a6ad704ec3...8e3b87c75f)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 15:14:56 +00:00
Gianni Trevisiol ac75163cdf
Add MSI testing in the CI/CD pipeline. (#2953)
* draft - tested

* nit

* typo
2023-10-23 15:14:30 +00:00
Anurag Saxena 25dc5d4d00
Add tracing in ebpfapi (#2950)
* add tracing

* cr comments
2023-10-23 15:13:15 +00:00
Alan Jowett 2e1031583c
Switch to hash-table for object id entries (#2984)
* Switch to hash-table for object id entries

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

* Fix debug build

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

* Fix intermittent test failure

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

* Fix code analysis failure

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

* Fix formatting for bpftool tests

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

* Fix fault injection failure

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

* Fix crash in fault injection

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

* bpf_prog_get_next_id should return keys in order

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

* Revert changes to sort object ids

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

* Add note to update to sorted data structure

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

* Fix code analysis failure

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

* PR feedback

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

* Update libs/runtime/ebpf_hash_table.h

Co-authored-by: Dave Thaler <dthaler@microsoft.com>

* PR feedback

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

* Fix typo

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 <dthaler@microsoft.com>
2023-10-19 18:05:37 +00:00
Alan Jowett 15c05901ea
Remove debug fprintf calls (#2982)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-16 20:42:10 +00:00
Alan Jowett e2b51c5409
Wrap all noexcept calls in try/except to catch out of memory (#2941)
* Wrap all noexcept calls in try/except to catch out of memory

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>
2023-10-16 16:35:38 +00:00
dependabot[bot] d316a199b7
Bump github/ossar-action (#2981)
Bumps [github/ossar-action](https://github.com/github/ossar-action) from c757d32d66bea728bc64e67e7d6de9696f7f37d3 to b51f8b4adb5a0d5dbcb24d9ae33488c56a4bd5dd.
- [Commits](c757d32d66...b51f8b4adb)

---
updated-dependencies:
- dependency-name: github/ossar-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 16:03:38 +00:00
dependabot[bot] 9e0ec3e6de
Bump external/ubpf from `ac7bcc3` to `a6ad704` (#2980)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `ac7bcc3` to `a6ad704`.
- [Commits](ac7bcc3bd9...a6ad704ec3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 16:02:42 +00:00
Alan Jowett 6f4bcbd00d
ebpf_epoch_initiate should cleanup on failure (#2972)
* ebpf_epoch_initiate should cleanup on failure

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

* Fix build break

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

* Fix code analysis failure

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>
2023-10-11 20:51:16 +00:00
dependabot[bot] 804c28d39f
Bump ossf/scorecard-action from 2.2.0 to 2.3.0 (#2964)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](08b4669551...483ef80eb9)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 19:29:15 +00:00
Dhiren Vispute dc31948f17
check for valid work queue ptr prior to usage (#2970)
Co-authored-by: Dhiren Vispute <Dhiren.Vispute@microsoft.com>
2023-10-11 00:53:10 +00:00
Alan Jowett f2e17ef88c
Switch to mt19937 algorithm (#2956)
* Switch to mt19937 algorithm

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

* PR feedback

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

* Improve PRNG tests

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

* Revert usersim change

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

* Fix include 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>
2023-10-09 18:07:35 +00:00
dependabot[bot] cc6819f63e
Bump step-security/harden-runner from 2.5.1 to 2.6.0 (#2963)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](8ca2b8b2ec...1b05615854)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-07 19:55:15 +00:00
dependabot[bot] 935c9bce5b
Bump external/usersim from `adcc687` to `6ca1f96` (#2965)
Bumps [external/usersim](https://github.com/microsoft/usersim) from `adcc687` to `6ca1f96`.
- [Commits](adcc687e61...6ca1f96688)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-07 19:54:42 +00:00
Gianni Trevisiol b6ef96334a
Release v0.12.0 (#2937)
* Update sources to v0.12.0

* refresh
2023-10-05 20:03:03 +00:00
Amit Schendel 16658f4d11
Adding a call to ebpf_trace_terminate in case of subsequent APIs faliure (#2921)
* Adding a call to ebpf_trace_terminate in case of subsequent APIs faliure

Signed-off-by: Amit Schendel <amithagever@gmail.com>

* Adding ebpf_trace_terminate to the Exit section of the DriverEntry

Signed-off-by: Amit Schendel <amitschendel@gmail.com>

---------

Signed-off-by: Amit Schendel <amithagever@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
2023-10-05 15:19:51 +00:00
Alan Jowett f7010d45f3
Timed work queue (#2900)
* Timed work queue

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

* Fix code analysis failure

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

* Switch to timed_work_queue to save DPCs

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>

* PR feedback

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

* PR feedback

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

* Fix code-analysis failure

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

* Fix fault injection failure

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

* PR feedback

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

* Fix code analysis failure

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>

---------

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-04 18:04:52 +00:00
Igor Klemenski 9f66160a9d
fix tests not returning exit code (#2943)
Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
2023-10-04 15:04:40 +00:00
Alan Jowett 05d82c1faa
Remove spurious locks in object map path (#2938)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-10-03 18:11:56 +00:00
Dave Thaler a2a41c6263
Document roles and responsibilities (#2939)
* Document roles and responsibilities

Fixes #2934

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Update .github/CODEOWNERS

* Update docs/Governance.md

---------

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-10-03 05:32:09 +00:00
Dave Thaler 9b51497b63
Add performance badge to README file (#2935)
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-10-02 20:21:33 +00:00
Igor Klemenski 39704888f2
Test error fix (#2924)
* fixx COnnectRedirect test error reporting

* fix error pasring in api_test

* differential comparison - force api_test failure, should not be detected

* try conn_redir error catch

* restore

---------

Co-authored-by: Igor Klemenski <igklemen@microsoft.com>
2023-10-02 17:28:53 +00:00
Anurag Saxena bd12a0385d
Implement LIBBPF_PIN_BY_NAME instead of PIN_GLOBAL_NS (#2862)
* fix

* update demo repo release version

* cr comments

* fix

* fix expected files
2023-10-02 15:14:02 +00:00
dependabot[bot] 1fe168d641
Bump external/pe-parse from `0b9fdb3` to `3c2bd4d` (#2927)
Bumps [external/pe-parse](https://github.com/trailofbits/pe-parse) from `0b9fdb3` to `3c2bd4d`.
- [Release notes](https://github.com/trailofbits/pe-parse/releases)
- [Commits](0b9fdb3bdf...3c2bd4d5c6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-30 18:05:27 +00:00
dependabot[bot] 8d2c4fecf9
Bump external/Catch2 from `9c541ca` to `766541d` (#2926)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `9c541ca` to `766541d`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](9c541ca72e...766541d12d)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-30 18:04:25 +00:00
dependabot[bot] 7571e1a2b1
Bump external/usersim from `599123f` to `adcc687` (#2928)
Bumps [external/usersim](https://github.com/microsoft/usersim) from `599123f` to `adcc687`.
- [Commits](599123fb14...adcc687e61)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-30 18:04:18 +00:00
Gianni Trevisiol 0ea0927ecb
Add test for checking DLL dependencies in distributed user-mode binaries. (#2922)
* working draft

* add regular/debug

* sync dependencies

* sync ebpfsvc

* optimize

* wip

* nit
2023-09-30 04:43:36 +00:00
Anurag Saxena ffeb90bac5
Fix #line 0 issue for bpf2c (#2920)
* fix 0 line numbers for bpf2c

* cr comments
2023-09-29 21:30:11 +00:00
Dave Thaler 968d33a741
Fix netsh show maps alignment issue (#2918)
Fixes #2917

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-09-29 18:13:56 +00:00
Alan Jowett 575903406b
Move required definitions to include/bpf_helpers.h (#2880)
* Move required definitions to include/bpf_helpers.h

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

* Recreate macros from primary sources

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>
2023-09-28 22:54:44 +00:00
Alan Jowett 2c0e731597
Fix processing of bpf perf results (#2914)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-09-28 04:19:50 +00:00
Alan Jowett 39920ce91a
Fastfail if constraints are violated (#2864)
* Fastfail if constraints are violated

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>

* 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>
2023-09-26 17:10:25 +00:00
Dave Thaler b1dee649a1
Add test case calling an IOCTL in ebpfcore_usersim.dll (#2876)
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-09-26 17:06:49 +00:00
Alan Jowett 46dcb40b15
Fix typo in actions/upload-artifact (#2909)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-09-26 16:51:19 +00:00