diff options
| author | Masahiro Yamada <[email protected]> | 2020-01-08 20:13:42 +0900 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2020-02-04 01:19:26 +0800 |
| commit | 2fa863e9aa4e9d5638c6a8555a7d71dc38e79b90 (patch) | |
| tree | 66c18fd1385f05498c0662821c3a6277e7d72ed9 /scripts | |
| parent | 0d67fac29f3187e67f4fd3ef15f73e91be2fad12 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
[bmeng: fixed the comments about FS segement]
Signed-off-by: Bin Meng <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
