From 816e0689d7d9d8321f8bf360740f0e516aee15ca Mon Sep 17 00:00:00 2001 From: Stefano Duo Date: Tue, 25 Aug 2020 09:00:58 +0000 Subject: 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. --- executor/common_linux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 43da7be11..a9ca4ac27 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4500,6 +4500,8 @@ static volatile long syz_fuse_handle_req(volatile long a0, // /dev/fuse fd. case FUSE_FLUSH: case FUSE_RELEASE: case FUSE_RELEASEDIR: + case FUSE_UNLINK: + case FUSE_DESTROY: // These opcodes do not have any reply data. Hence, we pick // another response and only use the shared header. out_hdr = req_out->init; @@ -4538,10 +4540,12 @@ static volatile long syz_fuse_handle_req(volatile long a0, // /dev/fuse fd. out_hdr = req_out->getxattr; break; case FUSE_WRITE: + case FUSE_COPY_FILE_RANGE: out_hdr = req_out->write; break; case FUSE_FORGET: - // FUSE_FORGET expects no reply. + case FUSE_BATCH_FORGET: + // FUSE_FORGET and FUSE_BATCH_FORGET expect no reply. return 0; case FUSE_CREATE: out_hdr = req_out->create_open; -- cgit mrf-deployment