diff options
| author | Orkun Emin Sarı <sariorkunemin@gmail.com> | 2026-11-05 16:23:41 +0300 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-11-19 18:25:59 +0100 |
| commit | a8fdb9d75e7988e637816492ff08d51cff5dabd7 (patch) | |
| tree | 07a8fccc53d9ed38445b08a601e96a898bf36920 /rust/kernel/alloc | |
| parent | 0d2eb896e634c5c843600780164a9fc0f0cedf72 (diff) | |
fuse: don't pass a NULL inode to fuse_inode_backing() on release
cuse_release() and the error path of fuse_create_open() call
fuse_prepare_release() with a NULL fuse_inode. Since commit bbe2d73a8231
("fuse: don't assume ff->passthrough is set for FOPEN_PASSTHROUGH"),
fuse_prepare_release() calls fuse_inode_backing(fi) whenever the open
reply had FOPEN_PASSTHROUGH set, not only when ff->passthrough was set
up. A CUSE server that sets FOPEN_PASSTHROUGH thus makes the kernel
dereference a NULL pointer when the device is closed.
Pass a NULL backing when there is no inode. fuse_passthrough_release()
only prints it.
Found with AI-assisted code review (Claude Code).
Fixes: bbe2d73a8231 ("fuse: don't assume ff->passthrough is set for FOPEN_PASSTHROUGH")
Signed-off-by: Orkun Emin Sarı <sariorkunemin@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
