Skip to content
Snippets Groups Projects
Commit 053fc4f7 authored by Al Viro's avatar Al Viro
Browse files

fuse: fix UAF in rcu pathwalks


->permission(), ->get_link() and ->inode_get_acl() might dereference
->s_fs_info (and, in case of ->permission(), ->s_fs_info->fc->user_ns
as well) when called from rcu pathwalk.

Freeing ->s_fs_info->fc is rcu-delayed; we need to make freeing ->s_fs_info
and dropping ->user_ns rcu-delayed too.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e31f0a57
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment