aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2016-04-15 10:51:28 +0000
committerJens Axboe <[email protected]>2016-04-15 14:25:56 +0000
commita7297a6a3a3322b054592e8e988981d2f5f29cc4 (patch)
tree04064ecd0b492d492617443ebf7c73baa66ec951 /net/switchdev/switchdev.c
parentNVMe: Always use MSI/MSI-x interrupts (diff)
downloadkernel-a7297a6a3a3322b054592e8e988981d2f5f29cc4.tar.gz
kernel-a7297a6a3a3322b054592e8e988981d2f5f29cc4.zip
block: loop: fix filesystem corruption in case of aio/dio
Starting from commit e36f620428(block: split bios to max possible length), block core starts to split bio in the middle of bvec. Unfortunately loop dio/aio doesn't consider this situation, and always treat 'iter.iov_offset' as zero. Then filesystem corruption is observed. This patch figures out the offset of the base bvevc via 'bio->bi_iter.bi_bvec_done' and fixes the issue by passing the offset to iov iterator. Fixes: e36f6204288088f (block: split bios to max possible length) Cc: Keith Busch <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] (4.5) Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions