Skip to content
Commit 93b919da authored by Al Viro's avatar Al Viro
Browse files

debugfs: fix use-after-free on symlink traversal



symlink body shouldn't be freed without an RCU delay.  Switch debugfs to
->destroy_inode() and use of call_rcu(); free both the inode and symlink
body in the callback.  Similar to solution for bpf, only here it's even
more obvious that ->evict_inode() can be dropped.

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