u-boot/arch/x86
Masahiro Yamada 2fa863e9aa x86: limit the fs segment to the pointer size
The fs segment is only used to get the global data pointer.
If it is accessed beyond sizeof(new_gd->arch.gd_addr), it is a bug.

To specify the byte-granule limit size, drop the G bit, so the
flag field is 0x8093 instead of 0xc093, and set the limit field
to sizeof(new_gd->arch.gd_addr) - 1.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fixed the comments about FS segement]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2020-02-04 01:19:26 +08:00
..
cpu x86: limit the fs segment to the pointer size 2020-02-04 01:19:26 +08:00
dts x86: Move coreboot over to use the coreboot UART 2020-02-04 01:19:25 +08:00
include/asm x86: Update coreboot serial table struct 2020-02-04 01:19:25 +08:00
lib common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
config.mk x86: efi: app: Generate Microsoft PE format compliant image 2018-12-02 21:59:36 +01:00
Kconfig x86: apl: Add Kconfig and Makefile 2019-12-15 11:44:29 +08:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00