]> git.baikalelectronics.ru Git - kernel.git/commit
apparmorfs: fix use-after-free on symlink traversal
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Apr 2019 18:04:34 +0000 (14:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Apr 2019 18:04:34 +0000 (14:04 -0400)
commit7995db63c3e5d97b5553271b150e963617d3c8e8
tree294cee0590e9e27a93bc9fd6122c50b78da44b99
parent042ded41e5b53cf73a61f325151d0d6e2e104c94
apparmorfs: fix use-after-free on symlink traversal

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>
security/apparmor/apparmorfs.c