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-next>] [day] [month] [year] [list]
Date:   Sun, 17 Jul 2022 10:04:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: arch/arm/include/asm/system_misc.h:29:9: error: implicit declaration
 of function 'preempt_enable_no_resched_notrace'; did you mean
 'preempt_enable_notrace'?

tree:   https://github.com/intel-lab-lkp/linux/commits/UPDATE-20220717-000210/Tetsuo-Handa/ARM-spectre-v2-fix-smp_processor_id-warning/20220622-145116
head:   7c8920bd674d371b04dc1ee0e0c6b8af89e55987
commit: 7c8920bd674d371b04dc1ee0e0c6b8af89e55987 ARM: spectre-v2: fix smp_processor_id() warning
date:   10 hours ago
config: arm-omap2plus_defconfig (https://download.01.org/0day-ci/archive/20220717/202207170947.p1AZIs0b-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/7c8920bd674d371b04dc1ee0e0c6b8af89e55987
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review UPDATE-20220717-000210/Tetsuo-Handa/ARM-spectre-v2-fix-smp_processor_id-warning/20220622-145116
        git checkout 7c8920bd674d371b04dc1ee0e0c6b8af89e55987
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/soc/ti/

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

All errors (new ones prefixed by >>):

   In file included from drivers/soc/ti/pm33xx.c:33:
   arch/arm/include/asm/system_misc.h: In function 'harden_branch_predictor':
>> arch/arm/include/asm/system_misc.h:29:9: error: implicit declaration of function 'preempt_enable_no_resched_notrace'; did you mean 'preempt_enable_notrace'? [-Werror=implicit-function-declaration]
      29 |         preempt_enable_no_resched_notrace();
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         preempt_enable_notrace
   cc1: some warnings being treated as errors


vim +29 arch/arm/include/asm/system_misc.h

    17	
    18	#ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
    19	typedef void (*harden_branch_predictor_fn_t)(void);
    20	DECLARE_PER_CPU(harden_branch_predictor_fn_t, harden_branch_predictor_fn);
    21	static inline void harden_branch_predictor(void)
    22	{
    23		harden_branch_predictor_fn_t fn;
    24	
    25		preempt_disable_notrace();
    26		fn = per_cpu(harden_branch_predictor_fn, raw_smp_processor_id());
    27		if (fn)
    28			fn();
  > 29		preempt_enable_no_resched_notrace();
    30	}
    31	#else
    32	#define harden_branch_predictor() do { } while (0)
    33	#endif
    34	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ