-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update ubpf Signed-off-by: Alan Jowett <[email protected]> * Build ubpf_fuzzer Signed-off-by: Alan Jowett <[email protected]> * Fix dependenency Signed-off-by: Alan Jowett <[email protected]> * Add onefuzz config Signed-off-by: Alan Jowett <[email protected]> * Pick latest ubpf Signed-off-by: Alan Jowett <[email protected]> * Set correct flags for fuzzer Signed-off-by: Alan Jowett <[email protected]> * Pickup new ubpf file Signed-off-by: Alan Jowett <[email protected]> * Update ubpf Signed-off-by: Alan Jowett <[email protected]> * Build ubpf_fuzzer Signed-off-by: Alan Jowett <[email protected]> * Fix dependenency Signed-off-by: Alan Jowett <[email protected]> * Add onefuzz config Signed-off-by: Alan Jowett <[email protected]> * Pick latest ubpf Signed-off-by: Alan Jowett <[email protected]> * Set correct flags for fuzzer Signed-off-by: Alan Jowett <[email protected]> * Pickup new ubpf file Signed-off-by: Alan Jowett <[email protected]> * Pickup latest ubpf Signed-off-by: Alan Jowett <[email protected]> --------- Signed-off-by: Alan Jowett <[email protected]> Co-authored-by: Alan Jowett <[email protected]>
- Loading branch information
1 parent
a7e3d0a
commit f3d92f5
Showing
9 changed files
with
1,510 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,6 +387,83 @@ | |
} | ||
} | ||
} | ||
}, | ||
{ | ||
"JobNotificationEmail": "[email protected]", | ||
"Skip": false, | ||
"TargetBuildBranches": [ | ||
"main" | ||
], | ||
"Fuzzer": { | ||
"$type": "libfuzzer", | ||
"FuzzingHarnessExecutableName": "ubpf_fuzzer.exe", | ||
"CheckFuzzerHelp": true, | ||
"FuzzingEntrypoint": "LLVMFuzzerTestOneInput", | ||
"CollectCrashDumps": true, | ||
"FuzzingTargetBinaries": [ | ||
"ebpapi.sys" | ||
] | ||
}, | ||
"MinAvailableMemoryMB": null, | ||
"FuzzerTimeoutInSeconds": 120, | ||
"RebootAfterSetup": null, | ||
"Tags": {}, | ||
"TargetEnv": { | ||
"ASAN_OPTIONS": "allocator_may_return_null=1", | ||
"UBPF_FUZZER_CONSTRAINT_CHECK": "1" | ||
}, | ||
"OneFuzzJobs": [ | ||
{ | ||
"ProjectName": "eBPF for Windows", | ||
"TargetName": "ubpf", | ||
"SeedCorpusContainer": "ubpf-corpus", | ||
"Tags": {}, | ||
"TargetEnv": { | ||
"ASAN_OPTIONS": "allocator_may_return_null=1" | ||
} | ||
} | ||
], | ||
"JobDependencies": [ | ||
"ubpf_fuzzer.exe", | ||
"ubpf_fuzzer.pdb", | ||
"clang_rt.asan_dbg_dynamic-x86_64.dll", | ||
"clang_rt.asan_dynamic-x86_64.dll", | ||
"msvcp140d.dll", | ||
"msvcp140d_atomic_wait.dll", | ||
"msvcp140d_codecvt_ids.dll", | ||
"msvcp140_1d.dll", | ||
"msvcp140_2d.dll", | ||
"vccorlib140d.dll", | ||
"vcruntime140d.dll", | ||
"vcruntime140_1d.dll", | ||
"vcruntime140_threadsd.dll", | ||
"ucrtbased.dll" | ||
], | ||
"CodeCoverage": { | ||
"Org": "microsoft", | ||
"Project": "OS", | ||
"PipelineId": "79576" | ||
}, | ||
"AdoTemplate": { | ||
"Org": "mscodehub", | ||
"Project": "eBPFForWindows", | ||
"AssignedTo": "[email protected]", | ||
"AreaPath": "eBPFForWindows", | ||
"IterationPath": "eBPFForWindows", | ||
"Type": "Bug", | ||
"BaseUrl": "https://dev.azure.com/mscodehub", | ||
"Comment": "<a href='{{ input_url }}'>This input</a> caused the <a href='{{ target_url }}'>fuzz target</a> {{ report.executable }} to crash. The faulting input SHA256 hash is {{ report.input_sha256 }} <br>", | ||
"OnDuplicate": { | ||
"Increment": [ | ||
"" | ||
], | ||
"Comment": "<a href='{{ input_url }}'>This input</a> caused the <a href='{{ target_url }}'>fuzz target</a> {{ report.executable }} to crash. The faulting input SHA256 hash is {{ report.input_sha256 }} <br>", | ||
"SetState": { | ||
"Resolved": "Active", | ||
"Closed": "Active" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule ubpf
updated
35 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
165 changes: 165 additions & 0 deletions
165
scripts/ubpf_fuzzer_post_build/ubpf_fuzzer_post_build.vcxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) eBPF for Windows contributors | ||
SPDX-License-Identifier: MIT | ||
--> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="FuzzerDebug|x64"> | ||
<Configuration>FuzzerDebug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="NativeOnlyDebug|x64"> | ||
<Configuration>NativeOnlyDebug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="NativeOnlyRelease|x64"> | ||
<Configuration>NativeOnlyRelease</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>17.0</VCProjectVersion> | ||
<Keyword>Win32Proj</Keyword> | ||
<ProjectGuid>{3d563e44-b7d0-499c-a15c-c1c1b9a73b6f}</ProjectGuid> | ||
<RootNamespace>ubpffuzzerpostbuild</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>WindowsUserModeDriver10.0</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>WindowsUserModeDriver10.0</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='FuzzerDebug|x64'"> | ||
<PlatformToolset>WindowsUserModeDriver10.0</PlatformToolset> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='NativeOnlyDebug|x64'"> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
<PlatformToolset>WindowsUserModeDriver10.0</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='NativeOnlyRelease|x64'"> | ||
<ConfigurationType>Utility</ConfigurationType> | ||
<PlatformToolset>WindowsUserModeDriver10.0</PlatformToolset> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
<PostBuildEvent> | ||
<Command>copy $(SolutionDir)external\ubpf\build_fuzzer\bin\$(Configuration)\* $(OutDir)</Command> | ||
</PostBuildEvent> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
<PostBuildEvent> | ||
<Command>copy $(SolutionDir)external\ubpf\build_fuzzer\bin\$(Configuration)\* $(OutDir)</Command> | ||
</PostBuildEvent> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='FuzzerDebug|x64'"> | ||
<PostBuildEvent> | ||
<Command>copy $(SolutionDir)external\ubpf\build_fuzzer\bin\RelWithDebInfo\* $(OutDir)</Command> | ||
</PostBuildEvent> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
21 changes: 21 additions & 0 deletions
21
scripts/ubpf_fuzzer_post_build/ubpf_fuzzer_post_build.vcxproj.filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) eBPF for Windows contributors | ||
SPDX-License-Identifier: MIT | ||
--> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="Source Files"> | ||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
</Filter> | ||
<Filter Include="Header Files"> | ||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> | ||
</Filter> | ||
<Filter Include="Resource Files"> | ||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> | ||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> | ||
</Filter> | ||
</ItemGroup> | ||
</Project> |