diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-04-18 10:33:03 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-04-18 10:33:03 +0200 |
| commit | ea36da8271c508fe4c8bcc80af20ec81c812b95a (patch) | |
| tree | b1593c0e5c734593e4b55d0be5f597441f94e075 /sys/openbsd | |
| parent | 435c6d538899a51dde5bbc2472cd4e7ecb2ef270 (diff) | |
sys/linux: use PROT_EXEC for the data section mmap
Turns out the mmap protection get out of sync
between executor and C reproducers.
C reproducers missed PROT_EXEC.
Add PROT_EXEC for linux, freebsd and akaros.
Diffstat (limited to 'sys/openbsd')
| -rw-r--r-- | sys/openbsd/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/openbsd/init.go b/sys/openbsd/init.go index e27ba8d60..9f9a59ebf 100644 --- a/sys/openbsd/init.go +++ b/sys/openbsd/init.go @@ -19,7 +19,7 @@ func InitTarget(target *prog.Target) { S_IFCHR: target.GetConst("S_IFCHR"), } - target.MakeMmap = targets.MakePosixMmap(target) + target.MakeMmap = targets.MakePosixMmap(target, false) target.Neutralize = arch.neutralize target.AnnotateCall = arch.annotateCall } |
