]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[bios] Fix screen clearing on even more buggy BIOSes
authorMichael Brown <mcb30@ipxe.org>
Fri, 21 Mar 2014 11:07:29 +0000 (11:07 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 21 Mar 2014 16:56:34 +0000 (16:56 +0000)
commitc1595129b51940bb620302d6da5accef50626da9
tree9a3d41a9495ecbd454982861016fb00857203c67
parentccb6e5c62737b1fe1b96ed0a9aae691bfa99a830
[bios] Fix screen clearing on even more buggy BIOSes

Some BIOSes (observed with a ProLiant DL360p Gen8 SE) perform no range
checking whatsoever on the parameters passed to INT10,06 and will
therefore happily write to an area beyond the end of video RAM.  The
area immediately following the video RAM tends to be the VGA BIOS ROM
image.  Overwriting the VGA BIOS leads to an interesting variety of
crashes and reboots.

Fix by specifying an exact width and height to be cleared, rather than
passing in large values and relying upon the BIOS to truncate them to
the appropriate range.

Reported-by: Alex Davies <adavies@jumptrading.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/firmware/pcbios/bios_console.c