HomeFreeBSD

FreeBSD: Fix translation from ABD to physical pages

Description

FreeBSD: Fix translation from ABD to physical pages

In hypothetical case of non-linear ABD with single segment, multiple
to page size but not aligned to it, vdev_geom_fill_unmap_cb() could
fill one page less into bio_ma array.

I am not sure it is exploitable, but better to be safe than sorry.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reported-by: Mark Johnston <markj@FreeBSD.org>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #13345

Details

Provenance
mavAuthored on Apr 20 2022, 11:05 PM
GitHub <noreply@github.com>Committed on Apr 20 2022, 11:05 PM
Parents
rGe37e7dd6a6f5: man: ... -> … again
Branches
Unknown
Tags
Unknown