Home
last modified time | relevance | path

Searched hist:"475 ecade" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Dsplice.c475ecade Thu Jun 07 02:36:00 CDT 2007 Hugh Dickins <hugh@veritas.com> splice: __generic_file_splice_read: fix i_size_read() length checks

__generic_file_splice_read's partial page check, at eof after readpage,
not only got its calculations wrong, but also reused the loff variable:
causing data corruption when splicing from a non-0 offset in the file's
last page (revealed by ext2 -b 1024 testing on a loop of a tmpfs file).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
475ecade Thu Jun 07 02:36:00 CDT 2007 Hugh Dickins <hugh@veritas.com> splice: __generic_file_splice_read: fix i_size_read() length checks

__generic_file_splice_read's partial page check, at eof after readpage,
not only got its calculations wrong, but also reused the loff variable:
causing data corruption when splicing from a non-0 offset in the file's
last page (revealed by ext2 -b 1024 testing on a loop of a tmpfs file).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>