From ea36da8271c508fe4c8bcc80af20ec81c812b95a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 18 Apr 2020 10:33:03 +0200 Subject: 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. --- sys/openbsd/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/openbsd/init.go') 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 } -- cgit mrf-deployment