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]
Message-ID: <202203292206.ICsY2RKX-lkp@intel.com>
Date:   Tue, 29 Mar 2022 22:23:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Borislav Petkov <bp@...e.de>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>
Subject: [ammarfaizi2-block:bp/bp/rc0+ 6/11]
 arch/x86/kernel/cpu/common.c:1415:10: error: 'x86_cap_flags' undeclared; did
 you mean 'x86_cap_flag'?

tree:   https://github.com/ammarfaizi2/linux-block bp/bp/rc0+
head:   2d784fc7295963360594f3de64446aa32841c694
commit: c3b9dcd01973935375ca9d0c67044bea7333d4ef [6/11] x86/cpu: Allow feature bit names from /proc/cpuinfo in clearcpuid=
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220329/202203292206.ICsY2RKX-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/c3b9dcd01973935375ca9d0c67044bea7333d4ef
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block bp/bp/rc0+
        git checkout c3b9dcd01973935375ca9d0c67044bea7333d4ef
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/

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

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpu/common.c: In function 'cpu_parse_early_param':
>> arch/x86/kernel/cpu/common.c:1415:10: error: 'x86_cap_flags' undeclared (first use in this function); did you mean 'x86_cap_flag'?
    1415 |     if (!x86_cap_flags[bit])
         |          ^~~~~~~~~~~~~
         |          x86_cap_flag
   arch/x86/kernel/cpu/common.c:1415:10: note: each undeclared identifier is reported only once for each function it appears in


vim +1415 arch/x86/kernel/cpu/common.c

  1385	
  1386		if (cmdline_find_option_bool(boot_command_line, "noxsave"))
  1387			setup_clear_cpu_cap(X86_FEATURE_XSAVE);
  1388	
  1389		if (cmdline_find_option_bool(boot_command_line, "noxsaveopt"))
  1390			setup_clear_cpu_cap(X86_FEATURE_XSAVEOPT);
  1391	
  1392		if (cmdline_find_option_bool(boot_command_line, "noxsaves"))
  1393			setup_clear_cpu_cap(X86_FEATURE_XSAVES);
  1394	
  1395		arglen = cmdline_find_option(boot_command_line, "clearcpuid", arg, sizeof(arg));
  1396		if (arglen <= 0)
  1397			return;
  1398	
  1399		pr_info("Clearing CPUID bits:");
  1400	
  1401		while (argptr) {
  1402			bool found __maybe_unused = false;
  1403			unsigned int bit;
  1404	
  1405			opt = strsep(&argptr, ",");
  1406	
  1407			/*
  1408			 * Handle naked numbers first for feature flags which don't
  1409			 * have names.
  1410			 */
  1411			if (!kstrtouint(opt, 10, &bit)) {
  1412				if (bit < NCAPINTS * 32) {
  1413	
  1414					/* empty-string, i.e., ""-defined feature flags */
> 1415					if (!x86_cap_flags[bit])
  1416						pr_cont(" " X86_CAP_FMT_NUM, x86_cap_flag_num(bit));
  1417					else
  1418						pr_cont(" " X86_CAP_FMT, x86_cap_flag(bit));
  1419	
  1420					setup_clear_cpu_cap(bit);
  1421					taint++;
  1422				}
  1423				/*
  1424				 * The assumption is that there are no feature names with only
  1425				 * numbers in the name thus go to the next argument.
  1426				 */
  1427				continue;
  1428			}
  1429	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ