Docmentation, ABI: Update contact for L3 cache index disable
Subsystems (3)
PATCH 1/1 Docmentation, ABI: Update contact for L3 cache index disable
The mailing list [email protected] is now defunct. Using [email protected] in its place.
--- Documentation/ABI/testing/sysfs-devices-system-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-devices-system-cpu +1 -1
@@ -162,7 +162,7 @@ Description: Discover CPUs in the same CPU frequency coordination domain What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1} Date: August 2008 KernelVersion: 2.6.27 -Contact: [email protected] +Contact: [email protected] Description: Disable L3 cache indices These files exist in every CPU's cache/index3 directory. Each
Signature · 1 line
2.4.0
Borislav Petkov
AppliedQuoted 13 lines · Aravind Gopalakrishnan
The mailing list [email protected] is now defunct. Using [email protected] in its place.
Signed-off-by Aravind Gopalakrishnan <[email protected]>--- Documentation/ABI/testing/sysfs-devices-system-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/ABI/testing/sysfs-devices-system-cpu +0
-0
Documentation/ABI/testing/sysfs-devices-system-cpu Description: Discover CPUs in the same CPU frequency coordination domain · line 168
Quoted 8 lines
Documentation/ABI/testing/sysfs-devices-system-cpu +1
-1@@ -162,7 +162,7 @@ Description: Discover CPUs in the same CPU frequency coordination domain What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1} Date: August 2008 KernelVersion: 2.6.27 -Contact: [email protected] +Contact: [email protected] Description: Disable L3 cache indices These files exist in every CPU's cache/index3 directory. Each
Applied, thanks.
Signature · 5 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--Borislav Petkov
maintainercover tip queue 2015-05-18
From: Borislav Petkov <[email protected]>
Just two this time, the mce one is urgent material, I've tagged it for stable@.
Aravind Gopalakrishnan (1):
Documentation/ABI: Update contact for L3 cache index disable
Borislav Petkov (1):
x86/mce: Use only critical MCE severity message
Borislav Petkov
maintainerPATCH 1/2 Documentation/ABI: Update contact for L3 cache index disable
From: Aravind Gopalakrishnan <[email protected]>
The mailing list [email protected] is now defunct. Use [email protected] in its place.
--- Documentation/ABI/testing/sysfs-devices-system-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-devices-system-cpu +1 -1
@@ -162,7 +162,7 @@ Description: Discover CPUs in the same CPU frequency coordination domain What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1} Date: August 2008 KernelVersion: 2.6.27 -Contact: [email protected] +Contact: [email protected] Description: Disable L3 cache indices These files exist in every CPU's cache/index3 directory. Each
Signature · 1 line
2.3.5
tip-bot for Aravind Gopalakrishnan
merge bot[tip:x86/urgent] x86/Documentation: Update the contact email for L3 cache index disable functionality
x86/Documentation: Update the contact email for L3 cache index disable functionality
Commit-ID: ea8e080b604e2c8221af778221d83a59b6529c5b Gitweb: http://git.kernel.org/tip/ea8e080b604e2c8221af778221d83a59b6529c5b Author: Aravind Gopalakrishnan <[email protected]> AuthorDate: Mon, 18 May 2015 10:07:16 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 18 May 2015 10:34:24 +0200
x86/Documentation: Update the contact email for L3 cache index disable functionality
The mailing list [email protected] is now defunct. Use the lkml in its place.
--- Documentation/ABI/testing/sysfs-devices-system-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-devices-system-cpu +1 -1
@@ -162,7 +162,7 @@ Description: Discover CPUs in the same CPU frequency coordination domain What: /sys/devices/system/cpu/cpu*/cache/index3/cache_disable_{0,1} Date: August 2008 KernelVersion: 2.6.27 -Contact: [email protected] +Contact: Linux kernel mailing list <[email protected]> Description: Disable L3 cache indices These files exist in every CPU's cache/index3 directory. Each
Borislav Petkov
maintainerPATCH 2/2 x86/mce: Use only critical MCE severity message
In reply to Borislav PetkovFrom: Borislav Petkov <[email protected]>
Derek noticed that a critical MCE gets reported with the wrong error message:
[Hardware Error]: CPU 34: Machine Check Exception: 5 Bank 9: f200003f000100b0 [Hardware Error]: RIP !INEXACT! 10:<ffffffff812e14c1> {intel_idle+0xb1/0x170} [Hardware Error]: TSC 49587b8e321cb
[Hardware Error]: PROCESSOR 0:306e4 TIME 1431561296 SOCKET 1 APIC 29 [Hardware Error]: Some CPUs didn't answer in synchronization [Hardware Error]: Machine check: Invalid
^^^^^^^
due to the fact that mce_no_way_out() iterates over all MCA banks and possibly overwrites the @msg argument which is used in the panic printing later.
Change behavior to take the message of only and the (last) critical MCE it detects.
--- arch/x86/kernel/cpu/mcheck/mce.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mcheck/mce.c +5 -2
@@ -708,6 +708,7 @@ static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp, struct pt_regs *regs) {int i, ret =0 ; +char *tmp;for (i =0 ; i < mca_cfg.banks; i++) { m->status =mce_rdmsrl (MSR_IA32_MCx_STATUS (i));
@@ -716,9 +717,11 @@ static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp,if (quirk_no_way_out)quirk_no_way_out (i, m, regs); } -if (mce_severity (m, mca_cfg.tolerant, msg, true) >= -MCE_PANIC_SEVERITY ) + +if (mce_severity (m, mca_cfg.tolerant, &tmp, true) >=MCE_PANIC_SEVERITY ) { + *msg = tmp; ret =1 ; + } }return ret; }
Signature · 1 line
2.3.5
tip-bot for Borislav Petkov
merge bot[tip:x86/urgent] x86/mce: Fix MCE severity messages
x86/mce: Fix MCE severity messages
Commit-ID: 17fea54bf0ab34fa09a06bbde2f58ed7bbdf9299 Gitweb: http://git.kernel.org/tip/17fea54bf0ab34fa09a06bbde2f58ed7bbdf9299 Author: Borislav Petkov <[email protected]> AuthorDate: Mon, 18 May 2015 10:07:17 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 18 May 2015 10:31:22 +0200
x86/mce: Fix MCE severity messages
Derek noticed that a critical MCE gets reported with the wrong error type description:
[Hardware Error]: CPU 34: Machine Check Exception: 5 Bank 9: f200003f000100b0 [Hardware Error]: RIP !INEXACT! 10:<ffffffff812e14c1> {intel_idle+0xb1/0x170} [Hardware Error]: TSC 49587b8e321cb
[Hardware Error]: PROCESSOR 0:306e4 TIME 1431561296 SOCKET 1 APIC 29 [Hardware Error]: Some CPUs didn't answer in synchronization [Hardware Error]: Machine check: Invalid
^^^^^^^
The last line with 'Invalid' should have printed the high level MCE error type description we get from mce_severity, i.e. something like:
[Hardware Error]: Machine check: Action required: data load error in a user process
this happens due to the fact that mce_no_way_out() iterates over all MCA banks and possibly overwrites the @msg argument which is used in the panic printing later.
Change behavior to take the message of only and the (last) critical MCE it detects.
--- arch/x86/kernel/cpu/mcheck/mce.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mcheck/mce.c +5 -2
@@ -708,6 +708,7 @@ static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp, struct pt_regs *regs) {int i, ret =0 ; +char *tmp;for (i =0 ; i < mca_cfg.banks; i++) { m->status =mce_rdmsrl (MSR_IA32_MCx_STATUS (i));
@@ -716,9 +717,11 @@ static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp,if (quirk_no_way_out)quirk_no_way_out (i, m, regs); } -if (mce_severity (m, mca_cfg.tolerant, msg, true) >= -MCE_PANIC_SEVERITY ) + +if (mce_severity (m, mca_cfg.tolerant, &tmp, true) >=MCE_PANIC_SEVERITY ) { + *msg = tmp; ret =1 ; + } }return ret; }