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. --- executor/common_bsd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'executor') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 633eadccc..7c6ad8efd 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -131,6 +131,11 @@ static int tunfd = -1; // Increased number of tap and tun devices if image script is used #define MAX_TUN 64 +#elif GOOS_freebsd +// The maximum number of tun devices is limited by the way IP addresses +// are assigned. Based on this, the limit is 256. +#define MAX_TUN 256 + #else // Maximum number of tun devices in the default install. #define MAX_TUN 4 -- cgit mrf-deployment