* Remove JIT and interpreter code from NativeOnly builds
Fixes#2030Fixes#2488
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Try conditional project references
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Various test fixes
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Native-only fixes to deploy-ebpf.ps1
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Native-only support for setup-ebpf.ps1
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Native-only support for api_test.exe
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Add connect_redirect_tests to deploy-ebpf.ps1
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback from Anurag
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Add stress test for tail calls
* Added the code generated bindmonitor_mt_tailcall files
* Added the test case description to readme.md
* Update tests/stress/km/stress_tests_km.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Update tests/stress/km/stress_tests_km.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Addressed PR comments and Fixed merge conflicts with latest
* Fixed function name
* Regenerated the expected files, after the macro MAX TAIL CNT change done yesterday
* Update tests/stress/readme.md
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Removed clean_up tail call
* Add bind in loop
* updated the readme
* Addressed PR comments
* Changed LOG_VERBOSE to LOG_ERROR
* Updated readme and addressed PR comment
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Don't throw exceptions from ~_single_instance_hook
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix AV
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix build errors with Visual Studio 17.6.0
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* PR feedback
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Add object history tracking instrumentation
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix file_id type in history
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Code analysis failure
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* PR feedback
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix incorrect instrumentation
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Provide option to version info in generated .sys file
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>
* Add netsh command to enumerate processes using eBPF
Addresses part of issue #555
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix build/test issues
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix potential buffer overrun
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix output when running non-elevated
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Exclude [processes] test from CodeCoverage
OpenCodeCoverage uses STATUS_BREAKPOINT and doesn't work reliably
with code that uses TerminateThread(). For now we exclude this
test from code coverage runs.
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* wrapper for tests using smart pointer
* address PR comments
* address PR comments
* update connect edirect test
* update connect redirect test
* resolve conflict
* resolve conflict
* test with connect redirect
* test with connect redirect
* change connect redirect test
* address PR comment
* rebase the changes from main
* rebase the changes from main
* Update tests/connect_redirect/connect_redirect_tests.cpp
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* address PR comment
* modify the bpf object pointer
---------
Co-authored-by: Dave Thaler <dthaler@microsoft.com>
* Initial commit to get AddressSanitizer build
* Fix heap-use-after-free
* merge main contents
* Added client registration initialization and double heap free after use
* Fix build error
* Checked for bindcontext
* Only fail NMR registration
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Co-authored-by: Alan Jowett <alanjo@microsoft.com>
* Merge create and initialize
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* PR feedback and merge of previous commit
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Add compartment support to netsh ebpf add program
Fixes#2185
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Address PR feedback
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Check for crash dumps on workflow failure.
Fastfail the process on watchdog timeout.
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Remove intrin.h to prevent conflict with Windows SDK.
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Suppress failfast during unit testing
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
---------
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
tests that pass again.
2. Update Test-FaultInjection.ps1 to log what tests
are run in each iteration.
3. Avoid decoding symbols under a lock.
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
* Fix sanitizer build of fuzzer
Fixes#1817
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fixes
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* More fixes
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Disable some build steps for FuzzerDebug
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Update github workflows
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Update verifier to latest
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix execution_context_fuzzer build
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix bpf2c and samples
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix samples compilation
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* Fix custom program type sample
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
---------
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
* 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>
* 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>