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]
Date:   Thu, 18 May 2023 04:48:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Song Liu <song@...nel.org>, linux-kernel@...r.kernel.org
Cc:     oe-kbuild-all@...ts.linux.dev, kernel-team@...a.com,
        Song Liu <song@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH v3] watchdog: Allow nmi watchdog to use "ref-cycles" event

Hi Song,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v6.4-rc2 next-20230517]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Song-Liu/watchdog-Allow-nmi-watchdog-to-use-ref-cycles-event/20230518-015450
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20230517175105.1614575-1-song%40kernel.org
patch subject: [PATCH v3] watchdog: Allow nmi watchdog to use "ref-cycles" event
config: um-i386_defconfig
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/c119f335899443fe6ba4c91b295b469e2793712f
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Song-Liu/watchdog-Allow-nmi-watchdog-to-use-ref-cycles-event/20230518-015450
        git checkout c119f335899443fe6ba4c91b295b469e2793712f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=um SUBARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305180435.gh1msXbz-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: kernel/panic.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/cpu.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/workqueue.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/sched/core.o: in function `hardlockup_config_perf_event':
   kernel/sched/core.c:2148: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/sched/build_utility.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/printk/printk.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/time/timekeeping.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/time/timer_list.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/time/tick-common.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: kernel/time/tick-sched.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: mm/mm_init.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: mm/page_alloc.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: drivers/tty/sysrq.o: in function `hardlockup_config_perf_event':
>> include/linux/nmi.h:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here
   ld: lib/nmi_backtrace.o: in function `hardlockup_config_perf_event':
   lib/nmi_backtrace.c:112: multiple definition of `hardlockup_config_perf_event'; init/main.o:include/linux/nmi.h:112: first defined here


vim +112 include/linux/nmi.h

    96	
    97	#if defined(CONFIG_HARDLOCKUP_DETECTOR_PERF)
    98	extern void arch_touch_nmi_watchdog(void);
    99	extern void hardlockup_detector_perf_stop(void);
   100	extern void hardlockup_detector_perf_restart(void);
   101	extern void hardlockup_detector_perf_disable(void);
   102	extern void hardlockup_detector_perf_enable(void);
   103	extern void hardlockup_detector_perf_cleanup(void);
   104	extern int hardlockup_detector_perf_init(void);
   105	extern void hardlockup_config_perf_event(const char *str);
   106	#else
   107	static inline void hardlockup_detector_perf_stop(void) { }
   108	static inline void hardlockup_detector_perf_restart(void) { }
   109	static inline void hardlockup_detector_perf_disable(void) { }
   110	static inline void hardlockup_detector_perf_enable(void) { }
   111	static inline void hardlockup_detector_perf_cleanup(void) { }
 > 112	extern void hardlockup_config_perf_event(const char *str) { }
   113	# if !defined(CONFIG_HAVE_NMI_WATCHDOG)
   114	static inline int hardlockup_detector_perf_init(void) { return -ENODEV; }
   115	static inline void arch_touch_nmi_watchdog(void) {}
   116	# else
   117	static inline int hardlockup_detector_perf_init(void) { return 0; }
   118	# endif
   119	#endif
   120	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

View attachment "config" of type "text/plain" (42842 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ