Commit 9945d2a
filemap: avoid truncating 64-bit offset to 32 bits
commit f505e6c upstream.
On 32-bit kernels, folio_seek_hole_data() was inadvertently truncating a
64-bit value to 32 bits, leading to a possible infinite loop when writing
to an xfs filesystem.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 54fa39a ("iomap: use mapping_seek_hole_data")
Signed-off-by: Marco Nelissen <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 3cc9ff4205883855a051a20b40cdda1e3ca6d6b5)1 parent 0bb2b5a commit 9945d2a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3037 | 3037 | | |
3038 | 3038 | | |
3039 | 3039 | | |
3040 | | - | |
| 3040 | + | |
3041 | 3041 | | |
3042 | 3042 | | |
3043 | 3043 | | |
| |||
0 commit comments