linux/fs/iomap
Andreas Gruenbacher add66fcbd3 iomap: Fix overflow in iomap_page_mkwrite
On architectures where loff_t is wider than pgoff_t, the expression
((page->index + 1) << PAGE_SHIFT) can overflow.  Rewrite to use the page
offset, which we already compute here anyway.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-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>
2019-11-07 07:28:18 -08:00
..
apply.c iomap: use a srcmap for a read-modify-write I/O 2019-10-21 08:51:59 -07:00
buffered-io.c iomap: Fix overflow in iomap_page_mkwrite 2019-11-07 07:28:18 -08:00
direct-io.c fs/iomap: remove redundant check in iomap_dio_rw() 2019-10-29 09:51:24 -07:00
fiemap.c iomap: use a srcmap for a read-modify-write I/O 2019-10-21 08:51:59 -07:00
Makefile iomap: lift common tracing code from xfs to iomap 2019-10-21 08:51:59 -07:00
seek.c iomap: use a srcmap for a read-modify-write I/O 2019-10-21 08:51:59 -07:00
swapfile.c iomap: use a srcmap for a read-modify-write I/O 2019-10-21 08:51:59 -07:00
trace.c iomap: lift common tracing code from xfs to iomap 2019-10-21 08:51:59 -07:00
trace.h iomap: lift the xfs writeback code to iomap 2019-10-21 08:51:59 -07:00