android_kernel_motorola_sm6375/fs/ocfs2
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Luís Henriques 5e531f448e ocfs2: check new file size on fallocate call
commit 26a6ffff7de5dd369cdb12e38ba11db682f1dec0 upstream.

When changing a file size with fallocate() the new size isn't being
checked.  In particular, the FSIZE ulimit isn't being checked, which makes
fstest generic/228 fail.  Simply adding a call to inode_newsize_ok() fixes
this issue.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Luís Henriques <[email protected]>
Reviewed-by: Mark Fasheh <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Jun Piao <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-06-21 15:44:10 +02:00
..
cluster
dlm ocfs2/dlm: move BITS_TO_BYTES() to bitops.h for wider use 2023-06-09 10:28:54 +02:00
dlmfs ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock 2022-06-14 18:11:46 +02:00
acl.c
acl.h
alloc.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
alloc.h
aops.c ocfs2: fix data corruption after failed write 2023-04-05 11:16:42 +02:00
aops.h
blockcheck.c
blockcheck.h
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
dir.h
dlmglue.c ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown 2023-01-18 11:42:06 +01:00
dlmglue.h
export.c
export.h
extent_map.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
extent_map.h
file.c ocfs2: check new file size on fallocate call 2023-06-21 15:44:10 +02:00
file.h
filecheck.c ocfs2: fix snprintf() checking 2021-07-14 16:53:25 +02:00
filecheck.h
heartbeat.c
heartbeat.h
inode.c
inode.h
ioctl.c
ioctl.h
journal.c ocfs2: fix memory leak in ocfs2_mount_volume() 2023-01-18 11:40:56 +01:00
journal.h ocfs2: fix memory leak in ocfs2_mount_volume() 2023-01-18 11:40:56 +01:00
Kconfig
localalloc.c
localalloc.h
locks.c
locks.h
Makefile
mmap.c
mmap.h
move_extents.c ocfs2: fix non-auto defrag path not working issue 2023-03-11 16:44:00 +01:00
move_extents.h
namei.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
namei.h
ocfs1_fs_compat.h
ocfs2.h
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c
quota_local.c
refcounttree.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c ocfs2: fix memory leak in ocfs2_stack_glue_init() 2023-01-18 11:40:54 +01:00
stackglue.h
suballoc.c
suballoc.h
super.c ocfs2: fix use-after-free when unmounting read-only filesystem 2023-06-21 15:44:09 +02:00
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
xattr.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
xattr.h