summaryrefslogtreecommitdiffstats
path: root/fs/ext2/balloc.c
diff options
context:
space:
mode:
authorDuane Griffin <duaneg@dghda.com>2008-12-19 21:47:12 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2009-01-01 00:07:39 +0100
commitebd09abbd9699f328165aee50a070403fbf55a37 (patch)
treea253ba391180a3eed580a493eb831aaae167c837 /fs/ext2/balloc.c
parentvfs: introduce helper function to safely NUL-terminate symlinks (diff)
downloadlinux-ebd09abbd9699f328165aee50a070403fbf55a37.tar.xz
linux-ebd09abbd9699f328165aee50a070403fbf55a37.zip
vfs: ensure page symlinks are NUL-terminated
On-disk data corruption could cause a page link to have its i_size set to PAGE_SIZE (or a multiple thereof) and its contents all non-NUL. NUL-terminate the link name to ensure this doesn't cause further problems for the kernel. 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>
Diffstat (limited to 'fs/ext2/balloc.c')
0 files changed, 0 insertions, 0 deletions