On Mon, Dec 03, 2018 at 09:30:58AM +0200, Amir Goldstein wrote: > 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... I'm getting there - the problem is I need to refer to the tests in the series description that these changes are made. > How confident are you about this change not breaking existing programs? My care factor is way below zero. The API implementation is so broken right now that fixing it is almost guaranteed to break something somewhere. -Dave. -- Dave Chinner david@xxxxxxxxxxxxx