]> 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)
commit7ab81752528f1eae1b902ab4be98780fe8ae4b3d
tree7feee598cba29b9c9adf1a3d7c4e9548860a24f3
parent5a97a9958b6e20518d8363c3252afdc5fe97f1d7
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