Skip to content

fix conntab lookup after rename in sshfs_release#351

Merged
h4sh5 merged 1 commit into
libfuse:masterfrom
abhinavagarwal07:fix-conntab-null-deref
May 18, 2026
Merged

fix conntab lookup after rename in sshfs_release#351
h4sh5 merged 1 commit into
libfuse:masterfrom
abhinavagarwal07:fix-conntab-null-deref

Conversation

@abhinavagarwal07
Copy link
Copy Markdown
Collaborator

sshfs_release looked up the conntab entry by path, but sshfs_rename moves that entry to the new path. Closing the original handle after a rename can miss the entry and dereference NULL.

Store the conntab_entry pointer on sshfs_file and use it for release and open-failure cleanup. Add a regression test for open -> rename -> close.

sshfs_release looked up the conntab entry by path, but sshfs_rename
moves that entry to the new path. Closing the original handle after a
rename can miss the entry and dereference NULL.

Store the conntab_entry pointer on sshfs_file and use it for release
and open-failure cleanup. Add a regression test for open -> rename -> close.
@h4sh5 h4sh5 merged commit cc14ae1 into libfuse:master May 18, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants