kernel-ark/fs/configfs
Joel Becker ff05d1c464 configfs: Zero terminate data in configfs attribute writes.
Attributes in configfs are text files.  As such, most handlers expect to be
able to call functions like simple_strtoul() without checking the bounds
of the buffer.  Change the call to zero terminate the buffer before calling
the client's ->store() method.  This does reduce the attribute size from
PAGE_SIZE to PAGE_SIZE-1.

Also, change get_zeroed_page() to alloc_page(), as we are handling the
termination.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2007-02-07 12:17:08 -08:00
..
configfs_internal.h [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
dir.c [PATCH] configfs: change uses of f_{dentry, vfsmnt} to use f_path 2006-12-08 08:28:43 -08:00
file.c configfs: Zero terminate data in configfs attribute writes. 2007-02-07 12:17:08 -08:00
inode.c [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
item.c [DLM] Export config_group_find_obj for use by the DLM 2006-01-18 14:21:40 +00:00
Makefile [PATCH] configfs: User-driven configuration filesystem 2006-01-03 11:45:28 -08:00
mount.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
symlink.c configfs: Clear up a few extra spaces where there should be TABs. 2006-06-29 14:43:01 -07:00