commit | 69a10fb3f4b8769ffd44e4eaa662ab691fa61f4c | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@kernel.org> | Fri Apr 26 13:33:39 2019 -0400 |
committer | Ilya Dryomov <idryomov@gmail.com> | Tue May 07 19:22:37 2019 +0200 |
tree | 5a3503f0c6662a5767fecb4da4a41c45301493b8 | |
parent | ff4a80bf2d3f8005dc5890381bc8ca48e259c60d [diff] |
ceph: fix potential use-after-free in ceph_mdsc_build_path temp is not defined outside of the RCU critical section here. Ensure we grab that value before we drop the rcu_read_lock. Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>