lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-415601b1917be0e3b53306d410be659b429241a9@git.kernel.org>
Date:   Tue, 18 Apr 2017 05:50:41 -0700
From:   tip-bot for Borislav Petkov <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     mingo@...nel.org, tony.luck@...el.com,
        linux-kernel@...r.kernel.org, peterz@...radead.org, bp@...e.de,
        torvalds@...ux-foundation.org, hpa@...or.com,
        xiaolong.ye@...el.com, tglx@...utronix.de,
        linux-edac@...r.kernel.org, sfr@...b.auug.org.au
Subject: [tip:ras/core] x86/mce: Update notifier priority check

Commit-ID:  415601b1917be0e3b53306d410be659b429241a9
Gitweb:     http://git.kernel.org/tip/415601b1917be0e3b53306d410be659b429241a9
Author:     Borislav Petkov <bp@...e.de>
AuthorDate: Tue, 18 Apr 2017 09:33:28 +0200
Committer:  Ingo Molnar <mingo@...nel.org>
CommitDate: Tue, 18 Apr 2017 10:27:52 +0200

x86/mce: Update notifier priority check

Update the check which enforces the registration of MCE decoder notifier
callbacks with valid priority only, to include mcelog's priority.

Reported-by: kernel test robot <xiaolong.ye@...el.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Tony Luck <tony.luck@...el.com>
Cc: linux-edac <linux-edac@...r.kernel.org>
Cc: lkp@...org
Link: http://lkml.kernel.org/r/20170418073820.i6kl5tggcntwlisa@pd.tnic
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
 arch/x86/kernel/cpu/mcheck/mce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index a09bb67..9d41ec8 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -157,7 +157,7 @@ static atomic_t num_notifiers;
 
 void mce_register_decode_chain(struct notifier_block *nb)
 {
-	if (WARN_ON(nb->priority > MCE_PRIO_LOWEST && nb->priority < MCE_PRIO_EDAC))
+	if (WARN_ON(nb->priority > MCE_PRIO_MCELOG && nb->priority < MCE_PRIO_EDAC))
 		return;
 
 	atomic_inc(&num_notifiers);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ