Anurag Saxena
caa05287b1
Enable low memory simulation for netebpfext unit tests. ( #2170 )
...
* add test
* bugfix
* bugfix
* add low_memory_full test
* cr comments
* fix cicd.yml error
* fix, cr comments
* fix build break
* cr comments
* update environment
2023-03-13 18:38:41 +00:00
dependabot[bot]
a8d1926180
Bump external/Catch2 from `69f35a5` to `3220ae6` ( #2176 )
...
Bumps [external/Catch2](https://github.com/catchorg/Catch2 ) from `69f35a5` to `3220ae6`.
- [Release notes](https://github.com/catchorg/Catch2/releases )
- [Commits](69f35a5ac8...3220ae6d4a
)
---
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-13 02:34:31 +00:00
dependabot[bot]
8e86ea342f
Bump step-security/harden-runner from 2.2.0 to 2.2.1 ( #2177 )
...
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/step-security/harden-runner/releases )
- [Commits](c8454efe5d...1f99358870
)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
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-13 02:33:53 +00:00
dependabot[bot]
6e04b2c01f
Bump github/codeql-action from 2.2.5 to 2.2.6 ( #2178 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.2.5 to 2.2.6.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](32dc499307...16964e90ba
)
---
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-13 02:33:34 +00:00
dependabot[bot]
ae24a63227
Bump actions/cache from 3.2.6 to 3.3.0 ( #2179 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.6 to 3.3.0.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](69d9d449ac...940f3d7cf1
)
---
updated-dependencies:
- dependency-name: actions/cache
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-13 02:33:06 +00:00
Alan Jowett
4cf0391526
Refactor low memory test into generic fault injection ( #2173 )
...
* Refactor low memory test into generic fault injection
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Update number of frames to skip
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-11 02:42:28 +00:00
Alan Jowett
14580fd5e3
Move extension definitions to their own file ( #2172 )
...
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-03-10 21:39:46 +00:00
Gianni Trevisiol
9f58bcb653
Release v0.7.0 ( #2169 )
...
* wip
* wip
* wip
* doc
* Fix bpftoc generation script
2023-03-09 18:44:06 +00:00
Delaram Amiri
82bc565571
Add a connection reauth test in sock_add tests ( #2159 )
...
* add test cases for reauth flags
* Update netebpfext/user/fwp_um.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* address PR comment
* update the test for reauth
* create one test
* change the comment
* change flag name
* change flag name
* Update netebpfext_unit.cpp
* Update fwp_um.cpp
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-03-09 06:21:33 +00:00
Gianni Trevisiol
9a2e8ee331
Sync msi's libbpf directory tree to nuget ( #2149 )
...
* draft
* include sync
* doc
* doc - release step
* remove pdb
2023-03-07 01:22:09 +00:00
Gianni Trevisiol
1f6d85c999
Wrap registry APIs behind store APIs. ( #2114 )
...
* Wrap registry APIs
* pr feedback
* PR feedback: revert splitting implementation from .
* nit
* nit
* nit
* rev
* fix unicode size calc
* remove redundant success check
* revert string length calculation, var rename
* var rename for clarity
* revise store api location, reorg externals
* add error trace, fix cmake
* convert error codes
2023-03-06 23:10:51 +00:00
dependabot[bot]
b6b559f49f
Bump external/ebpf-verifier from `bbf376e` to `18b19ba` ( #2162 )
...
* Bump external/ebpf-verifier from `bbf376e` to `18b19ba`
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier ) from `bbf376e` to `18b19ba`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases )
- [Commits](bbf376e2b9...18b19ba1cb
)
---
updated-dependencies:
- dependency-name: external/ebpf-verifier
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix build break
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2023-03-06 22:01:50 +00:00
dependabot[bot]
223a1d1254
Bump external/Catch2 from `9ff3cde` to `69f35a5` ( #2161 )
...
Bumps [external/Catch2](https://github.com/catchorg/Catch2 ) from `9ff3cde` to `69f35a5`.
- [Release notes](https://github.com/catchorg/Catch2/releases )
- [Commits](9ff3cde87b...69f35a5ac8
)
---
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-06 15:56:17 +00:00
Alan Jowett
37c4b8d85a
Fix low-memory failure in libbpf_load_stress ( #2148 )
...
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-02-28 22:48:26 +00:00
Dave Thaler
57275f871a
Set github workflow egress-policy to block ( #2143 )
...
See
https://github.com/step-security/harden-runner#restrict-egress-traffic-to-allowed-endpoints
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-02-28 05:40:09 +00:00
Anurag Saxena
30f96a64aa
Add netebpfext user mode tests ( #2124 )
...
* fix
* add more tests, address cr comments
* fix cicd
* fix cicd
* fix analyze build
* switch to read / write lock
* fix fuzzer
* add concurrent test
* fix
* cr comments
* add sock_addr concurrency tests
* add tests
* add tests
* fix, cleanup
* cr comments
* bugfix
2023-02-28 05:30:38 +00:00
dependabot[bot]
87a88593a4
Bump github/codeql-action from 2.2.4 to 2.2.5 ( #2137 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.2.4 to 2.2.5.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](17573ee1cc...32dc499307
)
---
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-02-26 01:08:29 +00:00
dependabot[bot]
e3641c3b99
Bump step-security/harden-runner from 2.1.0 to 2.2.0 ( #2138 )
...
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/step-security/harden-runner/releases )
- [Commits](18bf8ad2ca...c8454efe5d
)
---
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-02-26 01:08:14 +00:00
dependabot[bot]
42480739a3
Bump actions/cache from 3.2.5 to 3.2.6 ( #2139 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](6998d139dd...69d9d449ac
)
---
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-02-26 01:07:52 +00:00
dependabot[bot]
88fbdaa624
Bump external/ebpf-verifier from `2bab2f1` to `bbf376e` ( #2141 )
...
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier ) from `2bab2f1` to `bbf376e`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases )
- [Commits](2bab2f17f3...bbf376e2b9
)
---
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-02-26 01:07:34 +00:00
dependabot[bot]
30dda534ca
Bump external/Catch2 from `e8ba329` to `9ff3cde` ( #2140 )
...
Bumps [external/Catch2](https://github.com/catchorg/Catch2 ) from `e8ba329` to `9ff3cde`.
- [Release notes](https://github.com/catchorg/Catch2/releases )
- [Commits](e8ba329b6c...9ff3cde87b
)
---
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-02-26 01:07:10 +00:00
Anurag Saxena
f87854dde8
Zip build artifacts before uploading ( #2129 )
...
* fix
* fix path
* Use PS commands
* fix
* fix ossar yaml
* for testing, revert later
* Revert "for testing, revert later"
This reverts commit 5ef51d4249
.
* cleanup
* fix
2023-02-24 18:19:53 +00:00
Michael Friesen
179ec1b429
_initialize_ebpf_object_native: only clean up locally-created objects ( #2125 )
2023-02-23 03:10:34 +00:00
Dhiren Vispute
bebb9a14cd
Export new sock_addr specific helper function (windows only) ( #2091 )
...
* Export new sock_addr specific helper function (windows only)
* Revert PR 1827, export new sock_addr specific helper function (windows only)
This reverts commit 80bc1cb737
.
* add step re. adding standard user credentials as well
* incorporate PR feedback
* documentation fix from PR feedback
2023-02-22 20:43:23 +00:00
Dave Thaler
cc9ba1633e
Skip scorecard steps in merge queue ( #2120 )
...
The scorecard step is not currently supported in the merge queue itself as
documented in the github action (see #2118 ). So make the scorecards workflow
run and simply report success so that CI/CD runs in the merge queue
don't fail as a result.
Fixes #2118
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-02-22 17:30:16 +00:00
Alan Jowett
5d40dcb0cf
Protect object lists in ebpfapi with mutex ( #2103 )
...
* Protect object lists in ebpfapi with mutex
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix the concurrency code analysis
Signed-off-by: Alan Jowett <alanjo@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>
* PR feedback
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
* Fix build
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2023-02-22 01:35:13 +00:00
Gianni Trevisiol
5f4a933f43
Complement artifacts in msi testing feature & PS deploy script's input. ( #2088 )
...
* Add testing artifacts, doc tweaks
* doc mods
* Add missing artifacts in deployment script.
* wip
* doc update
* Update docs/InstallEbpf.md
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
---------
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-22 01:34:44 +00:00
Shankar Seal
8e3b180d98
Handle re-auth case. ( #2067 )
...
* Handle re-auth case.
* Fix bug.
* check for previous local redirection.
* PR Feedback.
---------
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
2023-02-22 01:34:21 +00:00
Gianni Trevisiol
83c1b38f63
Fix regression on msbuild Release builds. ( #2094 )
...
* fix configuration issue on CustomBuild
* wip
* wip
* wip
* test
* test
* test
* revision
* wip
* comments
* Update comment in tests/sample/sample.vcxproj
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-22 01:33:58 +00:00
dependabot[bot]
b43f208dfe
Bump external/ebpf-verifier from `5dd6ab8` to `2bab2f1` ( #2105 )
...
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier ) from `5dd6ab8` to `2bab2f1`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases )
- [Commits](5dd6ab86e8...2bab2f17f3
)
---
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>
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
2023-02-21 17:29:16 +00:00
Dave Thaler
8bec5efc6b
Remove autoupdate workflow ( #2117 )
...
Obsoleted by github merge queue feature.
Fixes #1769
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-02-21 17:28:29 +00:00
Anurag Saxena
3d92031a29
Query and delete connection context atomically ( #2060 )
...
* fix
* cr comments
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-21 16:06:12 +00:00
dependabot[bot]
bd6fb80331
Bump external/Catch2 from `4aa8829` to `e8ba329` ( #2106 )
...
Bumps [external/Catch2](https://github.com/catchorg/Catch2 ) from `4aa8829` to `e8ba329`.
- [Release notes](https://github.com/catchorg/Catch2/releases )
- [Commits](4aa88299af...e8ba329b6c
)
---
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>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
2023-02-21 04:30:38 +00:00
dependabot[bot]
beded83cd0
Bump external/ubpf from `40c047c` to `0262957` ( #2107 )
...
Bumps [external/ubpf](https://github.com/iovisor/ubpf ) from `40c047c` to `0262957`.
- [Release notes](https://github.com/iovisor/ubpf/releases )
- [Commits](40c047c5ad...02629575f7
)
---
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>
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
2023-02-21 04:30:30 +00:00
Dhiren Vispute
dc84f59733
Delete StandardUser if found, before creating it ( #2113 )
2023-02-21 04:30:11 +00:00
Dave Thaler
9e61539e8d
Enable scorecards to run in merge queue ( #2115 )
...
* Enable scorecards to run in merge queue
More of issue #2076
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix issue #2116
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-02-21 03:55:14 +00:00
Dave Thaler
3cb29a6d10
Add merge_queue support ( #2110 )
...
Required to address issue #2076
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2023-02-19 23:40:38 -08:00
Delaram Amiri
f873e2a456
SAL annotation ( #2098 )
...
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-20 03:08:03 +00:00
Anurag Saxena
2f1c78e712
Fix native module unit tests for low memory simulation scenario ( #2084 )
...
* fix tests
* cr comments
* fix
* Revert "fix"
This reverts commit 25206c5ff7
.
* Revert "cr comments"
This reverts commit 4b91cea38e
.
* fix
2023-02-19 16:57:12 +00:00
dependabot[bot]
8f64a0ca20
Bump windows/nanoserver in /images ( #2108 )
...
Bumps windows/nanoserver from 10.0.20348.1487 to 10.0.20348.1547.
---
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-02-18 22:01:20 -08:00
Anurag Saxena
f33785e32e
fix ( #2104 )
2023-02-17 17:38:28 -08:00
Alan Jowett
8307c250e9
Feedback from PR #2062 ( #2096 )
...
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2023-02-17 21:16:11 +00:00
Michael Friesen
47639bbbf3
fix local_service_name leak in ebpf_native_load ( #2102 )
...
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2023-02-17 19:40:42 +00:00
Michael Friesen
2d5d3175b5
XDP: complete TX clones upon injection failure ( #2013 )
...
* complete TX clones upon inject failure
* satisfy static analyzer
* fix dispatch input parameter, and ignore output
---------
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2023-02-17 18:59:13 +00:00
Delaram Amiri
4283733f25
Replace Windows style type names with types names that match the coding guidelines ( #2019 )
...
* clean up code
* fixing the build
* Update libs/ebpfnetsh/elf.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* fixing the build
* fixing the build
* fixing the build
* fixing the build
* fixing the build
* fixing the build
* revert HRESULT
* change BOOL type
* change BOOL type
* change BOOL type
* change BOOL type
* change BOOL type
* change BOOL type
* revert LPSERVICE_MAIN_FUNCTION
* revert SERVICE_MAIN_FUNCTION*
* SAL annotation for svcmain.cpp
* revert some SAL annotation
* remove some extra spaces
* fix tests
* change to bool type
* Update map_dll.c
* fix according to dll_main prototype
* fix BOOL
* fix according to dll_main prototype
* BOOl type
* BOOl type
* modify doc for self host runner setup
* modify doc for self host runner setup
* update tests with bool
* Update tests/unit/wer_report_test_wrapper.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Update libs/platform/user/ebpf_platform_user.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Update libs/ebpfnetsh/programs.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* change _Null_terminated_ to _Field_z_
* address PR comment
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
Co-authored-by: Gianni Trevisiol <gtrevi@users.noreply.github.com>
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2023-02-16 11:56:32 -08:00
Anurag Saxena
57d5425f82
Add multiple pool tags for ebpfcore ( #1909 )
...
* add pool tags
* CR comments
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-16 18:14:58 +00:00
Alan Jowett
d88a6abd43
Add option to invoke eBPF programs in batch mode ( #2062 )
...
* Add option to invoke eBPF programs in batch mode
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix use of uninitialized memory
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* PR feedback and additional testing
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix code analysis failure
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Cleanup and additional test
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2023-02-16 15:37:49 +00:00
Gianni Trevisiol
3c8ff81b4f
Update choco's script hash, specify algorythm.
2023-02-15 23:54:17 +00:00
Gurnoor Singh Virdi
c82c8a3ec3
fixed tcphdr bitfield type ( #2044 ) ( #2079 )
...
Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2023-02-15 03:04:54 +00:00
Alan Jowett
669418dc85
Fix memory leak in ebpf_ring_buffer_map_subscribe ( #2081 )
...
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Anurag Saxena <43585259+saxena-anurag@users.noreply.github.com>
2023-02-15 02:07:54 +00:00