Repository navigation
Conversation
|
Upstream branch: d5b6dc3 |
ec9266e to
2e69118
Compare
|
Upstream branch: 24a19b9 |
643068a to
6225807
Compare
2e69118 to
3cdd51f
Compare
|
Upstream branch: 4056b3c |
6225807 to
a9c0f12
Compare
3cdd51f to
e6ca2c1
Compare
|
Upstream branch: 0fcb05b |
a9c0f12 to
356a1f2
Compare
e6ca2c1 to
3d027d5
Compare
|
Upstream branch: 58161ea |
356a1f2 to
ea1dae1
Compare
3d027d5 to
90ea7e4
Compare
|
Upstream branch: c03c1a1 |
ea1dae1 to
bfcab51
Compare
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
bfcab51 to
d60939d
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
d60939d to
42a07f5
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
42a07f5 to
a99916f
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
a99916f to
5ff0fee
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
5ff0fee to
acd4749
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
acd4749 to
57a3fa0
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
57a3fa0 to
4f389cf
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
4f389cf to
fc6d23d
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
fc6d23d to
5575196
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
5575196 to
873fd61
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
873fd61 to
41dc502
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
41dc502 to
846b649
Compare
c7f678d to
6aa6cd1
Compare
iov_iter_extract_bvecs() checks the current IOVEC or KVEC segment against the block device's DMA alignment before extracting pages. Empty segments are valid, but the check uses iter_iov_addr() and iter_iov_len() directly while first_iovec_segment(), used by the extraction path, skips them. An aligned empty segment followed by a misaligned nonempty segment therefore passes the check and produces misaligned bvecs. An unprivileged O_DIRECT preadv() reproduced this on a regular ext4 file above brd. The equivalent nonempty-leading vector returned -EINVAL, while the empty-leading vector completed 4096 bytes. This bypasses the validation added for CVE-2026-89584. When the current segment is empty but the iterator still contains data, use first_iovec_segment() to select and validate the same segment that page extraction will use. Keep the existing constant-time fast path for the normal nonempty case. Fixes: 14b007e ("block: validate user space vectors during extraction") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Daehyeon Ko <4ncienth@gmail.com>
|
Upstream branch: b3dfbde |
846b649 to
c71ecec
Compare
Pull request for series with
subject: iov_iter: validate first nonempty segment for bvec alignment
version: 1
url: https://patchwork.kernel.org/series/1183633/