From e1768e9c12f6025bdcfe8a957808608d499692b8 Mon Sep 17 00:00:00 2001 From: Michael Tüxen Date: Fri, 31 Dec 2021 19:18:08 +0100 Subject: executor: bump on FreeBSD the maximum number of tun devices to 256 (#2956) syz-execprog now uses twice the number of CPU cores as the number of processes. Each process might use a tun device. So bump the maximum number of tun devices to the maximum of 256, which allows syz-execprog to run with default settings on systems with up to 128 cores. --- pkg/csource/generated.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/csource/generated.go') diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 519b2fdd5..7c30d01e6 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1668,6 +1668,9 @@ static int tunfd = -1; #if GOOS_netbsd #define MAX_TUN 64 +#elif GOOS_freebsd +#define MAX_TUN 256 + #else #define MAX_TUN 4 #endif -- cgit mrf-deployment