From: kbuild test robot <fengguang.wu@intel.com>
To: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5266/5426] arch/x86/kernel/cpu/mcheck/mce.c:884:5: warning: 'order' may be used uninitialized in this function
Date: Thu, 10 Dec 2015 23:05:36 +0800 [thread overview]
Message-ID: <201512102333.nZemw8i3%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2962 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8225f4e85cb03daea14661380745886ce01fd83a
commit: 0dd08f12cafd7868be55bc10ebcd4ea13880860b [5266/5426] UBSAN: run-time undefined behavior sanity checker
config: x86_64-randconfig-s5-12102221 (attached as .config)
reproduce:
git checkout 0dd08f12cafd7868be55bc10ebcd4ea13880860b
# save the attached .config to linux build tree
make ARCH=x86_64
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
arch/x86/kernel/cpu/mcheck/mce.c: In function 'do_machine_check':
>> arch/x86/kernel/cpu/mcheck/mce.c:884:5: warning: 'order' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (order == 1) {
^
arch/x86/kernel/cpu/mcheck/mce.c:984:6: note: 'order' was declared here
int order;
^
vim +/order +884 arch/x86/kernel/cpu/mcheck/mce.c
3c079792 Andi Kleen 2009-05-27 868 */
3c079792 Andi Kleen 2009-05-27 869 static int mce_end(int order)
3c079792 Andi Kleen 2009-05-27 870 {
3c079792 Andi Kleen 2009-05-27 871 int ret = -1;
84c2559d Borislav Petkov 2012-10-15 872 u64 timeout = (u64)mca_cfg.monarch_timeout * NSEC_PER_USEC;
3c079792 Andi Kleen 2009-05-27 873
3c079792 Andi Kleen 2009-05-27 874 if (!timeout)
3c079792 Andi Kleen 2009-05-27 875 goto reset;
3c079792 Andi Kleen 2009-05-27 876 if (order < 0)
3c079792 Andi Kleen 2009-05-27 877 goto reset;
3c079792 Andi Kleen 2009-05-27 878
3c079792 Andi Kleen 2009-05-27 879 /*
3c079792 Andi Kleen 2009-05-27 880 * Allow others to run.
3c079792 Andi Kleen 2009-05-27 881 */
3c079792 Andi Kleen 2009-05-27 882 atomic_inc(&mce_executing);
3c079792 Andi Kleen 2009-05-27 883
3c079792 Andi Kleen 2009-05-27 @884 if (order == 1) {
3c079792 Andi Kleen 2009-05-27 885 /* CHECKME: Can this race with a parallel hotplug? */
3c079792 Andi Kleen 2009-05-27 886 int cpus = num_online_cpus();
3c079792 Andi Kleen 2009-05-27 887
3c079792 Andi Kleen 2009-05-27 888 /*
3c079792 Andi Kleen 2009-05-27 889 * Monarch: Wait for everyone to go through their scanning
3c079792 Andi Kleen 2009-05-27 890 * loops.
3c079792 Andi Kleen 2009-05-27 891 */
3c079792 Andi Kleen 2009-05-27 892 while (atomic_read(&mce_executing) <= cpus) {
:::::: The code at line 884 was first introduced by commit
:::::: 3c0797925f4ef9d55a32059d2af61a9c262e639d x86, mce: switch x86 machine check handler to Monarch election.
:::::: TO: Andi Kleen <andi@firstfloor.org>
:::::: CC: H. Peter Anvin <hpa@zytor.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22655 bytes --]
next reply other threads:[~2015-12-10 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 15:05 kbuild test robot [this message]
2015-12-10 16:02 ` Andrey Ryabinin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201512102333.nZemw8i3%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=aryabinin@virtuozzo.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox