diff options
author | Christoph Hellwig <hch@lst.de> | 2017-08-11 12:45:35 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-08-11 16:56:33 -0700 |
commit | e28ae8e428fefe2facd72cea9f29906ecb9c861d (patch) | |
tree | a78610c117be8103f6a1c87ea44327cfab4537fe /fs/xfs/xfs_mount.c | |
parent | c44245b3d5435f533ca8346ece65918f84c057f9 (diff) | |
download | linux-e28ae8e428fefe2facd72cea9f29906ecb9c861d.tar.gz linux-e28ae8e428fefe2facd72cea9f29906ecb9c861d.tar.bz2 linux-e28ae8e428fefe2facd72cea9f29906ecb9c861d.zip |
iomap: fix integer truncation issues in the zeroing and dirtying helpers
Fix the min_t calls in the zeroing and dirtying helpers to perform the
comparisms on 64-bit types, which prevents them from incorrectly
being truncated, and larger zeroing operations being stuck in a never
ending loop.
Special thanks to Markus Stockhausen for spotting the bug.
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
0 files changed, 0 insertions, 0 deletions