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

780 Коммитов

Автор SHA1 Сообщение Дата
Anurag Saxena 7e79b67fa8
fix test 2022-07-24 16:02:20 -07:00
saxena-anurag 6d1852fd28
Merge branch 'main' into ebpf_native_negative_tests 2022-07-24 15:40:36 -07:00
Anurag Saxena ead5d04464
add tests 2022-07-24 15:39:23 -07:00
Dave Thaler 26506f9a67
Clean up ebpf_program.c (#1302)
* Clean up ebpf_program.c

Fixes #339

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

* Fix analysis warning

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-07-18 18:07:53 -06:00
Dave Thaler 067d5d7e7f
Clean up Verifier.cpp (#1296)
* Try some cleanup of Verifier.cpp

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

* Analysis fixes

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

* Fix error messages

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

* Fix test

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

Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
2022-07-18 12:39:50 -07:00
dependabot[bot] d7c9edbf00
Bump github/codeql-action from 2.1.15 to 2.1.16 (#1301)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.15 to 2.1.16.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](3f62b754e2...3e7e3b32d0)

---
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>
Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-07-17 21:50:37 -07:00
dependabot[bot] f3e359462b
Bump external/ebpf-verifier from `d259d31` to `8f0bb3f` (#1297)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `d259d31` to `8f0bb3f`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](d259d31c43...8f0bb3fd2f)

---
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>
2022-07-17 19:02:28 -07:00
dependabot[bot] 7119a5a499
Bump actions/cache from 3.0.4 to 3.0.5 (#1299)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](c3f1317a9e...0865c47f36)

---
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>
Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
2022-07-17 13:52:27 -07:00
dependabot[bot] aa618f8c3f
Bump external/Catch2 from `5f9109a` to `1bd2338` (#1298)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `5f9109a` to `1bd2338`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](5f9109a8dc...1bd233866c)

---
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>
2022-07-17 12:36:53 -07:00
Dave Thaler 967eb4380a
Explain where to find the wprp file (#1292)
Addresses question raised in #1291.

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

Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
2022-07-15 14:44:08 -07:00
saxena-anurag 02f4bf016f
Clean up hard coded program type in EC (#1294)
* fix

* update documentation

* add bpf_obj_get_info_by_fd tests for cgroup_sock_addr

* fix

* cr comment
2022-07-15 13:48:45 -07:00
Dave Thaler c37f48469d
Move TestLog.log to the TEMP directory (#1281)
* Move TestLog.log to the TEMP directory

Fixes #1275

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

* Update VM log file path

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-07-15 12:50:14 -07:00
Shankar Seal a25ede7aaf
Fix ring buffer test subscriber logic. (#1286)
* Fix ring buffer test subscriber logic.

* PR feedback etc.

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-07-14 10:32:38 -07:00
Dave Thaler 70c43cfeba
Add support for ifindex and ifalias in bpftool attach command on Windows (#1280)
Fixes #1246

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-07-13 15:01:04 -07:00
saxena-anurag 4ad167dbbd
add --type option to bpf2c tool (#1283)
* add --type option to bpf2c tool

* fix test

* fix failing test, CR comments

* add negative test

* negative test
2022-07-13 14:24:32 -07:00
Dave Thaler bc1c96c3cd
Update install instructions to allow using released MSI (#1274)
* Update install instructions to allow using released MSI

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

* Fix nested list

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-07-11 11:07:01 -07:00
dependabot[bot] 8f66ac158d
Bump external/FindWDK from `43fd504` to `0492964` (#1277)
Bumps [external/FindWDK](https://github.com/SergiusTheBest/FindWDK) from `43fd504` to `0492964`.
- [Release notes](https://github.com/SergiusTheBest/FindWDK/releases)
- [Commits](43fd504e1d...0492964004)

---
updated-dependencies:
- dependency-name: external/FindWDK
  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: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
2022-07-11 09:22:59 -06:00
dependabot[bot] 78157a1dda
Bump external/Catch2 from `5a1ef7e` to `5f9109a` (#1278)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `5a1ef7e` to `5f9109a`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](5a1ef7e4a6...5f9109a8dc)

---
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>
2022-07-10 19:16:57 -07:00
Shankar Seal be30c49a40
Tracing for troubleshooting. (#1270)
* Tracing for troubleshooting.

* fixes.
2022-07-08 16:42:58 -07:00
Dave Thaler 85b8fd974b
MSI should install drivers and services (#1271)
* Update release data

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

* Add NSIS support to generate a setup exe

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

* More of the implementation

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

* Add net start/stop actions to the msi

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

* Cleanup

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

* First step in conversion to common install script

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

* Convert to common setup script

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

* Snapshot before cleanup

this version does install the netsh helper
it does not delete the files from system32 on uninstall

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

* Cleanup

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

* More cleanup

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

* Fix build

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

* Fix driver test

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

* Drop verifier fuzzer test to 15 mins

Same as the bpf2c fuzzer. This removes 15 mins from the long pole
for CI/CD.

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-07-08 12:58:56 -07:00
dependabot[bot] 37ea2742f3
Bump github/codeql-action from 2.1.14 to 2.1.15 (#1266)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.14 to 2.1.15.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](41a4ada31b...3f62b754e2)

---
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>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-07-08 09:15:07 -06:00
dependabot[bot] a19bb1f75f
Bump external/ebpf-verifier from `ade89f7` to `d259d31` (#1269)
Bumps [external/ebpf-verifier](https://github.com/vbpf/ebpf-verifier) from `ade89f7` to `d259d31`.
- [Release notes](https://github.com/vbpf/ebpf-verifier/releases)
- [Commits](ade89f7a69...d259d31c43)

---
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: Alan Jowett <alanjo@microsoft.com>
2022-07-07 09:14:52 -07:00
Shankar Seal 23b1b1030c
Fix store read logic. (#1267)
* Fix store read logic.

* PR feedback.

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-07-05 16:54:22 -07:00
dependabot[bot] 004cb3f349
Bump external/Catch2 from `bea58bf` to `5a1ef7e` (#1263)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `bea58bf` to `5a1ef7e`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](bea58bf8bb...5a1ef7e4a6)

---
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: Alan Jowett <alanjo@microsoft.com>
2022-07-05 14:42:21 -06:00
dependabot[bot] ad211cc9ba
Bump step-security/harden-runner from 1.4.3 to 1.4.4 (#1265)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](248ae51c2e...74b568e859)

---
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>
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2022-07-05 13:50:12 -06:00
Shankar Seal 85c9a45661
Fix test automation (#1268)
* Fix to test automation scripts.

* enable wer_report.

Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-07-05 12:45:11 -06:00
Dave Thaler 12cee68d10
Upgrade verifier to latest commit (#1262)
* Upgrade verifier to latest commit

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

* Disable warning hit in elfio.hpp

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

Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2022-07-05 10:02:12 -07:00
saxena-anurag 6c37e30cb7
Remove export_program_info dependencies (#1261)
* remove project dependencies

* fix build break

* fix dependencies
2022-07-05 10:09:19 -06:00
dependabot[bot] 671b508be5
Bump external/Catch2 from `165647a` to `bea58bf` (#1252)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `165647a` to `bea58bf`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](165647abbc...bea58bf8bb)

---
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>
2022-07-01 09:23:19 -07:00
dependabot[bot] 7513af9038
Bump dawidd6/action-download-artifact from 2.21.0 to 2.21.1 (#1255)
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 2.21.0 to 2.21.1.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](b7337e51c4...6765a42d86)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  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>
Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-06-30 23:12:06 -07:00
saxena-anurag 8b96a52b43
fix (#1257)
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-06-30 18:37:33 -07:00
Shankar Seal b2c5bef8b1
Fix automation script (#1260)
The last PR #1258  was incomplete. I forgot to pass the working directory path to the script block.

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-06-30 17:37:33 -07:00
saxena-anurag 1160f7914e
Registry changes for program and section data. (#1192)
* fix

* backup

* fix backup

* msbuild compiling

* fix release build

* fixes

* cmake build fix

* fix cmake build

* fix analyse build

* fix

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

* fix expected output

* add pre step for tests

* add pre step for tests

* add -s option, revert this later

* Revert "add -s option, revert this later"

This reverts commit 1f42d100e4.

* code cleanup

Signed-off-by: Anurag Saxena <anusa@microsoft.com>

* rename driver_registry_helper.h

* delete bpf_structs.h

* fix

* hardcode HKLM

* code cleanup

* fix

* backup

* fix backup

* msbuild compiling

* fix release build

* fixes

* cmake build fix

* fix cmake build

* fix analyse build

* fix

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

* add pre step for tests

* add pre step for tests

* add -s option, revert this later

* Revert "add -s option, revert this later"

This reverts commit 1f42d100e4.

* code cleanup

Signed-off-by: Anurag Saxena <anusa@microsoft.com>

* rename driver_registry_helper.h

* delete bpf_structs.h

* fix

* hardcode HKLM

* code cleanup

* fix build break

* fix build break, enable warning

* fix bad merge

* cleanup

* fix

* fix tests

* add tests, make ebpf_store_helper platform agnostic

* fixes, cleanup, common code for store APIs

* fix cmake build, driver tests

* cleanup

* code cleanup

* cr comments

* code cleanup

* cleanup

* bugfix

* Apply suggestions from code review

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

* cr comments

* fix build break

* move UM read store APIs to a different file

* cr comments

* cr comments

* cr comments

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-06-30 16:53:03 -07:00
Shankar Seal 26624388ea
Add tracelog to netebpfext. (#1247)
* Add tracelog to netebpfext.

* Apply suggestions from code review

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

* PR feedback.

* Fix.

* PR feedback.

Co-authored-by: Dave Thaler <dthaler@microsoft.com>
2022-06-30 15:08:02 -07:00
Shankar Seal ea49b0ba92
Fix test automation. (#1258)
* Fix test automation.

* fix.
2022-06-29 16:28:04 -07:00
Dave Thaler 5bb8238962
Validate IOCTL header length (#1256) 2022-06-29 08:56:47 -07:00
dependabot[bot] a1b36d5c4f
Bump github/codeql-action from 2.1.12 to 2.1.14 (#1254)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.12 to 2.1.14.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](27ea8f8fe5...41a4ada31b)

---
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>
Co-authored-by: saxena-anurag <43585259+saxena-anurag@users.noreply.github.com>
Co-authored-by: Shankar Seal <74580197+shankarseal@users.noreply.github.com>
2022-06-28 19:08:55 -07:00
Shankar Seal 025639ba33
Use EX_RUNDOWN_REF for netebpfext rundown. (#1251)
* fix

* fix

* fix.

* fix.

* fix.
2022-06-28 17:52:54 -07:00
Dave Thaler 9ec3aa0a1a
Fix netsh help text (#1248)
The parameters had interface but it was missing from the Usage part

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-06-27 09:21:40 -07:00
Song Jiang f923c07df1
Add /t option for install-ebpf.bat (#1245) 2022-06-23 11:11:51 -07:00
Shankar Seal 21d00cb48e
Fix reusable test workflow to upload driver test logs in case of failure. (#1242)
* fix

* always and file_exists.
2022-06-23 09:05:55 -07:00
Dave Thaler 6dccca8642
Update to latest verifier (#1243)
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-06-22 16:58:45 -07:00
Alan Jowett 1782724071
Build ELF parse at compile time using EverParse (#1219)
* Build ELF parse at compile time using EverParse

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>

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2022-06-22 16:24:02 -06:00
Dave Thaler 1fea5bb8ca
Update to latest verifier code (#1235)
* Update to latest verifier code

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

* Suppress elfio warning

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
2022-06-21 16:32:19 -07:00
Shankar Seal cb5184d8d7
fix (#1239) 2022-06-21 14:39:24 -07:00
Dave Thaler 3d393bf43c
Bump nuget version to 0.2.0 (#1238)
Signed-off-by: Dave Thaler <dthaler@microsoft.com>

Co-authored-by: Alan Jowett <alanjo@microsoft.com>
2022-06-21 11:09:31 -07:00
Alan Jowett b095630b55
Check if the mode is supported prior to permitting an IOCTL (#1233)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2022-06-20 17:13:47 -06:00
Shankar Seal 94ed2f8333
fix test failure incorrectly treated as success (#1213)
* fix.

* fixes

* fix.

* fix.

* fix.

* fix.

* fix.

* fix.

* fix.

* fix.

* fix
2022-06-20 15:22:36 -07:00
Alan Jowett 09cd8f708f
Increase build timeout to 90 minutes (#1232)
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
2022-06-20 14:45:28 -06:00
dependabot[bot] cf35b09b1a
Bump external/Catch2 from `d32fca4` to `165647a` (#1230)
Bumps [external/Catch2](https://github.com/catchorg/Catch2) from `d32fca4` to `165647a`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](d32fca4a49...165647abbc)

---
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>
2022-06-18 14:17:41 -07:00