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)
commite9193059b1b3733695d5b80e667778311695aa73
tree658862931873ef6155ebe2172235bb408632a603
parentc103135c14e03fc9a9e5f0adc01df9ad272cf2a1
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