aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorStefano Duo <stefanoduo@google.com>2020-08-25 09:00:58 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-08-27 07:47:59 +0200
commit816e0689d7d9d8321f8bf360740f0e516aee15ca (patch)
treede02300b09a62a197b2d111e0b23a39e92b93b3c /pkg/csource
parent318430cbb3b2ceefe51518ecccabbdabb32ffe3b (diff)
executor/common_linux.h: add missing FUSE opcodes
Add the following missing FUSE opcodes to the syz_fuse_handle_req pseudo-syscall: FUSE_COPY_FILE_RANGE, FUSE_UNLINK, FUSE_DESTROY and FUSE_BATCH_FORGET.
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/generated.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 077355add..3dd7d516c 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -9137,6 +9137,8 @@ static volatile long syz_fuse_handle_req(volatile long a0,
case FUSE_FLUSH:
case FUSE_RELEASE:
case FUSE_RELEASEDIR:
+ case FUSE_UNLINK:
+ case FUSE_DESTROY:
out_hdr = req_out->init;
if (!out_hdr) {
debug("syz_fuse_handle_req: received a NULL out_hdr\n");
@@ -9173,9 +9175,11 @@ static volatile long syz_fuse_handle_req(volatile long a0,
out_hdr = req_out->getxattr;
break;
case FUSE_WRITE:
+ case FUSE_COPY_FILE_RANGE:
out_hdr = req_out->write;
break;
case FUSE_FORGET:
+ case FUSE_BATCH_FORGET:
return 0;
case FUSE_CREATE:
out_hdr = req_out->create_open;