summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/fuse/dev.go
diff options
context:
space:
mode:
authorJinmou Li <jinmli@google.com>2020-09-16 17:39:55 +0000
committerAndrei Vagin <avagin@gmail.com>2020-09-16 12:22:17 -0700
commit70cf503b4c3653df8253438a8873a5d3ebb688e3 (patch)
tree00d335e91489f54f473301bfaa8af17bda5f2869 /pkg/sentry/fsimpl/fuse/dev.go
parent26879c32b8b48b6c066f1a5ba2c787e7061dabae (diff)
fuse: fix FUSE_RELEASE reply handling
fix #3963
Diffstat (limited to 'pkg/sentry/fsimpl/fuse/dev.go')
-rw-r--r--pkg/sentry/fsimpl/fuse/dev.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/sentry/fsimpl/fuse/dev.go b/pkg/sentry/fsimpl/fuse/dev.go
index a19544fe9..5539466ff 100644
--- a/pkg/sentry/fsimpl/fuse/dev.go
+++ b/pkg/sentry/fsimpl/fuse/dev.go
@@ -309,10 +309,6 @@ func (fd *DeviceFD) writeLocked(ctx context.Context, src usermem.IOSequence, opt
fut, ok := fd.completions[hdr.Unique]
if !ok {
- if fut.hdr.Unique == linux.FUSE_RELEASE {
- // Currently we simply discard the reply for FUSE_RELEASE.
- return n + src.NumBytes(), nil
- }
// Server sent us a response for a request we never sent,
// or for which we already received a reply (e.g. aborted), an unlikely event.
return 0, syserror.EINVAL