Skip to content
Snippets Groups Projects
Commit 8d75ebf2 authored by Yuntao Wang's avatar Yuntao Wang Committed by Greg Kroah-Hartman
Browse files

x86/boot: Fix incorrect startup_gdt_descr.size


[ Upstream commit 001470fe ]

Since the size value is added to the base address to yield the last valid
byte address of the GDT, the current size value of startup_gdt_descr is
incorrect (too large by one), fix it.

[ mingo: This probably never mattered, because startup_gdt[] is only used
         in a very controlled fashion - but make it consistent nevertheless. ]

Fixes: 866b556e ("x86/head/64: Install startup GDT")
Signed-off-by: default avatarYuntao Wang <ytcoode@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20230807084547.217390-1-ytcoode@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 95846cd8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment