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:   Wed, 19 Jan 2022 20:13:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jeremy Kerr <jk@...econstruct.com.au>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1d1df41c5a33359a00e919d54eaebfb789711fdc
commit: 99ce45d5e7dbde399997a630f45ac9f654fa4bcc mctp: Implement extended addressing
date:   3 months ago
config: mips-randconfig-r003-20220118 (https://download.01.org/0day-ci/archive/20220119/202201192005.O7wDT8RE-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5f782d25a742302d25ef3c8b84b54f7483c2deb9)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=99ce45d5e7dbde399997a630f45ac9f654fa4bcc
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 99ce45d5e7dbde399997a630f45ac9f654fa4bcc
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/cxl/ mm// net/

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

>> net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma
           if (get_user(len, optlen))
               ^
   arch/mips/include/asm/uaccess.h:138:33: note: expanded from macro 'get_user'
           access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) :           \
                                          ^
   arch/mips/include/asm/uaccess.h:224:23: note: expanded from macro '__get_user'
                   __get_data_asm((x), user_lw, __gu_ptr);                 \
                                       ^
   <inline asm>:3:10: note: instantiated into assembly here
           .set    eva
                      ^
>> net/mctp/af_mctp.c:259:6: error: invalid operand for instruction
           if (get_user(len, optlen))
               ^
   arch/mips/include/asm/uaccess.h:138:33: note: expanded from macro 'get_user'
           access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) :           \
                                          ^
   arch/mips/include/asm/uaccess.h:224:23: note: expanded from macro '__get_user'
                   __get_data_asm((x), user_lw, __gu_ptr);                 \
                                       ^
   <inline asm>:4:10: note: instantiated into assembly here
           lwe $2, 0($20)
                   ^
   2 errors generated.


vim +259 net/mctp/af_mctp.c

   249	
   250	static int mctp_getsockopt(struct socket *sock, int level, int optname,
   251				   char __user *optval, int __user *optlen)
   252	{
   253		struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
   254		int len, val;
   255	
   256		if (level != SOL_MCTP)
   257			return -EINVAL;
   258	
 > 259		if (get_user(len, optlen))
   260			return -EFAULT;
   261	
   262		if (optname == MCTP_OPT_ADDR_EXT) {
   263			if (len != sizeof(int))
   264				return -EINVAL;
   265			val = !!msk->addr_ext;
   266			if (copy_to_user(optval, &val, len))
   267				return -EFAULT;
   268			return 0;
   269		}
   270	
   271		return -EINVAL;
   272	}
   273	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists