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>] [day] [month] [year] [list]
Message-ID: <201906191601.2nPsHl7J%lkp@intel.com>
Date:   Wed, 19 Jun 2019 16:22:02 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.x86/ipi 3/11] arch/x86//kernel/nmi.c:515:32: note: in
 expansion of macro 'this_cpu_read'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/ipi
head:   0663387727c00bb25ce1e76f30deb6b193f591f8
commit: 8adde844ea4f8d0d147e0ad6c675970a58550bae [3/11] x86/hotplug: Silence APIC and NMI when CPU is dead
config: i386-randconfig-x009-201924 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 8adde844ea4f8d0d147e0ad6c675970a58550bae
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/percpu.h:7:0,
                    from arch/x86/include/asm/percpu.h:544,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from arch/x86//kernel/nmi.c:14:
   arch/x86//kernel/nmi.c: In function 'do_nmi':
   arch/x86//kernel/nmi.c:515:46: error: 'cpu_is_dead' undeclared (first use in this function); did you mean 'cpuid_eax'?
     if (IS_ENABLED(CONFIG_SMP) && this_cpu_read(cpu_is_dead))
                                                 ^
   include/linux/percpu-defs.h:319:9: note: in definition of macro '__pcpu_size_call_return'
     typeof(variable) pscr_ret__;     \
            ^~~~~~~~
>> arch/x86//kernel/nmi.c:515:32: note: in expansion of macro 'this_cpu_read'
     if (IS_ENABLED(CONFIG_SMP) && this_cpu_read(cpu_is_dead))
                                   ^~~~~~~~~~~~~
   arch/x86//kernel/nmi.c:515:46: note: each undeclared identifier is reported only once for each function it appears in
     if (IS_ENABLED(CONFIG_SMP) && this_cpu_read(cpu_is_dead))
                                                 ^
   include/linux/percpu-defs.h:319:9: note: in definition of macro '__pcpu_size_call_return'
     typeof(variable) pscr_ret__;     \
            ^~~~~~~~
>> arch/x86//kernel/nmi.c:515:32: note: in expansion of macro 'this_cpu_read'
     if (IS_ENABLED(CONFIG_SMP) && this_cpu_read(cpu_is_dead))
                                   ^~~~~~~~~~~~~

vim +/this_cpu_read +515 arch/x86//kernel/nmi.c

   511	
   512	dotraplinkage notrace void
   513	do_nmi(struct pt_regs *regs, long error_code)
   514	{
 > 515		if (IS_ENABLED(CONFIG_SMP) && this_cpu_read(cpu_is_dead))
   516			return;
   517	
   518		if (this_cpu_read(nmi_state) != NMI_NOT_RUNNING) {
   519			this_cpu_write(nmi_state, NMI_LATCHED);
   520			return;
   521		}
   522		this_cpu_write(nmi_state, NMI_EXECUTING);
   523		this_cpu_write(nmi_cr2, read_cr2());
   524	nmi_restart:
   525	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (29003 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ