syzkaller/sys
Stefano Duo 19b6584f71 executor/common_linux.h: add syz_fuse_handle_req()
At the moment syzkaller is able to respond to FUSE with a syntactically
correct response using the specific write$FUSE_*() syscalls, but most of
the times these responses are not related to the type of request that
was received.
With this pseudo-syscall we are able to provide the correct response
type while still allowing the fuzzer to fuzz its content. This is done
by requiring each type of response as an input parameter and then
choosing the correct one based on the request opcode.
Notice that the fuzzer is still free to mix write$FUSE_*() and
syz_fuse_handle_req() syscalls, so it is not losing any degree of
freedom.

syz_fuse_handle_req() retrieves the FUSE request and resource
fuse_unique internally (by performing a read() on the /dev/fuse file
descriptor provided as input). For this reason, a new template argument has
been added to fuse_out (renamed to _fuse_out) so that the unique field
can be both an int64 (used by syz_fuse_handle_req()) and a fuse_unique
resource (used by the write$FUSE_*() syscalls) without any code
duplication.
2020-08-14 18:55:11 +02:00
..
akaros all: fix comments format 2020-07-12 08:22:44 +02:00
android sys/android: dev_ prefix for ion descriptions 2020-05-07 11:26:03 +02:00
freebsd pkg/compiler: check for unused resources 2020-08-04 16:53:16 +02:00
fuchsia pkg/compiler: check for unused resources 2020-08-04 16:53:16 +02:00
linux executor/common_linux.h: add syz_fuse_handle_req() 2020-08-14 18:55:11 +02:00
netbsd pkg/compiler: check for unused resources 2020-08-04 16:53:16 +02:00
openbsd sys/openbsd: neutralize sysctl kern.maxthread 2020-08-14 13:46:14 +02:00
syz-extract pkg/compiler: merge const files into a single file 2020-08-13 17:22:16 +02:00
syz-sysgen pkg/compiler: merge const files into a single file 2020-08-13 17:22:16 +02:00
targets sys/targets: override DataOffset for 32-bit test targets on FreeBSD 2020-08-12 18:09:10 +02:00
test prog: fix UnionType mutation for when per-field dir is specified 2020-08-14 11:02:10 +02:00
trusty Makefile: generate descriptions on-the-fly 2020-04-30 17:18:29 +02:00
windows pkg/compiler: check for unused resources 2020-08-04 16:53:16 +02:00
sys.go prog: dump orig prog if Deserialize panics 2020-02-21 10:22:07 +01:00