On Mon, Dec 3, 2018 at 8:43 AM Dave Chinner <david@xxxxxxxxxxxxx> wrote: > > From: Dave Chinner <dchinner@xxxxxxxxxx> > > As per the copy_file_range() man page: > > EINVAL > Requested range extends beyond the end of the source file; > ..... > > These tests actually attempt to copy beyond the end of the source > file and so should fail with EINVAL. The kernel does not check this > and so needs fixing. These operations should fail, so fix the tests. > [cc: linux-api] Probably better to discuss this on the kernel patch itself, but well... How confident are you about this change not breaking existing programs? Thanks, Amir.