From a13ba2b663b7d2761d9ff6cf1165fa4f2f64aa2c Mon Sep 17 00:00:00 2001 From: Ethan Graham Date: Tue, 16 Sep 2025 09:17:04 +0000 Subject: pkg/fuzzer: use a smaller number of recommended calls for KFuzzTest Introduce a KFuzzTest mode for the fuzzer so that a smaller number of recommended calls can be used if we are fuzzing KFuzzTest targets. Signed-off-by: Ethan Graham --- prog/rand.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prog') diff --git a/prog/rand.go b/prog/rand.go index b06cc1a90..d54ef0dfe 100644 --- a/prog/rand.go +++ b/prog/rand.go @@ -21,6 +21,10 @@ const ( // "Recommended" max number of calls in programs. // If we receive longer programs from hub/corpus we discard them. MaxCalls = 40 + // "Recommended" number of calls in KFuzzTest mode. These targets test the behavior + // of internal kernel functions rather than system behavior, and for this reason + // it is more sensible to generate a smaller number of calls instead of long chains. + RecommendedCallsKFuzzTest = 5 ) type randGen struct { -- cgit mrf-deployment