]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
GELIBoot may attempt to read past the end of the disk
authorAllan Jude <allanjude@FreeBSD.org>
Tue, 4 Oct 2016 16:33:03 +0000 (16:33 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Tue, 4 Oct 2016 16:33:03 +0000 (16:33 +0000)
commit452bd5bf51975679998dd55e2851489532dfdc04
treee847f67a3c4d1d7232b45e691392a20ffc552e4a
parentf7948591dcdc729bd3324c83d7edbc7e90d156d3
GELIBoot may attempt to read past the end of the disk

Usually there is some slack after the last partition due to 4k alignment
In the 10.3 EC2 images, there was not. EC2 seems to hang if you try to
read past the end of the disk in the loader, resulting in an unbootable
instance after upgrading to 11.0

PR: 213196
Reported by: Peter Ankerstal <peter@pean.org>
Tested by: cperciva
Reviewed by: tsoome
MFC after: 3 days
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D8144
sys/boot/geli/geliboot.c