Re: [PATCH] block: Fix wrong offset in bio_truncate()

From: Jens Axboe
Date: Thu Jan 20 2022 - 08:30:28 EST


On Sun, 09 Jan 2022 18:36:43 +0900, OGAWA Hirofumi wrote:
> bio_truncate() clears the buffer outside of last block of bdev, however
> current bio_truncate() is using the wrong offset of page. So it can
> return the uninitialized data.
>
> This happened when both of truncated/corrupted FS and userspace (via
> bdev) are trying to read the last of bdev.
>
> [...]

Applied, thanks!

[1/1] block: Fix wrong offset in bio_truncate()
commit: 3ee859e384d453d6ac68bfd5971f630d9fa46ad3

Best regards,
--
Jens Axboe