HomeFreeBSD

loader: geli_dev_ioctl does return huge mediasize

Description

loader: geli_dev_ioctl does return huge mediasize

The DIOCGMEDIASIZE is calculated md->md_sectorsize * md->md_provsize, and
for boot disk, the md_sectorsize is 4k. However, the md_provsize is already
in units of bytes.

Sponsored by: Netflix, Klara Inc.

Details

Provenance
tsoomeAuthored on Jul 7 2020, 12:24 PM
Parents
rGc201ce0b4a74: Fix KASSERT during tcp_newtcpcb when low on memory
Branches
Unknown
Tags
Unknown