x86: max_low_pfn_mapped fix, #2
tighten the boundary checks around max_low_pfn_mapped - dont overmap nor undermap into holes. also print out tseg for AMD cpus, for diagnostic purposes. (this is an SMM area, and we split up any big mappings around that area) Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
このコミットが含まれているのは:
@@ -658,11 +658,11 @@ static int cpa_process_alias(struct cpa_data *cpa)
|
||||
struct cpa_data alias_cpa;
|
||||
int ret = 0;
|
||||
|
||||
if (cpa->pfn > max_pfn_mapped)
|
||||
if (cpa->pfn >= max_pfn_mapped)
|
||||
return 0;
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
if (cpa->pfn > max_low_pfn_mapped && cpa->pfn < (1UL<<(32-PAGE_SHIFT)))
|
||||
if (cpa->pfn >= max_low_pfn_mapped && cpa->pfn < (1UL<<(32-PAGE_SHIFT)))
|
||||
return 0;
|
||||
#endif
|
||||
/*
|
||||
|
新しいイシューから参照
ユーザーをブロックする