tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti head: 1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9 commit: 1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9 [1/1] x86/pti: Prevent wraparound in setup_cpu_entry_area_ptes() on 32bit config: i386-randconfig-x007-201752 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9 # save the attached .config to linux build tree make ARCH=i386
All errors (new ones prefixed by >>):
arch/x86/mm/cpu_entry_area.c: In function 'setup_cpu_entry_area_ptes':
>> arch/x86/mm/cpu_entry_area.c:153:33: error: 'CPU_ENTRY_AREA_END' undeclared
>> (first use in this function); did you mean 'CPU_ENTRY_AREA_BASE'?
for (; start < end && start >= CPU_ENTRY_AREA_END; start += PMD_SIZE)
^~~~~~~~~~~~~~~~~~
CPU_ENTRY_AREA_BASE
arch/x86/mm/cpu_entry_area.c:153:33: note: each undeclared identifier is
reported only once for each function it appears in
vim +153 arch/x86/mm/cpu_entry_area.c
140
141 static __init void setup_cpu_entry_area_ptes(void)
142 {
143 #ifdef CONFIG_X86_32
144 unsigned long start, end;
145
146 BUILD_BUG_ON(CPU_ENTRY_AREA_PAGES * PAGE_SIZE <
CPU_ENTRY_AREA_MAP_SIZE);
147 BUG_ON(CPU_ENTRY_AREA_BASE & ~PMD_MASK);
148
149 start = CPU_ENTRY_AREA_BASE;
150 end = start + CPU_ENTRY_AREA_MAP_SIZE;
151
152 /* Careful here: start + PMD_SIZE might wrap around */
> 153 for (; start < end && start >= CPU_ENTRY_AREA_END; start +=
> PMD_SIZE)
154 populate_extra_pte(start);
155 #endif
156 }
157
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip

