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]
Date:   Thu, 22 Sep 2022 03:02:57 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mark:arm64/insn/rework-redo 12/17] arch/arm64/lib/insn.c:371:17:
 error: 'sf' undeclared; did you mean 's8'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/insn/rework-redo
head:   7fc1b37daa427b06da2f430a81e8c7a5e5f17807
commit: 15d3effcbc2d0b835262309a81a285c5dcb334cc [12/17] WIP: arm64: insn: use the new immediate helpers
config: arm64-allnoconfig
compiler: aarch64-linux-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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=15d3effcbc2d0b835262309a81a285c5dcb334cc
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/insn/rework-redo
        git checkout 15d3effcbc2d0b835262309a81a285c5dcb334cc
        # 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=arm64 SHELL=/bin/bash

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 >>):

   arch/arm64/lib/insn.c: In function 'aarch64_insn_gen_comp_branch_imm':
>> arch/arm64/lib/insn.c:371:17: error: 'sf' undeclared (first use in this function); did you mean 's8'?
     371 |                 sf = true;
         |                 ^~
         |                 s8
   arch/arm64/lib/insn.c:371:17: note: each undeclared identifier is reported only once for each function it appears in


vim +371 arch/arm64/lib/insn.c

   342	
   343	u32 aarch64_insn_gen_comp_branch_imm(unsigned long pc, unsigned long addr,
   344					     enum aarch64_insn_register reg,
   345					     enum aarch64_insn_variant variant,
   346					     enum aarch64_insn_branch_type type)
   347	{
   348		u32 insn;
   349		long offset;
   350	
   351		offset = label_imm_common(pc, addr, SZ_1M);
   352		if (offset >= SZ_1M)
   353			return AARCH64_BREAK_FAULT;
   354	
   355		switch (type) {
   356		case AARCH64_INSN_BRANCH_COMP_ZERO:
   357			insn = aarch64_insn_get_cbz_value();
   358			break;
   359		case AARCH64_INSN_BRANCH_COMP_NONZERO:
   360			insn = aarch64_insn_get_cbnz_value();
   361			break;
   362		default:
   363			pr_err("%s: unknown branch encoding %d\n", __func__, type);
   364			return AARCH64_BREAK_FAULT;
   365		}
   366	
   367		switch (variant) {
   368		case AARCH64_INSN_VARIANT_32BIT:
   369			break;
   370		case AARCH64_INSN_VARIANT_64BIT:
 > 371			sf = true;
   372			break;
   373		default:
   374			pr_err("%s: unknown variant encoding %d\n", __func__, variant);
   375			return AARCH64_BREAK_FAULT;
   376		}
   377	
   378		insn = aarch64_insn_encode_register(AARCH64_INSN_REGTYPE_RT, insn, reg);
   379	
   380		return aarch64_insn_encode_immediate(AARCH64_INSN_IMM_19, insn,
   381						     offset >> 2);
   382	}
   383	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ