Skip to content

block: use blk_validate_byte_range() for BLKZEROOUT and BLKSECDISCARD#905

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1102664=>linus-master
Open

block: use blk_validate_byte_range() for BLKZEROOUT and BLKSECDISCARD#905
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1102664=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented May 29, 2026

Copy link
Copy Markdown

Pull request for series with
subject: block: use blk_validate_byte_range() for BLKZEROOUT and BLKSECDISCARD
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1102664

@blktests-ci

blktests-ci Bot commented May 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: eb3f4b7
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci

blktests-ci Bot commented May 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8fde5d1
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 081f4b6 to 6802c9d Compare May 29, 2026 11:33
@blktests-ci

blktests-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8fde5d1
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 6802c9d to 86bde4d Compare June 1, 2026 08:11
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 3f4a345 to c6dc343 Compare June 1, 2026 08:57
@blktests-ci

blktests-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown
Author

Upstream branch: e43ffb6
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 86bde4d to 55ca197 Compare June 1, 2026 09:18
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c6dc343 to fc36596 Compare June 3, 2026 13:56
@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: ba3e43a
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 55ca197 to 72ff9e4 Compare June 3, 2026 14:16
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from fc36596 to 7bed9c3 Compare June 5, 2026 09:48
@blktests-ci

blktests-ci Bot commented Jun 5, 2026

Copy link
Copy Markdown
Author

Upstream branch: ddd664b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 72ff9e4 to aa1a429 Compare June 5, 2026 10:03
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7bed9c3 to a7bb5c5 Compare June 7, 2026 14:54
@blktests-ci

blktests-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: 979c294
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from aa1a429 to 8ea2ce1 Compare June 7, 2026 15:21
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a7bb5c5 to 5e41a3b Compare June 10, 2026 13:31
@blktests-ci

blktests-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: acb7500
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 8ea2ce1 to 4a23288 Compare June 10, 2026 14:06
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5e41a3b to c3a084b Compare June 10, 2026 20:26
@blktests-ci

blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 4a23288 to dd68d2b Compare June 11, 2026 09:38
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c3a084b to 5f78e5d Compare June 12, 2026 22:27
@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from dd68d2b to 2c1b168 Compare June 12, 2026 23:04
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 2c1b168 to 274756a Compare June 13, 2026 02:01
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 274756a to 329e6e7 Compare June 17, 2026 14:33
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
blk_validate_byte_range() was extracted from BLKDISCARD in 2024 but
BLKZEROOUT and BLKSECDISCARD still used legacy 512-byte alignment
checks.  On 4K logical block devices this allows misaligned requests
to pass ioctl validation, invalidate the page cache, and then fail in
blkdev_issue_zeroout() or blkdev_issue_secure_erase().

Use blk_validate_byte_range() for both ioctls so range validation
matches BLKDISCARD, fallocate, and the blk-lib helpers.

Signed-off-by: liyouhong <liyouhong@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1102664
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1102664=>linus-master branch from 329e6e7 to 866e358 Compare June 24, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants