Re: [PATCH] zloop: reject mismatched conventional zone files on restore

From: Jens Axboe

Date: Tue Nov 03 2026 - 10:21:33 EST



On Sat, 31 Oct 2026 22:16:10 +0800, shao.mingyin@xxxxxxxxxx wrote:
> When restoring a zloop device, zloop_init_zone() checks that the size of
> each conventional zone file matches the configured zone size. The check
> prints an error and then jumps to out_fput, which releases the zone file
> and returns the value left in "ret" by the preceding vfs_getattr() call,
> that is, zero. zloop_ctl_add() therefore treats the zone as initialized
> and continues with a zone->file pointer that was already released; any
> I/O to that zone then dereferences it.
>
> [...]

Applied, thanks!

[1/1] zloop: reject mismatched conventional zone files on restore
commit: 09c2e203e0ea8b68e7c9500401fa0ab60baf1a9d

Best regards,
--
Jens Axboe