Andreas Gruenbacher
7ef9903650
gfs2: Fix length of holes reported at end-of-file
...
[ Upstream commit f3506eee81d1f700d9ee2d2f4a88fddb669ec032 ]
Fix the length of holes reported at the end of a file: the length is
relative to the beginning of the extent, not the seek position which is
rounded down to the filesystem block size.
This bug went unnoticed for some time, but is now caught by the
following assertion in iomap_iter_done():
WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos)
Signed-off-by: Andreas Gruenbacher <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2021-12-08 09:01:08 +01:00
..
acl.c
acl.h
aops.c
aops.h
bmap.c
gfs2: Fix length of holes reported at end-of-file
2021-12-08 09:01:08 +01:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c
gfs2: Prevent direct-I/O write fallback errors from getting lost
2021-06-18 09:58:58 +02:00
gfs2.h
glock.c
gfs2: Fix use-after-free in gfs2_glock_shrink_scan
2021-06-18 09:58:59 +02:00
glock.h
glops.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
glops.h
incore.h
gfs2: use-after-free in sysfs deregistration
2020-11-05 11:43:21 +01:00
inode.c
gfs2: clean up iopen glock mess in gfs2_create_inode
2020-10-01 13:17:20 +02:00
inode.h
Kconfig
lock_dlm.c
gfs2: Don't call dlm after protocol is unmounted
2021-09-22 12:26:33 +02:00
log.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
log.h
lops.c
gfs2: Even more gfs2_find_jhead fixes
2020-06-17 16:40:21 +02:00
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c
gfs2: add validation checks for size of superblock
2020-11-05 11:43:21 +01:00
quota.c
gfs2: move privileged user check to gfs2_quota_lock_check
2020-06-03 08:21:09 +02:00
quota.h
gfs2: move privileged user check to gfs2_quota_lock_check
2020-06-03 08:21:09 +02:00
recovery.c
recovery.h
rgrp.c
gfs2: check for empty rgrp tree in gfs2_ri_update
2020-12-11 13:23:32 +01:00
rgrp.h
super.c
gfs2: report "already frozen/thawed" errors
2021-04-16 11:46:37 +02:00
super.h
sys.c
gfs2: use-after-free in sysfs deregistration
2020-11-05 11:43:21 +01:00
sys.h
trace_gfs2.h
trans.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
trans.h
util.c
util.h
xattr.c
xattr.h