Skip to content

forkserver not running properly #770

@Be33eD

Description

@Be33eD

Describe the bug

In ForkserverExecutorBuilder build(), when status & FS_OPT_ENABLED == FS_OPT_ENABLED, write_ctl will be executed. see https://github.com/AFLplusplus/LibAFL/blob/main/libafl/src/executors/forkserver.rs#L630

But in aflplusplus, it also needs to satisfy (send_status & FS_OPT_SHDMEM_FUZZ == FS_OPT_SHDMEM_FUZZ) || (send_status & FS_OPT_AUTODICT == FS_OPT_AUTODICT). see https://github.com/AFLplusplus/AFLplusplus/blob/stable/instrumentation/afl-compiler-rt.o.c#L1028.

This may cause run_target not to execute as expected.

Expected behavior

Maybe the same conditions as aflpp should be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions