linux_dsm_epyc7002/fs/9p
Harsh Prateek Bora 3834b12a18 fs/9p: setrlimit fix for 9p write
Current 9p client file write code does not check for RLIMIT_FSIZE resource.
This bug was found by running LTP test case for setrlimit. This bug is fixed
by calling generic_write_checks before sending the write request to the
server.
Without this patch: the write function is allowed to write above the
RLIMIT_FSIZE set by user.
With this patch: the write function checks for RLIMIT_SIZE and writes upto
the size limit.

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2010-10-28 09:08:44 -05:00
..
cache.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
cache.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
fid.c 9p: potential ERR_PTR() dereference 2010-08-30 10:35:28 -05:00
fid.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
Kconfig 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
Makefile fs/9p: Add support user. xattr 2010-08-02 14:28:35 -05:00
v9fs_vfs.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2010-08-10 11:26:52 -07:00
v9fs.c fs/9p: Prevent parallel rename when doing fid_lookup 2010-08-02 14:28:35 -05:00
v9fs.h fs/9p: Prevent parallel rename when doing fid_lookup 2010-08-02 14:28:35 -05:00
vfs_addr.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_dentry.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
vfs_dir.c 9p: Check for NULL fid in v9fs_dir_release() 2010-09-13 08:13:03 -05:00
vfs_file.c fs/9p: setrlimit fix for 9p write 2010-10-28 09:08:44 -05:00
vfs_inode.c 9p: remove unneeded checks 2010-10-28 09:08:44 -05:00
vfs_super.c fs/9p: Fix error handling in v9fs_get_sb 2010-09-13 08:13:02 -05:00
xattr_user.c fs/9p: Add support user. xattr 2010-08-02 14:28:35 -05:00
xattr.c 9p: fix sparse warnings in new xattr code 2010-08-02 14:28:38 -05:00
xattr.h fs/9p: Add support user. xattr 2010-08-02 14:28:35 -05:00