Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:Maintenance:114
xen.openSUSE_Evergreen_11.4
25431-x86-EDD-MBR-sig-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 25431-x86-EDD-MBR-sig-check.patch of Package xen.openSUSE_Evergreen_11.4
# HG changeset patch # User Jan Beulich <JBeulich@suse.com> # Date 1338452293 -7200 # Node ID cdced279e79296f06ede71d92f5047235e4b6d55 # Parent d7ae665b03afb88a813c6f197612215697eaf8f6 x86/EDD: check MBR for BIOS magic before considering signature valid Signed-off-by: Jan Beulich <JBeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> --- a/xen/arch/x86/boot/edd.S +++ b/xen/arch/x86/boot/edd.S @@ -61,12 +61,16 @@ edd_mbr_sig_read: jc edd_mbr_sig_done # on failure, we're done. cmpb $0, %ah # some BIOSes do not set CF jne edd_mbr_sig_done # on failure, we're done. + cmpw $0xaa55, bootsym(boot_edd_info)+0x1fe + jne .Ledd_mbr_sig_next movl bootsym(boot_edd_info)+EDD_MBR_SIG_OFFSET,%eax movb %dl, (%bx) # store BIOS drive number movl %eax, 4(%bx) # store signature from MBR incb bootsym(boot_mbr_signature_nr) # note that we stored something - incb %dl # increment to next device addw $8, %bx # increment sig buffer ptr +.Ledd_mbr_sig_next: + incb %dl # increment to next device + jz edd_mbr_sig_done cmpb $EDD_MBR_SIG_MAX,bootsym(boot_mbr_signature_nr) jb edd_mbr_sig_read edd_mbr_sig_done:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor