HomeFreeBSD

loader: disk io should not use alloca()

Description

loader: disk io should not use alloca()

The alloca() does give us pointer and we have no practical way to check if the
area is actually available, resulting in corruption in corner cases.

Unfortunately we do not have too many options right now, but to use one page.

Reviewed by: allanjude
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D9455

Details

Provenance
tsoomeAuthored on
Reviewer
allanjude
Differential Revision
D9455: loader: disk io should not use alloca()
Parents
rS313348: loader: biosdisk fix for 2+TB disks
Branches
Unknown
Tags
Unknown