소스 검색

[build] Pad .hd image type to 32 KB

The disk partition prefix code in hdprefix.S reads the gPXE image in
tracks, not individual sectors.  This means it will attempt to read
beyond the end of the image if the .hd image type is not padded to 32
KB.

This issue is affects virtualization software which may execute a .hd or
.usb image file directly - effectively running a machine with a tiny
disk containing just the gPXE image.  Boot will fail when gPXE tries to
read beyond the end of disk.
tags/v1.0.0-rc1
Stefan Hajnoczi 15 년 전
부모
커밋
9760005fe8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/arch/i386/Makefile.pcbios

+ 1
- 1
src/arch/i386/Makefile.pcbios 파일 보기

@@ -31,7 +31,7 @@ MEDIA		+= exe
31 31
 #
32 32
 PAD_rom		= $(PADIMG) --blksize=512 --byte=0xff $@
33 33
 PAD_dsk		= $(PADIMG) --blksize=512 $@
34
-PAD_hd		= $(PADIMG) --blksize=512 $@
34
+PAD_hd		= $(PADIMG) --blksize=32768 $@
35 35
 
36 36
 # rule to make a non-emulation ISO boot image
37 37
 NON_AUTO_MEDIA	+= iso

Loading…
취소
저장