Skip to contentSkip to conversation

x86/mm: Randomize per-cpu entry area

tip: x86/mm Dave Hansen 2 participants 2 messages Oct 22, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Hillf Danton

Review

Quoted 5 lines
(quoted diff) +4 -1
-#define CPU_ENTRY_AREA_MAP_SIZE		(CPU_ENTRY_AREA_PER_CPU + CPU_ENTRY_AREA_ARRAY_SIZE - CPU_ENTRY_AREA_BASE)
+#ifdef CONFIG_X86_32
+#define CPU_ENTRY_AREA_MAP_SIZE		(CPU_ENTRY_AREA_PER_CPU +		\
+					 (CPU_ENTRY_AREA_SIZE * NR_CPUS) -	\
+					 CPU_ENTRY_AREA_BASE

My vi editor finds un-paired bracket here.
Feel free to ignore it if nothing hurt.

Thanks for finding that! Looks like Peter and I need to dust off our 32-bit .configs!

I just fixed the issue and pushed a new commit out to tip/x86/mm.

#2 lore raw
Quoted 9 lines · Dave Hansen
Quoted 7 lines · Hillf Danton

Review

Quoted 5 lines
(quoted diff) +4 -1
-#define CPU_ENTRY_AREA_MAP_SIZE		(CPU_ENTRY_AREA_PER_CPU + CPU_ENTRY_AREA_ARRAY_SIZE - CPU_ENTRY_AREA_BASE)
+#ifdef CONFIG_X86_32
+#define CPU_ENTRY_AREA_MAP_SIZE		(CPU_ENTRY_AREA_PER_CPU +		\
+					 (CPU_ENTRY_AREA_SIZE * NR_CPUS) -	\
+					 CPU_ENTRY_AREA_BASE

My vi editor finds un-paired bracket here.
Feel free to ignore it if nothing hurt.

Quoted 4 lines

Thanks for finding that! Looks like Peter and I need to dust off our 32-bit .configs!

I just fixed the issue and pushed a new commit out to tip/x86/mm.

Pff, I've had this commit exposed to 0day for a while, you'd think it would scream. Then again, maybe it got lost in the email firehose :/