vfs: introduce helper function to safely NUL-terminate symlinks
commit035146851cfa2fe24c1d9dc7637bb009ad06b2f7
authorDuane Griffin <duaneg@dghda.com>
Fri, 19 Dec 2008 20:47:11 +0000 (19 20:47 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 31 Dec 2008 23:07:38 +0000 (31 18:07 -0500)
treeb6dd89c60a2100e1c0c48abd1688d3d2ff5f5607
parenta17d5232de7b53d34229de79ec22f4bb04adb7e4
vfs: introduce helper function to safely NUL-terminate symlinks

A number of filesystems were potentially triggering kernel bugs due to
corrupted symlink names on disk. This function helps safely terminate
the names.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Duane Griffin <duaneg@dghda.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/namei.h