From 0740de696b19a870c7208bd97f3194988281c282 Mon Sep 17 00:00:00 2001 From: Joey Jiao Date: Tue, 1 Jun 2021 09:08:19 +0800 Subject: all: support exclude globs in descriptor --- sys/linux/sys.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/linux') diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index ab39e6ded..5a8732085 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -78,7 +78,8 @@ type signalnoptr intptr[0:65] syz_execute_func(text ptr[in, text[target]]) -openat$sysfs(fd const[AT_FDCWD], dir ptr[in, glob["/sys/**/*"]], flags flags[open_flags], mode flags[open_mode]) fd +# Exclude /sys/power/state as reported in https://lkml.org/lkml/2021/5/27/653 +openat$sysfs(fd const[AT_FDCWD], dir ptr[in, glob["/sys/**/*:-/sys/power/state"]], flags flags[open_flags], mode flags[open_mode]) fd open(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd # Just so that we have something that creates fd_dir resources. -- cgit mrf-deployment