diff options
author | Luís Henriques <ocfs2-devel@oss.oracle.com> | 2023-05-29 16:26:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-21 16:00:54 +0200 |
commit | 9f17645f85281317564247eb06f2e37cc63a2a96 (patch) | |
tree | 218214d949371ba57d0b838eff3a1404867ae42b /mm | |
parent | 534b4bbc8589bd4618b507a47ca242efcbd248b9 (diff) | |
download | linux-stable-9f17645f85281317564247eb06f2e37cc63a2a96.tar.gz linux-stable-9f17645f85281317564247eb06f2e37cc63a2a96.tar.bz2 linux-stable-9f17645f85281317564247eb06f2e37cc63a2a96.zip |
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/20230529152645.32680-1-lhenriques@suse.de
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Mark Fasheh <mark@fasheh.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions