diff options
author | Ming Lei <ming.lei@redhat.com> | 2024-10-31 19:02:24 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-10-31 07:40:34 -0600 |
commit | 496a51b37143c690a06612a6bd58827ef2341761 (patch) | |
tree | 60d2a9a84c55f3febede757ed57bf020efa638d6 /tools/perf/scripts/python/syscall-counts.py | |
parent | 133008e84b99e4f5f8cf3d8b768c995732df9406 (diff) |
lib/iov_iter.c: initialize bi.bi_idx before iterating over bvec
Initialize bi.bi_idx as 0 before iterating over bvec, otherwise
garbage data can be used as ->bi_idx.
Cc: Christoph Hellwig <hch@lst.de>
Reported-and-tested-by: Klara Modin <klarasmodin@gmail.com>
Fixes: e4e535bff2bc ("iov_iter: don't require contiguous pages in iov_iter_extract_bvec_pages")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions