diff options
author | Ming Lei <ming.lei@redhat.com> | 2020-08-17 13:00:55 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-03 05:59:40 +0300 |
commit | 7e24969022cbd61ddc586f14824fc205661bb124 (patch) | |
tree | 64854a523b26e7ae9f058097b5d0e5bbacaf4bd7 /drivers | |
parent | e11d80a849e010f78243bb6f6af7dccef3a71a90 (diff) | |
download | linux-7e24969022cbd61ddc586f14824fc205661bb124.tar.xz |
block: allow for_each_bvec to support zero len bvec
Block layer usually doesn't support or allow zero-length bvec. Since
commit 1bdc76aea115 ("iov_iter: use bvec iterator to implement
iterate_bvec()"), iterate_bvec() switches to bvec iterator. However,
Al mentioned that 'Zero-length segments are not disallowed' in iov_iter.
Fixes for_each_bvec() so that it can move on after seeing one zero
length bvec.
Fixes: 1bdc76aea115 ("iov_iter: use bvec iterator to implement iterate_bvec()")
Reported-by: syzbot <syzbot+61acc40a49a3e46e25ea@syzkaller.appspotmail.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: <stable@vger.kernel.org>
Link: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2262077.html
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions