Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with -o max_write=67108864 -o max_read=67108864 #8

Open
rozhuk-im opened this issue Mar 27, 2023 · 7 comments
Open

Crash with -o max_write=67108864 -o max_read=67108864 #8

rozhuk-im opened this issue Mar 27, 2023 · 7 comments

Comments

@rozhuk-im
Copy link

Crash with message:
Read size too large. OpenSSH SFTP server message limit is 261120
Abort trap (core dumped)
Write size too large. OpenSSH SFTP server message limit is 261120
Abort trap (core dumped)

@ccope
Copy link

ccope commented Mar 27, 2023

I'll verify later today, but I believe the error is expected if the sftp server doesn't support read/write size negotiation.

@rozhuk-im
Copy link
Author

rozhuk-im commented Mar 27, 2023

Using abort() after some mountings already done is bad idea.
Original code use it only in case if error can not be handled or ignored.

On other size is latest OpenSSH.

@ccope
Copy link

ccope commented Mar 27, 2023

The challenge here is that you can't tell that the server doesn't support it until you've already started the SSH connection. Maybe that can be reordered in the code so the fuse setup happens after?

@rozhuk-im
Copy link
Author

I think this is not critical error to call abort().

@ccope
Copy link

ccope commented Mar 27, 2023

Silently ignoring user specified parameters is bad. There are many posts on the internet where people think you can set arbitrarily large read/write sizes for performance improvements because they don't realize the code just caps the values. If you ask for something impossible, there should be immediate feedback.

@ccope
Copy link

ccope commented Mar 27, 2023

Using abort() after some mountings already done is bad idea.
Original code use it only in case if error can not be handled or ignored.

On other size is latest OpenSSH.

Can you post the version string and Linux distribution?

@h4sh5
Copy link
Collaborator

h4sh5 commented Mar 29, 2023

Since it isn't completely silent (it does say what the error is), I suppose we should clean up fuse properly before exiting instead of calling abort()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants