HomeFreeBSD

mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl

Description

mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl

The device mapping table contains sc->max_devices entries, so only
indices in [0, sc->max_devices) are valid.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27964

Details

Provenance
markjAuthored on Jan 8 2021, 6:32 PM
Differential Revision
D27964: mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl
Parents
rGde828a91db29: mpr, mps: Fix a stack buffer overflow in the user passthru ioctl
Branches
Unknown
Tags
Unknown