Re: [PATCH] loop: protect geometry changes in loop_set_status
From: Jens Axboe
Date: Wed Nov 18 2026 - 11:10:17 EST
On Thu, 12 Nov 2026 15:58:06 +0800, Zhao Gongyi wrote:
> LOOP_SET_STATUS accepts offset and size-limit changes while a filesystem
> is mounted on the loop device. An offset change can redirect filesystem
> I/O to different backing-file sectors, risking data corruption. Shrinking
> the size limit can remove sectors the filesystem still uses. A rejected
> request to change geometry can also invalidate the block-device cache
> before validation.
>
> [...]
Applied, thanks!
[1/1] loop: protect geometry changes in loop_set_status
commit: 6e6d4b23e92742a9f56008beb35c20ed4902611b
Best regards,
--
Jens Axboe