aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/sharedmem_memfd.go
Commit message (Collapse)AuthorAgeFilesLines
* all: delete dead codeTaras Madan2025-02-101-29/+0
| | | | | go install golang.org/x/tools/cmd/deadcode@latest deadcode -test ./...
* all: go fix everythingDmitry Vyukov2024-04-261-1/+0
|
* all: use special placeholder for errorsTaras Madan2023-07-241-1/+1
|
* osutil: create memfd with the MFD_CLOEXEC flagAndrei Vagin2022-05-271-1/+1
| | | | | | | | Go-runtime opens all files with CLOEXEC by default. exec.Cmd doesn't close file descriptors in a child process and so memfd without CLOEXEC can leak to an executor process where its content can be corrupted by one of test system calls.
* pkg/osutil: use memfd_create on LinuxAleksandr Nogikh2021-12-031-0/+30
Mmapping plain files as shared memory leads to extra burden on the system being fuzzed, because the OS will periodically sync that data to the disk. On Linux, use memfd_create to obtain a file handle for the shared memory region. Experiments have demonstrated than it leads to 5-10% increase in the fuzzing performance.