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]
Message-ID: <202209121904.dOfF1woq-lkp@intel.com>
Date:   Mon, 12 Sep 2022 19:49:49 +0800
From:   kernel test robot <lkp@...el.com>
To:     Archie Pusaka <apusaka@...omium.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Shyh-In Hwang <josephsih@...omium.org>,
        Sonny Sasaka <sonnysasaka@...omium.org>
Subject: [jsarha:topic/chromeos-4.19-s0ix 9741/9999]
 net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrc
 sstatus,a5'

tree:   https://github.com/jsarha/linux topic/chromeos-4.19-s0ix
head:   430bdaa0a8c38697780f45a148964d71951df11f
commit: 9b30b4dd29c7f6b53f53076d7339e112c308f05e [9741/9999] CHROMIUM: bluetooth: enable turn on/off debug logs at runtime
config: riscv-buildonly-randconfig-r003-20220911 (https://download.01.org/0day-ci/archive/20220912/202209121904.dOfF1woq-lkp@intel.com/config)
compiler: riscv64-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://github.com/jsarha/linux/commit/9b30b4dd29c7f6b53f53076d7339e112c308f05e
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/chromeos-4.19-s0ix
        git checkout 9b30b4dd29c7f6b53f53076d7339e112c308f05e
        # 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=riscv SHELL=/bin/bash M=net/bluetooth

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

   net/bluetooth/af_bluetooth.c: Assembler messages:
   net/bluetooth/af_bluetooth.c:540: Error: unrecognized opcode `csrs sstatus,a5'
>> net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrc sstatus,a5'
   net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrs sstatus,a5'


vim +551 net/bluetooth/af_bluetooth.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  522  
3241ad820dbb17 Marcel Holtmann 2008-07-14  523  int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
3241ad820dbb17 Marcel Holtmann 2008-07-14  524  {
3241ad820dbb17 Marcel Holtmann 2008-07-14  525  	struct sock *sk = sock->sk;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  526  	struct sk_buff *skb;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  527  	long amount;
3241ad820dbb17 Marcel Holtmann 2008-07-14  528  	int err;
3241ad820dbb17 Marcel Holtmann 2008-07-14  529  
3241ad820dbb17 Marcel Holtmann 2008-07-14  530  	BT_DBG("sk %p cmd %x arg %lx", sk, cmd, arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  531  
3241ad820dbb17 Marcel Holtmann 2008-07-14  532  	switch (cmd) {
43cbeee9f9b263 Marcel Holtmann 2008-07-14  533  	case TIOCOUTQ:
43cbeee9f9b263 Marcel Holtmann 2008-07-14  534  		if (sk->sk_state == BT_LISTEN)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  535  			return -EINVAL;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  536  
31e6d363abcd0d Eric Dumazet    2009-06-17  537  		amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  538  		if (amount < 0)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  539  			amount = 0;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  540  		err = put_user(amount, (int __user *) arg);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  541  		break;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  542  
43cbeee9f9b263 Marcel Holtmann 2008-07-14  543  	case TIOCINQ:
43cbeee9f9b263 Marcel Holtmann 2008-07-14  544  		if (sk->sk_state == BT_LISTEN)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  545  			return -EINVAL;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  546  
43cbeee9f9b263 Marcel Holtmann 2008-07-14  547  		lock_sock(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  548  		skb = skb_peek(&sk->sk_receive_queue);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  549  		amount = skb ? skb->len : 0;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  550  		release_sock(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14 @551  		err = put_user(amount, (int __user *) arg);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  552  		break;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  553  
3241ad820dbb17 Marcel Holtmann 2008-07-14  554  	case SIOCGSTAMP:
3241ad820dbb17 Marcel Holtmann 2008-07-14  555  		err = sock_get_timestamp(sk, (struct timeval __user *) arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  556  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  557  
3241ad820dbb17 Marcel Holtmann 2008-07-14  558  	case SIOCGSTAMPNS:
3241ad820dbb17 Marcel Holtmann 2008-07-14  559  		err = sock_get_timestampns(sk, (struct timespec __user *) arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  560  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  561  
3241ad820dbb17 Marcel Holtmann 2008-07-14  562  	default:
3241ad820dbb17 Marcel Holtmann 2008-07-14  563  		err = -ENOIOCTLCMD;
3241ad820dbb17 Marcel Holtmann 2008-07-14  564  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  565  	}
3241ad820dbb17 Marcel Holtmann 2008-07-14  566  
3241ad820dbb17 Marcel Holtmann 2008-07-14  567  	return err;
3241ad820dbb17 Marcel Holtmann 2008-07-14  568  }
3241ad820dbb17 Marcel Holtmann 2008-07-14  569  EXPORT_SYMBOL(bt_sock_ioctl);
3241ad820dbb17 Marcel Holtmann 2008-07-14  570  

:::::: The code at line 551 was first introduced by commit
:::::: 43cbeee9f9b26300275e4e2d55ed1607f8c5f760 [Bluetooth] Add support for TIOCOUTQ and TIOCINQ ioctls

:::::: TO: Marcel Holtmann <marcel@...tmann.org>
:::::: CC: Marcel Holtmann <marcel@...tmann.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ