diff options
| author | Carlos Llamas <[email protected]> | 2025-10-30 04:39:18 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-10-30 14:52:57 +0000 |
| commit | 0b39ca457241aeca07a613002512573e8804f93a (patch) | |
| tree | 83059c2b005b931ce94df578bff8179cff463a1f /lib/test_fortify/write_overflow-strlcpy-src.c | |
| parent | block: make REQ_OP_ZONE_OPEN a write operation (diff) | |
| download | kernel-0b39ca457241aeca07a613002512573e8804f93a.tar.gz kernel-0b39ca457241aeca07a613002512573e8804f93a.zip | |
blk-crypto: use BLK_STS_INVAL for alignment errors
Make __blk_crypto_bio_prep() propagate BLK_STS_INVAL when IO segments
fail the data unit alignment check.
This was flagged by an LTP test that expects EINVAL when performing an
O_DIRECT read with a misaligned buffer [1].
Cc: Eric Biggers <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/ [1]
Signed-off-by: Carlos Llamas <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions
