commit | 93b919da64c15b90953f96a536e5e61df896ca57 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Mar 26 01:43:37 2019 +0000 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Apr 01 00:31:02 2019 -0400 |
tree | 61aa43c048da6f2f480bd999cd9835cf3ef47d9d | |
parent | 0cdc17ebd2072b6cdd3ec3695ea7ede745664a8b [diff] |
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: Al Viro <viro@zeniv.linux.org.uk>