Skip to contentSkip to conversation

Apollo Lake with newer microcode: not affected by meltdown anymore?

DISCUSSION Thomas Voegtle 2 participants 3 messages Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

Hello,

Kernel 4.18.5 with old microcode:

[    0.000000] microcode: microcode updated early to revision 0x2c, date =

2017-03-25
cat /sys/devices/system/cpu/vulnerabilities/meltdown
Mitigation: PTI

Kernel 4.18.5 with new microcode (microcode-20180807.tgz), same config:

[    0.000000] microcode: microcode updated early to revision 0x32, date =

2018-05-11
cat /sys/devices/system/cpu/vulnerabilities/meltdown Not affected

This happens with 4.14.y and 4.9.y as well.

The same with ssb:
old microcode: spec_store_bypass:Vulnerable
new microcode: spec_store_bypass:Not affected

Is this intentional behavior? I have never seen this on other CPUs, such as Gemini Lake or Baytrail, Haswell etc.

This is a Lenovo Ideapad 120S-11IAP with Apollo Lake N3350 (Goldmont)

Thomas

#1 lore raw
Quoted 16 lines · Thomas Voegtle

Kernel 4.18.5 with old microcode:

[    0.000000] microcode: microcode updated early to revision 0x2c, date =

2017-03-25
cat /sys/devices/system/cpu/vulnerabilities/meltdown
Mitigation: PTI

Kernel 4.18.5 with new microcode (microcode-20180807.tgz), same config:

[    0.000000] microcode: microcode updated early to revision 0x32, date =

2018-05-11
cat /sys/devices/system/cpu/vulnerabilities/meltdown Not affected

Quoted 8 lines

This happens with 4.14.y and 4.9.y as well.

The same with ssb:
old microcode: spec_store_bypass:Vulnerable
new microcode: spec_store_bypass:Not affected

Is this intentional behavior? I have never seen this on other CPUs, such as Gemini Lake or Baytrail, Haswell etc.

Looks like the micro code update has the relevant bits set in the IA32_ARCH_CAPABILITIES MSR, which tell the kernel that the CPU is not vulnerable. So it seems Intel was able to mitigate the mess in micro code for this particular CPU model.

Thanks,

tglx

#2 lore raw
Quoted 23 lines · Thomas Gleixner
Quoted 22 lines · Thomas Voegtle

Kernel 4.18.5 with old microcode:

[    0.000000] microcode: microcode updated early to revision 0x2c, date =

2017-03-25
cat /sys/devices/system/cpu/vulnerabilities/meltdown
Mitigation: PTI

Kernel 4.18.5 with new microcode (microcode-20180807.tgz), same config:

[    0.000000] microcode: microcode updated early to revision 0x32, date =

2018-05-11
cat /sys/devices/system/cpu/vulnerabilities/meltdown Not affected

This happens with 4.14.y and 4.9.y as well.

The same with ssb:
old microcode: spec_store_bypass:Vulnerable
new microcode: spec_store_bypass:Not affected

Quoted 7 lines
Quoted 2 lines

Is this intentional behavior? I have never seen this on other CPUs, such as Gemini Lake or Baytrail, Haswell etc.

Looks like the micro code update has the relevant bits set in the IA32_ARCH_CAPABILITIES MSR, which tell the kernel that the CPU is not vulnerable. So it seems Intel was able to mitigate the mess in micro code for this particular CPU model.

Ah, ok.
Didn't think of the most obvious.
But yes RDCL_NO is set to 1 with the new microcode. Wow.

Thanks and sorry for the noise,

Thomas