tools/virtiofsd: Add fstatfs64 syscall to the seccomp allowlist
PATCH 1/1 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.
--- tools/virtiofsd/passthrough_seccomp.c | 1 + 1 file changed, 1 insertion(+)
tools/virtiofsd/passthrough_seccomp.c +1 -0
@@ -51,6 +51,7 @@ static const int syscall_allowlist[] = {SCMP_SYS (fsetxattr),SCMP_SYS (fstat),SCMP_SYS (fstatfs), +SCMP_SYS (fstatfs64),SCMP_SYS (fsync),SCMP_SYS (ftruncate), SCMP_SYS(futex),
Signature · 1 line
2.27.0
Quoted 8 lines · Thomas Huth
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
Quoted 7 lines
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.
Suggested-by Vivek Goyal <[email protected]>Signed-off-by Thomas Huth <[email protected]>
Thanks Thomas for the patch.
Vivek
Quoted 19 lines
--- tools/virtiofsd/passthrough_seccomp.c | 1 + 1 file changed, 1 insertion(+)tools/virtiofsd/passthrough_seccomp.c +1
-0@@ -51,6 +51,7 @@ static const int syscall_allowlist[] = {SCMP_SYS (fsetxattr),SCMP_SYS (fstat),SCMP_SYS (fstatfs), +SCMP_SYS (fstatfs64),SCMP_SYS (fsync),SCMP_SYS (ftruncate), SCMP_SYS(futex),Signature · 1 line
2.27.0
Quoted 12 lines · Thomas Huth
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.txtThe 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.
Quoted 6 lines
Suggested-by Vivek Goyal <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- tools/virtiofsd/passthrough_seccomp.c | 1 + 1 file changed, 1 insertion(+)
Quoted 20 lines
tools/virtiofsd/passthrough_seccomp.c +1
-0@@ -51,6 +51,7 @@ static const int syscall_allowlist[] = {SCMP_SYS (fsetxattr),SCMP_SYS (fstat),SCMP_SYS (fstatfs), +SCMP_SYS (fstatfs64),SCMP_SYS (fsync),SCMP_SYS (ftruncate), SCMP_SYS(futex),Signature · 6 lines
2.27.0 _______________________________________________ Virtio-fs mailing list [email protected] https://listman.redhat.com/mailman/listinfo/virtio-fs
Quoted 12 lines · Thomas Huth
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.txtThe 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.
Quoted 6 lines
Suggested-by Vivek Goyal <[email protected]>Signed-off-by Thomas Huth <[email protected]>--- tools/virtiofsd/passthrough_seccomp.c | 1 + 1 file changed, 1 insertion(+)
Quoted 8 lines · * Thomas Huth ([email protected]) wrote:
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
Quoted 7 lines
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.
Suggested-by Vivek Goyal <[email protected]>Signed-off-by Thomas Huth <[email protected]>
Thanks, and queued.
Quoted 19 lines
--- tools/virtiofsd/passthrough_seccomp.c | 1 + 1 file changed, 1 insertion(+)tools/virtiofsd/passthrough_seccomp.c +1
-0@@ -51,6 +51,7 @@ static const int syscall_allowlist[] = {SCMP_SYS (fsetxattr),SCMP_SYS (fstat),SCMP_SYS (fstatfs), +SCMP_SYS (fstatfs64),SCMP_SYS (fsync),SCMP_SYS (ftruncate), SCMP_SYS(futex),Signature · 1 line
2.27.0
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK