Skip to content

fuse: fix lookupx name buffer including stray path-separator byte#172

Merged
hbirth merged 1 commit into
DDNStorage:redfs-ubuntu-hwe-6.17.0-16.16-24.04.1from
hbirth:redfs-ubuntu-hwe-6.17.0-16.16-24.04.1
Jun 9, 2026
Merged

fuse: fix lookupx name buffer including stray path-separator byte#172
hbirth merged 1 commit into
DDNStorage:redfs-ubuntu-hwe-6.17.0-16.16-24.04.1from
hbirth:redfs-ubuntu-hwe-6.17.0-16.16-24.04.1

Conversation

@hbirth

@hbirth hbirth commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Don't assume that the name is null terminated in fuse_do_lookupx() That holds when name is taken from a dentry's d_name (dcache invariant), but the 6.14 d_revalidate signature change (commit 5be1fa8) makes the callback receive the walker's qstr, whose backing buffer is the pathname being resolved.

Don't assume that the name is null terminated in fuse_do_lookupx()
That holds when name is taken from a dentry's d_name
(dcache invariant), but the 6.14 d_revalidate signature change
(commit 5be1fa8) makes the callback receive the
walker's qstr, whose backing buffer is the pathname being resolved.

Signed-off-by: Horst Birthelmer <hbirthelmer@ddn.com>
@hbirth hbirth requested review from bsbernd, cding-ddn and yongzech June 9, 2026 09:49
@hbirth hbirth merged commit e3501c1 into DDNStorage:redfs-ubuntu-hwe-6.17.0-16.16-24.04.1 Jun 9, 2026
2 checks 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.

3 participants