* [luto:x86/idtentry 1/19] arch/x86/include/asm/cpu_entry_area.h:121:32: note: in expansion of macro 'CPU_ENTRY_AREA_BASE'
@ 2019-10-24 21:36 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-24 21:36 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5653 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/idtentry
head: 0e0594256cceb6b3b1a7c50913b969b5eb2442ad
commit: b8b1a6f7f114b98d877424455f8eeb1a3111984f [1/19] x86/hw_breakpoint: Prevent data breakpoints on cpu_entry_area
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout b8b1a6f7f114b98d877424455f8eeb1a3111984f
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/pgtable_types.h:247:0,
from arch/x86/include/asm/processor.h:19,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from arch/x86/events/intel/ds.c:4:
arch/x86/include/asm/cpu_entry_area.h: In function 'within_cpu_entry_area':
>> arch/x86/include/asm/pgtable_32_types.h:50:4: error: 'FIXADDR_TOT_START' undeclared (first use in this function)
((FIXADDR_TOT_START - PAGE_SIZE * (CPU_ENTRY_AREA_PAGES + 1)) \
^
>> arch/x86/include/asm/cpu_entry_area.h:121:32: note: in expansion of macro 'CPU_ENTRY_AREA_BASE'
#define CPU_ENTRY_AREA_RO_IDT CPU_ENTRY_AREA_BASE
^~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/cpu_entry_area.h:122:34: note: in expansion of macro 'CPU_ENTRY_AREA_RO_IDT'
#define CPU_ENTRY_AREA_PER_CPU (CPU_ENTRY_AREA_RO_IDT + PAGE_SIZE)
^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/cpu_entry_area.h:142:16: note: in expansion of macro 'CPU_ENTRY_AREA_PER_CPU'
return end >= CPU_ENTRY_AREA_PER_CPU &&
^~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_32_types.h:50:4: note: each undeclared identifier is reported only once for each function it appears in
((FIXADDR_TOT_START - PAGE_SIZE * (CPU_ENTRY_AREA_PAGES + 1)) \
^
>> arch/x86/include/asm/cpu_entry_area.h:121:32: note: in expansion of macro 'CPU_ENTRY_AREA_BASE'
#define CPU_ENTRY_AREA_RO_IDT CPU_ENTRY_AREA_BASE
^~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/cpu_entry_area.h:122:34: note: in expansion of macro 'CPU_ENTRY_AREA_RO_IDT'
#define CPU_ENTRY_AREA_PER_CPU (CPU_ENTRY_AREA_RO_IDT + PAGE_SIZE)
^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/cpu_entry_area.h:142:16: note: in expansion of macro 'CPU_ENTRY_AREA_PER_CPU'
return end >= CPU_ENTRY_AREA_PER_CPU &&
^~~~~~~~~~~~~~~~~~~~~~
vim +/CPU_ENTRY_AREA_BASE +121 arch/x86/include/asm/cpu_entry_area.h
92a0f81d89571e Thomas Gleixner 2017-12-20 120
92a0f81d89571e Thomas Gleixner 2017-12-20 @121 #define CPU_ENTRY_AREA_RO_IDT CPU_ENTRY_AREA_BASE
92a0f81d89571e Thomas Gleixner 2017-12-20 @122 #define CPU_ENTRY_AREA_PER_CPU (CPU_ENTRY_AREA_RO_IDT + PAGE_SIZE)
92a0f81d89571e Thomas Gleixner 2017-12-20 123
92a0f81d89571e Thomas Gleixner 2017-12-20 124 #define CPU_ENTRY_AREA_RO_IDT_VADDR ((void *)CPU_ENTRY_AREA_RO_IDT)
92a0f81d89571e Thomas Gleixner 2017-12-20 125
92a0f81d89571e Thomas Gleixner 2017-12-20 126 #define CPU_ENTRY_AREA_MAP_SIZE \
92a0f81d89571e Thomas Gleixner 2017-12-20 127 (CPU_ENTRY_AREA_PER_CPU + CPU_ENTRY_AREA_TOT_SIZE - CPU_ENTRY_AREA_BASE)
92a0f81d89571e Thomas Gleixner 2017-12-20 128
92a0f81d89571e Thomas Gleixner 2017-12-20 129 extern struct cpu_entry_area *get_cpu_entry_area(int cpu);
92a0f81d89571e Thomas Gleixner 2017-12-20 130
92a0f81d89571e Thomas Gleixner 2017-12-20 131 static inline struct entry_stack *cpu_entry_stack(int cpu)
92a0f81d89571e Thomas Gleixner 2017-12-20 132 {
92a0f81d89571e Thomas Gleixner 2017-12-20 133 return &get_cpu_entry_area(cpu)->entry_stack_page.stack;
92a0f81d89571e Thomas Gleixner 2017-12-20 134 }
ed1bbc40a0d10e Thomas Gleixner 2017-12-20 135
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 136 /*
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 137 * Checks whether the range from addr to end, inclusive, overlaps the CPU
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 138 * entry area range.
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 139 */
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 140 static inline bool within_cpu_entry_area(unsigned long addr, unsigned long end)
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 141 {
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 @142 return end >= CPU_ENTRY_AREA_PER_CPU &&
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 143 addr < (CPU_ENTRY_AREA_PER_CPU + CPU_ENTRY_AREA_TOT_SIZE);
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 144 }
b8b1a6f7f114b9 Andy Lutomirski 2019-07-18 145
:::::: The code@line 121 was first introduced by commit
:::::: 92a0f81d89571e3e8759366e050ee05cc545ef99 x86/cpu_entry_area: Move it out of the fixmap
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Ingo Molnar <mingo@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7211 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-24 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 21:36 [luto:x86/idtentry 1/19] arch/x86/include/asm/cpu_entry_area.h:121:32: note: in expansion of macro 'CPU_ENTRY_AREA_BASE' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.