]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: fix use-after-free on symlink traversal
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Mar 2019 01:39:50 +0000 (01:39 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Apr 2019 04:31:02 +0000 (00:31 -0400)
commit2ae02acf9bb956321d54390fc336b1a584a2c85d
treed0c9167b762a5837ac3030d2f1e869454a4c4ac6
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
jffs2: 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/jffs2/readinode.c
fs/jffs2/super.c