]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: fix use-after-free on symlink traversal
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Mar 2019 01:40:38 +0000 (01:40 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Apr 2019 04:31:02 +0000 (00:31 -0400)
commit577ddfbfcafa15c409fdca382d5228c140cb1aa5
tree7feee598cba29b9c9adf1a3d7c4e9548860a24f3
parent2ae02acf9bb956321d54390fc336b1a584a2c85d
ubifs: fix use-after-free on symlink traversal

free the symlink body after the same RCU delay we have for freeing the
struct inode itself, so that traversal during RCU pathwalk wouldn't step
into freed memory.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ubifs/super.c