google / syzkaller

syzkaller is an unsupervised coverage-guided kernel fuzzer
Apache License 2.0
5.39k stars 1.23k forks source link

docs/windows: update instructions #3061

Open zyscoder opened 2 years ago

zyscoder commented 2 years ago

I'm a newer of syzkaller and tried to build the executor of syzkaller for windows. The docs for Windows part seems too old to follow and build the executor for windows. Specifically, the executor\executor_windows.cc has not been existed in the source files.

make fuzzer execprog stress TARGETOS=windows
REV=git rev-parse HEAD
cl executor\executor_windows.cc /EHsc -o bin\windows_amd64\syz-executor.exe \
    -DGIT_REVISION=\"$REV\" \
    kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib \
    shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
    winmm.lib rpcrt4.lib Crypt32.lib imm32.lib Urlmon.lib Oleaut32.lib \
    Winscard.lib Opengl32.lib Mpr.lib Ws2_32.lib Bcrypt.lib Ncrypt.lib \
    Synchronization.lib Shell32.lib Rpcns4.lib Mswsock.lib  Mincore.lib \
    Msimg32.lib RpcRT4.lib Rpcrt4.lib lz32.lib
dvyukov commented 2 years ago

I don't think anybody from core developers has Windows access now. Re source files check out how other OSes are build, I think it's just executor\executor.cc now. If you figure out what command works for Windows, please send a pull request to update docs. Thanks