[LTP] [PATCH v2] ioctl_loop06: update loopback block size validation

Li Wang liwang@redhat.com
Fri Mar 14 03:24:52 CET 2025


Hi Luis,

On Fri, Mar 14, 2025 at 6:59 AM Luis Chamberlain <mcgrof@kernel.org> wrote:

> On Thu, Mar 13, 2025 at 05:24:45PM +0800, Li Wang wrote:
> > The kernel commit 47dd6753 ("block/bdev: lift block size restrictions to
> 64k")
> > now supports block sizes larger than PAGE_SIZE, with a new upper limit of
> > BLK_MAX_BLOCK_SIZE (64K). But ioctl_loop06 still assumes that PAGE_SIZE
> is the
> > maximum allowed block size, causing failures on newer kernels(>= 6.14):
>

Well, this sounds like we need to go back to patch v1:
  https://lists.linux.it/pipermail/ltp/2025-March/042599.html

Note: LTP has a function tst_kvercmp() for comparing kernel versions.


-- 
Regards,
Li Wang


More information about the ltp mailing list