[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bd164f90-f464-6c40-cb0c-9fd6e1ca98da@kernel.dk>
Date: Tue, 4 Feb 2020 07:01:04 -0700
From: Jens Axboe <axboe@...nel.dk>
To: David Laight <David.Laight@...LAB.COM>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Fix io_read() and io_write() when io_import_fixed() is
used.
On 2/4/20 4:20 AM, David Laight wrote:
> io_import_fixed() returns 0 on success so io_import_iovec() may
> not return the length of the transfer.
>
> Instead always use the value from iov_iter_count()
> (Which is called at the same place.)
>
> Fixes 9d93a3f5a (modded by 491381ce0) and 9e645e110.
What kernel is this against? This shouldn't be an issue
in anything newer than 5.3-stable.
--
Jens Axboe
Powered by blists - more mailing lists