Skip to content

statfs hangup, regression in commit 861a8ea (Feb 22, 2021, v1.13.0) #466

@AkihiroSuda

Description

@AkihiroSuda

https://github.com/lima-vm/sshocker hangs up when it is compiled with commit 861a8ea (Feb 22, 2021, v1.13.0) and later.

Reproduction step:

git clone https://github.com/lima-vm/sshocker.git
cd sshocker
git checkout v0.2.0
go get github.com/pkg/sftp@861a8eaf5c37b4ad5b2f1d0fc61004101bbdcb49
make
make install
mkdir /tmp/foo
sshocker -v /tmp/foo:/home/user/mnt:ro example.com df

(the remote host example.com is Ubuntu 21.04 with sshfs 2.10.0, the local host is macOS 11)

The df command executed on the remote host hangs up because statfs(2) hangs up.

This is a regression in commit 861a8ea (Feb 22, 2021, v1.13.0).
The previous commit 1d73fd9 works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions