From: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: linux-block@vger.kernel.org, 0wnerD1ed <l7z@0b1t.tech>
Subject: Re: [PATCH blktests] block/045: respect dma_alignment
Date: Fri, 21 Aug 2026 15:01:53 +0900 [thread overview]
Message-ID: <aofpEiLpsmRVtGJR@shinhome> (raw)
In-Reply-To: <20260806094218.2077413-1-shinichiro.kawasaki@wdc.com>
On Aug 06, 2026 / 18:42, Shin'ichiro Kawasaki wrote:
> Since the kernel commit 14b007e17881 ("block: validate user space
> vectors during extraction"), the test case block/045 fails with the
> error message below:
>
> block/045 (test direct I/O full-trim bvec alignment) [failed]
> runtime 0.550s ... 0.630s
> --- tests/block/045.out 2026-08-03 19:26:40.407053612 +0900
> +++ /home/shin/Blktests/blktests/results/nodev/block/045.out.bad 2026-08-05 20:48:33.366932845 +0900
> @@ -1,2 +1,4 @@
> Running block/045
> +bio-full-trim: pread returned -1 (errno 22)
> +bio-full-trim helper failed
> Test complete
>
> The errno 22 means EINVAL. The commit introduced the dma_alignment check
> and returns EINVAL when the check is not fulfilled. The test case calls
> pread() with one byte offset. This offset is not aligned to the
> dma_alignment, then EINVAL is returned.
>
> To avoid the failure, respect the dma_alignment check. Get the
> dma_alignment value and pass it to bio-full-trim command. Use the
> alignment to decide the offset value.
FYI, I applied the patch.
prev parent reply other threads:[~2026-08-21 6:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 9:42 [PATCH blktests] block/045: respect dma_alignment Shin'ichiro Kawasaki
2026-08-21 6:01 ` Shin'ichiro Kawasaki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aofpEiLpsmRVtGJR@shinhome \
--to=shinichiro.kawasaki@wdc.com \
--cc=l7z@0b1t.tech \
--cc=linux-block@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.