From d7a01d53f700f7e15d3691fc593938d2cbac541e Mon Sep 17 00:00:00 2001 From: Albert van der Linde Date: Thu, 16 Jul 2020 07:04:53 +0000 Subject: sys/linux: add descriptions for raw character devices --- pkg/host/syscalls_linux.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/host/syscalls_linux.go') diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go index 18dc81d9e..7312fb8a7 100644 --- a/pkg/host/syscalls_linux.go +++ b/pkg/host/syscalls_linux.go @@ -235,6 +235,10 @@ func isSupportedSyzOpenDev(sandbox string, c *prog.Syscall) (bool, string) { if !ok { panic("first open arg is not a pointer to string const") } + if strings.Contains(fname, "/dev/raw/raw#") { + // For syz_open_dev$char_raw, these files don't exist initially. + return true, "" + } if !strings.Contains(fname, "#") { panic(fmt.Sprintf("%v does not contain # in the file name (should be openat)", c.Name)) } -- cgit mrf-deployment