[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3] request_alignment vs file size
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 0/3] request_alignment vs file size |
Date: |
Thu, 30 Jan 2020 18:22:15 +0300 |
Hi.
This is a continuation for thread
"request_alignment vs file size, how to fix crash?"
<address@hidden>
https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg07276.html
Generic block-layer assumes that file size is aligned to
request_alignment, and may crash otherwise (see patch 03 for simple
reproducer).
So, let's at least check this thing on generic driver open,
and fix file-posix to consider file-size, when it wants to fallback to
large request_alignment.
Vladimir Sementsov-Ogievskiy (3):
block/file-posix: add raw_getlength_fd
block/file-posix: consider file size when fallback to max_align
block: fail on open when file size is unaligned to request_alignment
block.c | 7 ++++++
block/file-posix.c | 60 +++++++++++++++++++++++++++++-----------------
2 files changed, 45 insertions(+), 22 deletions(-)
--
2.21.0
- [PATCH 0/3] request_alignment vs file size,
Vladimir Sementsov-Ogievskiy <=