aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2025-06-12 14:42:53 +0000
committerJens Axboe <[email protected]>2025-06-13 12:20:17 +0000
commit5e223e06ee7c6d8f630041a0645ac90e39a42cc6 (patch)
tree38254089b2a8e0e1ec1cf316a95818c01a6d0c0d /lib/crypto/mpi/mpiutil.c
parentbio: Fix bio_first_folio() for SPARSEMEM without VMEMMAP (diff)
downloadkernel-5e223e06ee7c6d8f630041a0645ac90e39a42cc6.tar.gz
kernel-5e223e06ee7c6d8f630041a0645ac90e39a42cc6.zip
block: Fix bvec_set_folio() for very large folios
Similarly to 26064d3e2b4d ("block: fix adding folio to bio"), if we attempt to add a folio that is larger than 4GB, we'll silently truncate the offset and len. Widen the parameters to size_t, assert that the length is less than 4GB and set the first page that contains the interesting data rather than the first page of the folio. Fixes: 26db5ee15851 (block: add a bvec_set_folio helper) Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions