block: use blk_validate_byte_range() for BLKZEROOUT and BLKSECDISCARD#905
block: use blk_validate_byte_range() for BLKZEROOUT and BLKSECDISCARD#905blktests-ci[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: eb3f4b7 |
9805659 to
3f4a345
Compare
|
Upstream branch: 8fde5d1 |
081f4b6 to
6802c9d
Compare
|
Upstream branch: 8fde5d1 |
6802c9d to
86bde4d
Compare
3f4a345 to
c6dc343
Compare
|
Upstream branch: e43ffb6 |
86bde4d to
55ca197
Compare
c6dc343 to
fc36596
Compare
|
Upstream branch: ba3e43a |
55ca197 to
72ff9e4
Compare
fc36596 to
7bed9c3
Compare
|
Upstream branch: ddd664b |
72ff9e4 to
aa1a429
Compare
7bed9c3 to
a7bb5c5
Compare
|
Upstream branch: 979c294 |
aa1a429 to
8ea2ce1
Compare
a7bb5c5 to
5e41a3b
Compare
|
Upstream branch: acb7500 |
8ea2ce1 to
4a23288
Compare
5e41a3b to
c3a084b
Compare
|
Upstream branch: 9716c08 |
4a23288 to
dd68d2b
Compare
c3a084b to
5f78e5d
Compare
|
Upstream branch: 2a2974b |
dd68d2b to
2c1b168
Compare
5f78e5d to
e48f9db
Compare
|
Upstream branch: 062871f |
2c1b168 to
274756a
Compare
199644a to
e6d9eb8
Compare
|
Upstream branch: 66affa3 |
274756a to
329e6e7
Compare
e6d9eb8 to
7d8604f
Compare
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>
|
Upstream branch: bade58e |
329e6e7 to
866e358
Compare
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