From f861ecca8b4dbdc9f71c3271d1eb6dbc0f71b5c6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 28 Mar 2024 18:11:09 +0100 Subject: syz-fuzzer: use of monotonic time for latency measurement time.Now/Since may reject to use monotonic time if the fuzzer messes with system time badly enough. Enforce use of monotonic time. --- tools/syz-linter/linter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go index 76168c7c9..542d040e6 100644 --- a/tools/syz-linter/linter.go +++ b/tools/syz-linter/linter.go @@ -139,7 +139,7 @@ var ( noPeriodComment = regexp.MustCompile(`^// [A-Z][a-z].+[a-z]$`) lowerCaseComment = regexp.MustCompile(`^// [a-z]+ `) onelineExceptions = regexp.MustCompile(`// want \"|http:|https:`) - specialComment = regexp.MustCompile(`//go:generate|//go:build|//go:embed|// nolint:`) + specialComment = regexp.MustCompile(`//go:generate|//go:build|//go:embed|//go:linkname|// nolint:`) ) // checkStringLenCompare checks for string len comparisons with 0. -- cgit mrf-deployment