commit | b21ca2769b0f79840749674b98b3e3b7f5730e17 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Apr 10 14:04:34 2019 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat May 25 18:23:42 2019 +0200 |
tree | 1c7a8818b8ff97697458c39a0dccda7530940894 | |
parent | 9a0467e1f67155c126e5857b1d3ae2ac8b009aa5 [diff] |
apparmorfs: fix use-after-free on symlink traversal [ Upstream commit f51dcd0f621caac5380ce90fbbeafc32ce4517ae ] symlink body shouldn't be freed without an RCU delay. Switch apparmorfs to ->destroy_inode() and use of call_rcu(); free both the inode and symlink body in the callback. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>