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

1378 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] de40d75adf
Bump peter-evans/create-pull-request from 4.2.4 to 5.0.0 (#2294)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.2.4 to 5.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](38e0b6e68b...5b4a9f6a9e)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 20:48:13 +00:00
dependabot[bot] f613ba328d
Bump actions/github-script from 6.4.0 to 6.4.1 (#2293)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](98814c53be...d7906e4ad0)

---
updated-dependencies:
- dependency-name: actions/github-script
  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-04-10 20:47:56 +00:00
Anurag Saxena d8ccbc7625
connect_redirect tests: Add check that source port is not 0 (#2289)
* fix

* update expected files
2023-04-10 20:47:41 +00:00
dependabot[bot] 47d553bb50
Bump github/codeql-action from 2.2.9 to 2.2.11 (#2295)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.9 to 2.2.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](04df1262e6...d186a2a36c)

---
updated-dependencies:
- dependency-name: github/codeql-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-04-10 20:47:24 +00:00
Sharmi e83c30ba1c
ebpf_platform_user.cpp: Add Fault injection condition in _initialize_thread_pool for OS API (#2290)
* Add Fault injection condition in _initialize_thread_pool

* destroy _callback_environment

* Removed Destroy callback environment

* Added cleanup_group check

* Change CancelPendingCallbacks to true

* Remove CloseThreadpoolCleanupGroupMembers

* Calling InitializeThreadpoolEnvironment before Fault injection condition

* Removed ebpf_fault_injection_is_enabled()
2023-04-10 20:47:08 +00:00
Nick Banks a026cf883a
Fix CI/CD Badge (#2300) 2023-04-10 17:53:50 +00:00
Alan Jowett 57db08dd50
Call KeEnterCriticalRegion during epoch (#2277)
* Call KeEnterCriticalRegion during epoch

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

* PR feedback

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

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-04-10 17:35:07 +00:00
dependabot[bot] 532feb8e36
Bump external/Catch2 from `9f08097` to `50bf00e` (#2297)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `9f08097` to `50bf00e`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](9f08097f55...50bf00e266)

---
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-04-09 00:24:06 +00:00
Shankar Seal 5d32a5b032
Add a WFP provider object. (#2282)
* Add a WFP provider object.

* Apply suggestions from code review

Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>

---------

Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2023-04-07 22:16:45 +00:00
Sharmi 7ca6c13da1
Initial commit (#2286) 2023-04-07 00:12:44 +00:00
Alan Jowett e8f437f364
Raise STATUS_ASSERTION_FAILURE on test timeout (#2272)
* Raise STATUS_ASSERTION_FAILURE on test timeout

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

* PR feedback

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

* Manually generated dump on test timeout

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

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-04-06 23:03:43 +00:00
kelowerirql 3fd495af79
Correct the ELF acronym (#2284)
ELF is an acronym for Executable and Linkable Format
2023-04-06 17:26:51 +00:00
Alan Jowett d22a2d8616
Initialize new_link fd to ebpf_fd_invalid (#2279)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-04-06 03:35:18 +00:00
Alan Jowett 46abd1b374
Check program state before permitting linking (#2250)
* Check program state before permitting linking

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

* PR feedback

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

* Don't return pointer to mutable state

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

* Fix code analysis failure

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

* Update libs/execution_context/ebpf_program.h

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

* PR feedback

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

* mend

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-04-05 21:22:45 +00:00
Sharmi 750279068c
Simulate NMR API failures: Fix SIGSEGV crashes (#2268)
* Fix SIGSEGV crashes

* Revert changes in ebpf_cryptographic_hash_append

* Add new line
2023-04-04 23:28:16 +00:00
Anurag Saxena dcc2e6470c
Fix memory leaks (#2267)
* cicd.yml change -- revert

* fix leak

* fix leaks

* fix leak

* Revert "cicd.yml change -- revert"

This reverts commit 0ff2cff79b.

* code cleanup

* CR comments
2023-04-04 20:06:30 +00:00
Delaram Amiri 0ad5f9342a
Code coverage report is calculated before running tests (#2227)
* fix yml file for codecov

* uodate the no of builds

* address PR comment

* Address PR feedback

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

---------

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-04-04 19:58:40 +00:00
Alan Jowett de29fbb951
Remove hard affinity in epoch code (#2262)
* Remove hard affinity in epoch code

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

* Code analysis failure

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

* Remove APC related logic

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

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-04-04 02:52:21 +00:00
dependabot[bot] 9295c6702b
Bump github/codeql-action from 2.2.8 to 2.2.9 (#2265)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](67a35a0858...04df1262e6)

---
updated-dependencies:
- dependency-name: github/codeql-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-04-03 06:36:42 +00:00
dependabot[bot] 70ae975be9
Bump external/Catch2 from `1f881ab` to `9f08097` (#2264)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `1f881ab` to `9f08097`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](1f881ab464...9f08097f55)

---
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-04-03 06:35:59 +00:00
Dhiren Vispute 21300edaf1
Ensure refcounts for extension provider data access (#2257) 2023-04-01 00:14:33 +00:00
Sharmi 306a142368
Simulate NMR API failures: Fix memory leaks and segmentation fault (#2253)
* Fix memory leaks

* Calling clean_up_ebpf_program

* Removed the change in fwp_um.cpp
2023-03-31 20:27:33 +00:00
dependabot[bot] 00a3aabb03
Bump external/ubpf from `2146a12` to `329fd79` (#2256)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `2146a12` to `329fd79`.
- [Release notes](https://github.com/iovisor/ubpf/releases)
- [Commits](2146a126e6...329fd799c2)

---
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-03-30 23:29:22 +00:00
dependabot[bot] 67ef2c20de
Bump external/ebpf-verifier from `5fcd594` to `19609db` (#2255)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `5fcd594` to `19609db`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](5fcd5949d8...19609dbe50)

---
updated-dependencies:
- dependency-name: external/ebpf-verifier
  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-03-30 17:05:52 +00:00
dependabot[bot] ef558bb24b
Bump external/ebpf-verifier from `abc6981` to `5fcd594` (#2236)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `abc6981` to `5fcd594`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](abc6981e68...5fcd5949d8)

---
updated-dependencies:
- dependency-name: external/ebpf-verifier
  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-03-27 20:24:38 +00:00
dependabot[bot] 430b310e98
Bump external/ubpf from `0262957` to `2146a12` (#2235)
Bumps [external/ubpf](https://github.com/iovisor/ubpf) from `0262957` to `2146a12`.
- [Release notes](https://github.com/iovisor/ubpf/releases)
- [Commits](02629575f7...2146a126e6)

---
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-03-27 19:15:40 +00:00
dependabot[bot] 4cf9349947
Bump actions/checkout from 3.4.0 to 3.5.0 (#2234)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-03-27 19:15:26 +00:00
dependabot[bot] 11485a381f
Bump github/codeql-action from 2.2.7 to 2.2.8 (#2233)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](168b99b3c2...67a35a0858)

---
updated-dependencies:
- dependency-name: github/codeql-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-03-27 19:15:10 +00:00
Alan Jowett 240fbb16d8
Convert single line if to if with braces (#2224)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-03-27 15:01:21 +00:00
dependabot[bot] bd43ffc9bf
Bump external/Catch2 from `6783411` to `1f881ab` (#2237)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `6783411` to `1f881ab`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](6783411349...1f881ab464)

---
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-03-26 06:04:17 +00:00
Alan Jowett d4b2a4eef4
Fix leak of bpf_link objects on fault injection (#2231)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-03-25 00:58:53 +00:00
Alan Jowett 107bc0f6ff
Store leaked stacks in memory (#2232)
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-03-25 00:11:29 +00:00
Shankar Seal b7429c9b50
Redirect list (#2074)
* Simplify connect-redirect classify function.

* PR Feedback.

* Refactor tests.
2023-03-23 02:12:00 +00:00
Alan Jowett c55748d6df
Wrap calls from ebpf_drv.c in epoch calls (#2189)
* Replace dynamically sized thread table with fixed
capacity table to avoid memory allocation failures.

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

* Isolate hash-table search logic

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

* Fix code analysis failure and test failure

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

* PR feedback

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

---------

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-03-22 22:14:43 +00:00
Gianni Trevisiol 8b016be1fd
Improve MSI UX, Wix project update (#2221)
* Reinforce installation policies.

* wip

* wip
2023-03-22 20:51:15 +00:00
Gianni Trevisiol a6728ad4f1
Lower C.63 to warning. (#2219) 2023-03-21 20:44:25 +00:00
Dhiren Vispute f6bf814608
Add User mode multi-threaded stress tests (#2195)
* Add User mode multi-threaded stress tests

* Schedule nightly multi-threaded stress tests (user mode)

* Add missing event check
2023-03-21 19:00:42 +00:00
Gianni Trevisiol 0f773e1858
Add build_msi flag, build nuget on regular build only. (#2204)
* Add build_msi flag, build nuget on regular only

* Embed artifact name in output name

* env vars
2023-03-20 20:06:38 +00:00
dependabot[bot] b72f1ac504
Bump external/Catch2 from `3220ae6` to `6783411` (#2205)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `3220ae6` to `6783411`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](3220ae6d4a...6783411349)

---
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-03-20 15:23:28 +00:00
dependabot[bot] ed0b06929f
Bump external/pe-parse from `c17d4bb` to `bc0d0d3` (#2207)
Bumps [external/pe-parse](https://github.com/trailofbits/pe-parse) from `c17d4bb` to `bc0d0d3`.
- [Release notes](https://github.com/trailofbits/pe-parse/releases)
- [Commits](c17d4bb02b...bc0d0d3b6d)

---
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-03-20 15:23:05 +00:00
dependabot[bot] ffad46c13b
Bump actions/checkout from 3.3.0 to 3.4.0 (#2208)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-03-19 07:16:32 +00:00
dependabot[bot] d66ce763b2
Bump external/ebpf-verifier from `18b19ba` to `abc6981` (#2206)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `18b19ba` to `abc6981`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](18b19ba1cb...abc6981e68)

---
updated-dependencies:
- dependency-name: external/ebpf-verifier
  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-03-19 04:19:35 +00:00
dependabot[bot] b81976b225
Bump peter-evans/create-pull-request from 4.2.3 to 4.2.4 (#2209)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](2b011faafd...38e0b6e68b)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  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-03-19 04:18:18 +00:00
dependabot[bot] 5bb5c69256
Bump github/codeql-action from 2.2.6 to 2.2.7 (#2210)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](16964e90ba...168b99b3c2)

---
updated-dependencies:
- dependency-name: github/codeql-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-03-19 04:18:01 +00:00
dependabot[bot] 43d4db5e97
Bump actions/cache from 3.3.0 to 3.3.1 (#2211)
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](940f3d7cf1...88522ab9f3)

---
updated-dependencies:
- dependency-name: actions/cache
  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-03-19 04:17:46 +00:00
dependabot[bot] c14b849b6c
Bump windows/nanoserver in /images (#2212)
Bumps windows/nanoserver from 10.0.20348.1547 to 10.0.20348.1607.

---
updated-dependencies:
- dependency-name: windows/nanoserver
  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-03-19 04:15:36 +00:00
Anurag Saxena 98893ec15b
Fix memory leaks in netebpfext (#2190)
* fix

* fix memory leaks

* cr comments

* fix analyze failure

* fix sal
2023-03-17 15:53:23 +00:00
Anurag Saxena aec1c4060c
Enable leak_detection for "fault_injection" test case. (#2192)
* fix leaks

* update cicd

* fix tests

* fix

* fix

* fix

* add sal
2023-03-17 15:52:39 +00:00
Sharmi 282134fc34
Added cgroup_sock_addr2 related files to deploy-ebpf and Product.wxs script (#2193)
* Added cgroup_sock_addr2 related files to deploy script

* Added bpf2c_tests in wixproj file
2023-03-15 23:48:01 +00:00
Gianni Trevisiol 794a506e15
Refactor nuget source XML. (#2186)
* draft

* final

* cherry-pick from external files only

* nit
2023-03-14 19:31:36 +00:00