OSDN Git Service

tools/virtiofsd: Add fstatfs64 syscall to the seccomp allowlist
authorThomas Huth <thuth@redhat.com>
Tue, 14 Sep 2021 12:32:14 +0000 (14:32 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 16 Sep 2021 13:50:48 +0000 (14:50 +0100)
commit8cfd339b3d402f913fe520a4f35f30152fb4fb80
tree35818056e5b0bff6077a6365ba8d5ed5067b35cc
parent57b6f58c1d0df757c9311496c32d502925056894
tools/virtiofsd: Add fstatfs64 syscall to the seccomp allowlist

The virtiofsd currently crashes on s390x when doing something like
this in the guest:

 mkdir -p /mnt/myfs
 mount -t virtiofs myfs /mnt/myfs
 touch /mnt/myfs/foo.txt
 stat -f /mnt/myfs/foo.txt

The problem is that the fstatfs64 syscall is called in this case
from the virtiofsd. We have to put it on the seccomp allowlist to
avoid that the daemon gets killed in this case.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2001728
Suggested-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210914123214.181885-1-thuth@redhat.com>
Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_seccomp.c