]> git.baikalelectronics.ru Git - kernel.git/commit
hostfs: fix races in dentry_name() and inode_name()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jun 2010 03:16:34 +0000 (23:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:48:14 +0000 (16:48 -0400)
commitc33b41f97d079865036302d6d22551d1b1f2e897
tree658862931873ef6155ebe2172235bb408632a603
parentdfc52663a80edd2b294ab90950cee21d59fe2aaf
hostfs: fix races in dentry_name() and inode_name()

calculating size, then doing allocation, then filling the
path is a Bad Idea(tm), since the ancestors can be renamed,
leading to buffer overrun.

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