diff options
author | Michael Lyle <mlyle@lyle.org> | 2017-11-16 23:47:25 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-17 08:29:34 -0700 |
commit | 62530ed8b1d07a45dec94d46e521c0c6c2d476e6 (patch) | |
tree | c4f89ec9c2886890a4e6d266a049620a96fc379f /block/blk-map.c | |
parent | cce75291ffd82eb5bac56b051f46f89e8c0d2918 (diff) | |
download | linux-62530ed8b1d07a45dec94d46e521c0c6c2d476e6.tar.gz linux-62530ed8b1d07a45dec94d46e521c0c6c2d476e6.tar.bz2 linux-62530ed8b1d07a45dec94d46e521c0c6c2d476e6.zip |
bio: ensure __bio_clone_fast copies bi_partno
A new field was introduced in 74d46992e0d9, bi_partno, instead of using
bdev->bd_contains and encoding the partition information in the bi_bdev
field. __bio_clone_fast was changed to copy the disk information, but
not the partition information. At minimum, this regressed bcache and
caused data corruption.
Signed-off-by: Michael Lyle <mlyle@lyle.org>
Fixes: 74d46992e0d9 ("block: replace bi_bdev with a gendisk pointer and partitions index")
Reported-by: Pavel Goran <via-bcache@pvgoran.name>
Reported-by: Campbell Steven <casteven@gmail.com>
Reviewed-by: Coly Li <colyli@suse.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Cc: <stable@vger.kernel.org> # 4.14
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-map.c')
0 files changed, 0 insertions, 0 deletions