From 757d26edba7d7de8c564a87a262a0b1321ddf804 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 14 Jun 2023 14:58:25 +0200 Subject: all: support swap feature on Linux If the feature is supported on the device, allocate a 128MB swap file after VM boot and activate it. --- pkg/csource/common.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/csource/common.go') diff --git a/pkg/csource/common.go b/pkg/csource/common.go index 6f3920126..3b30d85f4 100644 --- a/pkg/csource/common.go +++ b/pkg/csource/common.go @@ -127,6 +127,7 @@ func commonDefines(p *prog.Prog, opts Options) map[string]bool { "SYZ_WIFI": opts.Wifi, "SYZ_802154": opts.IEEE802154, "SYZ_SYSCTL": opts.Sysctl, + "SYZ_SWAP": opts.Swap, "SYZ_EXECUTOR_USES_SHMEM": sysTarget.ExecutorUsesShmem, "SYZ_EXECUTOR_USES_FORK_SERVER": sysTarget.ExecutorUsesForkServer, } -- cgit mrf-deployment