Patch "EDAC, amd64: Add x86cpuid sanity check during init" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
EDAC, amd64: Add x86cpuid sanity check during init
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
edac-amd64-add-x86cpuid-sanity-check-during-init.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From foo@baz Thu Nov 9 09:48:01 CET 2017
From: Yazen Ghannam <[email protected]>
Date: Fri, 27 Jan 2017 11:24:23 -0600
Subject: EDAC, amd64: Add x86cpuid sanity check during init
From: Yazen Ghannam <[email protected]>
[ Upstream commit 1bd9900b8301fc505f032c90ea487824cf824e99 ]
Match one of the devices in amd64_cpuids[] before loading the module. This is an additional sanity check against users trying to load amd64_edac_mod on unsupported systems.
--- drivers/edac/amd64_edac.c | 6 ++++-- drivers/edac/amd64_edac.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/edac-amd64-add-x86cpuid-sanity-check-during-init.patch queue-4.9/edac-amd64-save-and-return-err-code-from-probe_one_instance.patch --
To unsubscribe from this list: send the line "unsubscribe linux-edac" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
drivers/edac/amd64_edac.c +4 -2
@@ -2984,8 +2984,11 @@ static int __init amd64_edac_init(void)int err = -ENODEV ;int i; +if (!x86_match_cpu (amd64_cpuids)) +return -ENODEV ; +if (amd_cache_northbridges () <0 ) - goto err_ret; +return -ENODEV ;opstate_init ();
@@ -3025,7 +3028,6 @@ err_free:kfree (ecc_stngs); ecc_stngs =NULL ; -err_ret:return err; }
drivers/edac/amd64_edac.h +1 -0
@@ -16,6 +16,7 @@#include <linux/slab.h> #include <linux/mmzone.h> #include <linux/edac.h> +#include <asm/cpu_device_id.h> #include <asm/msr.h> #include "edac_core.h" #include "mce_amd.h"