Closed AkihiroSuda closed 3 years ago
Poking around at things, it does not appear that the statfs
call is actually locking up. But the call definitely is still locking up, so I’m poking at things now.
Found the issue: https://github.com/pkg/sftp/commit/861a8eaf5c37b4ad5b2f1d0fc61004101bbdcb49#diff-cc2782728612ca8e00dada25397c6e9cd54e8952a3ed46e98b114fc4bc5293deL17
I will be pushing a PR soon to address the issue.
@AkihiroSuda could you try out this branch: https://github.com/pkg/sftp/pull/467 and see if it resolves the issue? If it does, we’ll merge it and cut a patch release.
Yes, #467 works, thank you
Closing as resolved in v1.13.3
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:
(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 becausestatfs(2)
hangs up.This is a regression in commit 861a8ea (Feb 22, 2021, v1.13.0). The previous commit 1d73fd92d5dd1779f4123b6063d9bbb052600d4f works as expected.