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: <202011092326.yYmq1Awq-lkp@intel.com>
Date:   Mon, 9 Nov 2020 23:04:48 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Subject: net/dccp/proto.c:620:13: sparse: sparse: incorrect type in argument
 1 (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f8394f232b1eab649ce2df5c5f15b0e528c92091
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   2 months ago
config: sh-randconfig-s032-20201103 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-76-gf680124b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh 

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


"sparse warnings: (new ones prefixed by >>)"
   net/dccp/proto.c:535:52: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __be32 const [usertype] service @@     got int [addressable] val @@
   net/dccp/proto.c:535:52: sparse:     expected restricted __be32 const [usertype] service
   net/dccp/proto.c:535:52: sparse:     got int [addressable] val
   net/dccp/proto.c:620:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/dccp/proto.c:620:13: sparse:     expected int const *__gu_addr
   net/dccp/proto.c:620:13: sparse:     got int [noderef] __user *optlen
>> net/dccp/proto.c:620:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/dccp/proto.c:620:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/dccp/proto.c:620:13: sparse:     got int const *__gu_addr
   net/dccp/proto.c:718:57: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __be32 [usertype] param @@     got int cmsg_type @@
   net/dccp/proto.c:718:57: sparse:     expected restricted __be32 [usertype] param
   net/dccp/proto.c:718:57: sparse:     got int cmsg_type
--
   drivers/net/tun.c:3227:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/net/tun.c:3227:21: sparse:     expected int const *__gu_addr
   drivers/net/tun.c:3227:21: sparse:     got int [noderef] __user *
>> drivers/net/tun.c:3227:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> drivers/net/tun.c:3227:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/net/tun.c:3227:21: sparse:     got int const *__gu_addr
--
   net/nfc/llcp_sock.c:308:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/nfc/llcp_sock.c:308:13: sparse:     expected int const *__gu_addr
   net/nfc/llcp_sock.c:308:13: sparse:     got int [noderef] __user *optlen
>> net/nfc/llcp_sock.c:308:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/nfc/llcp_sock.c:308:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/nfc/llcp_sock.c:308:13: sparse:     got int const *__gu_addr
--
   drivers/usb/gadget/function/rndis.c:1126:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user *buffer @@
   drivers/usb/gadget/function/rndis.c:1126:21: sparse:     expected char const *__gu_addr
   drivers/usb/gadget/function/rndis.c:1126:21: sparse:     got char const [noderef] __user *buffer
>> drivers/usb/gadget/function/rndis.c:1126:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
>> drivers/usb/gadget/function/rndis.c:1126:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/usb/gadget/function/rndis.c:1126:21: sparse:     got char const *__gu_addr
--
   net/atm/common.c:795:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/atm/common.c:795:13: sparse:     expected int const *__gu_addr
   net/atm/common.c:795:13: sparse:     got int [noderef] __user *optlen
>> net/atm/common.c:795:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/atm/common.c:795:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/atm/common.c:795:13: sparse:     got int const *__gu_addr
--
   net/atm/resources.c:203:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *iobuf_len @@
   net/atm/resources.c:203:13: sparse:     expected int const *__gu_addr
   net/atm/resources.c:203:13: sparse:     got int [noderef] __user *iobuf_len
>> net/atm/resources.c:203:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/atm/resources.c:203:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/atm/resources.c:203:13: sparse:     got int const *__gu_addr
   net/atm/resources.c:236:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *sioc_len @@
   net/atm/resources.c:236:13: sparse:     expected int const *__gu_addr
   net/atm/resources.c:236:13: sparse:     got int [noderef] __user *sioc_len
   net/atm/resources.c:236:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   net/atm/resources.c:236:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/atm/resources.c:236:13: sparse:     got int const *__gu_addr
--
   drivers/net/slip/slip.c:458:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/net/slip/slip.c:458:14: sparse:    void [noderef] __rcu *
   drivers/net/slip/slip.c:458:14: sparse:    void *
   drivers/net/slip/slip.c:892:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/net/slip/slip.c:892:9: sparse:    void [noderef] __rcu *
   drivers/net/slip/slip.c:892:9: sparse:    void *
   drivers/net/slip/slip.c:1099:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *p @@
>> drivers/net/slip/slip.c:1099:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
--
   drivers/hwmon/w83793.c:1372:37: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   drivers/hwmon/w83793.c:1372:37: sparse:     expected char const *__gu_addr
   drivers/hwmon/w83793.c:1372:37: sparse:     got char const [noderef] __user *
>> drivers/hwmon/w83793.c:1372:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
>> drivers/hwmon/w83793.c:1372:37: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/hwmon/w83793.c:1372:37: sparse:     got char const *__gu_addr
   drivers/hwmon/w83793.c:1425:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/hwmon/w83793.c:1425:21: sparse:     expected int const *__gu_addr
   drivers/hwmon/w83793.c:1425:21: sparse:     got int [noderef] __user *
>> drivers/hwmon/w83793.c:1425:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/hwmon/w83793.c:1425:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/hwmon/w83793.c:1425:21: sparse:     got int const *__gu_addr
   drivers/hwmon/w83793.c:1435:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user * @@
   drivers/hwmon/w83793.c:1435:21: sparse:     expected int const *__gu_addr
   drivers/hwmon/w83793.c:1435:21: sparse:     got int [noderef] __user *
   drivers/hwmon/w83793.c:1435:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
   drivers/hwmon/w83793.c:1435:21: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/hwmon/w83793.c:1435:21: sparse:     got int const *__gu_addr
--
   net/sctp/socket.c: note: in included file (through include/net/sctp/sctp.h):
   include/net/sctp/structs.h:329:41: sparse: sparse: array of flexible structures
   net/sctp/socket.c:7814:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/sctp/socket.c:7814:13: sparse:     expected int const *__gu_addr
   net/sctp/socket.c:7814:13: sparse:     got int [noderef] __user *optlen
>> net/sctp/socket.c:7814:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/sctp/socket.c:7814:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/sctp/socket.c:7814:13: sparse:     got int const *__gu_addr
   net/sctp/socket.c:8210:20: sparse: sparse: context imbalance in 'sctp_get_port_local' - unexpected unlock
--
   drivers/media/rc/lirc_dev.c:378:23: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user *argp @@
   drivers/media/rc/lirc_dev.c:378:23: sparse:     expected unsigned int const *__gu_addr
   drivers/media/rc/lirc_dev.c:378:23: sparse:     got unsigned int [noderef] [usertype] __user *argp
>> drivers/media/rc/lirc_dev.c:378:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
>> drivers/media/rc/lirc_dev.c:378:23: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/media/rc/lirc_dev.c:378:23: sparse:     got unsigned int const *__gu_addr
--
   drivers/usb/class/usbtmc.c:584:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user *arg @@
   drivers/usb/class/usbtmc.c:584:13: sparse:     expected unsigned int const *__gu_addr
   drivers/usb/class/usbtmc.c:584:13: sparse:     got unsigned int [noderef] [usertype] __user *arg
>> drivers/usb/class/usbtmc.c:584:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
>> drivers/usb/class/usbtmc.c:584:13: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/usb/class/usbtmc.c:584:13: sparse:     got unsigned int const *__gu_addr
   drivers/usb/class/usbtmc.c:1963:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int const *__gu_addr @@     got unsigned int [noderef] [usertype] __user * @@
   drivers/usb/class/usbtmc.c:1963:13: sparse:     expected unsigned int const *__gu_addr
   drivers/usb/class/usbtmc.c:1963:13: sparse:     got unsigned int [noderef] [usertype] __user *
   drivers/usb/class/usbtmc.c:1963:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned int const *__gu_addr @@
   drivers/usb/class/usbtmc.c:1963:13: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/usb/class/usbtmc.c:1963:13: sparse:     got unsigned int const *__gu_addr
   drivers/usb/class/usbtmc.c:2143:26: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned char const *__gu_addr @@     got unsigned char [noderef] __user * @@
   drivers/usb/class/usbtmc.c:2143:26: sparse:     expected unsigned char const *__gu_addr
   drivers/usb/class/usbtmc.c:2143:26: sparse:     got unsigned char [noderef] __user *
>> drivers/usb/class/usbtmc.c:2143:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got unsigned char const *__gu_addr @@
   drivers/usb/class/usbtmc.c:2143:26: sparse:     expected void const volatile [noderef] __user *ptr
   drivers/usb/class/usbtmc.c:2143:26: sparse:     got unsigned char const *__gu_addr
--
   net/core/pktgen.c:720:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   net/core/pktgen.c:720:21: sparse:     expected char const *__gu_addr
   net/core/pktgen.c:720:21: sparse:     got char const [noderef] __user *
>> net/core/pktgen.c:720:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
>> net/core/pktgen.c:720:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/core/pktgen.c:720:21: sparse:     got char const *__gu_addr
   net/core/pktgen.c:738:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   net/core/pktgen.c:738:21: sparse:     expected char const *__gu_addr
   net/core/pktgen.c:738:21: sparse:     got char const [noderef] __user *
   net/core/pktgen.c:738:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   net/core/pktgen.c:738:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/core/pktgen.c:738:21: sparse:     got char const *__gu_addr
   net/core/pktgen.c:764:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   net/core/pktgen.c:764:21: sparse:     expected char const *__gu_addr
   net/core/pktgen.c:764:21: sparse:     got char const [noderef] __user *
   net/core/pktgen.c:764:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   net/core/pktgen.c:764:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/core/pktgen.c:764:21: sparse:     got char const *__gu_addr
   net/core/pktgen.c:781:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   net/core/pktgen.c:781:21: sparse:     expected char const *__gu_addr
   net/core/pktgen.c:781:21: sparse:     got char const [noderef] __user *
   net/core/pktgen.c:781:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   net/core/pktgen.c:781:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/core/pktgen.c:781:21: sparse:     got char const *__gu_addr
   net/core/pktgen.c:815:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected char const *__gu_addr @@     got char const [noderef] __user * @@
   net/core/pktgen.c:815:21: sparse:     expected char const *__gu_addr
   net/core/pktgen.c:815:21: sparse:     got char const [noderef] __user *
   net/core/pktgen.c:815:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got char const *__gu_addr @@
   net/core/pktgen.c:815:21: sparse:     expected void const volatile [noderef] __user *ptr
   net/core/pktgen.c:815:21: sparse:     got char const *__gu_addr
--
   net/ipv6/ip6mr.c:1837:13: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected int const *__gu_addr @@     got int [noderef] __user *optlen @@
   net/ipv6/ip6mr.c:1837:13: sparse:     expected int const *__gu_addr
   net/ipv6/ip6mr.c:1837:13: sparse:     got int [noderef] __user *optlen
>> net/ipv6/ip6mr.c:1837:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user *ptr @@     got int const *__gu_addr @@
>> net/ipv6/ip6mr.c:1837:13: sparse:     expected void const volatile [noderef] __user *ptr
   net/ipv6/ip6mr.c:1837:13: sparse:     got int const *__gu_addr
   net/ipv6/ip6mr.c:405:13: sparse: sparse: context imbalance in 'ip6mr_vif_seq_start' - different lock contexts for basic block
   net/ipv6/ip6mr.c: note: in included file (through include/linux/mroute6.h):
   include/linux/mroute_base.h:427:31: sparse: sparse: context imbalance in 'mr_mfc_seq_stop' - unexpected unlock

vim +620 net/dccp/proto.c

67e6b629212fa9f Arnaldo Carvalho de Melo 2005-09-16  613  
3fdadf7d27e3fbc Dmitry Mishin            2006-03-20  614  static int do_dccp_getsockopt(struct sock *sk, int level, int optname,
a1d3a35518779df Arnaldo Carvalho de Melo 2005-08-13  615  		    char __user *optval, int __user *optlen)
7c657876b63cb1d Arnaldo Carvalho de Melo 2005-08-09  616  {
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  617  	struct dccp_sock *dp;
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  618  	int val, len;
7c657876b63cb1d Arnaldo Carvalho de Melo 2005-08-09  619  
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28 @620  	if (get_user(len, optlen))
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  621  		return -EFAULT;
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  622  
39ebc0276bada8b Arnaldo Carvalho de Melo 2007-03-28  623  	if (len < (int)sizeof(int))
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  624  		return -EINVAL;
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  625  
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  626  	dp = dccp_sk(sk);
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  627  
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  628  	switch (optname) {
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  629  	case DCCP_SOCKOPT_PACKET_SIZE:
5aed324369c94a2 Gerrit Renker            2006-11-28  630  		DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n");
841bac1d607d8bf Arnaldo Carvalho de Melo 2006-11-28  631  		return 0;
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  632  	case DCCP_SOCKOPT_SERVICE:
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  633  		return dccp_getsockopt_service(sk, len,
60fe62e789076ae Andrea Bittau            2006-03-20  634  					       (__be32 __user *)optval, optlen);
7c559a9e44ee61f Gerrit Renker            2007-10-04  635  	case DCCP_SOCKOPT_GET_CUR_MPS:
7c559a9e44ee61f Gerrit Renker            2007-10-04  636  		val = dp->dccps_mss_cache;
7c559a9e44ee61f Gerrit Renker            2007-10-04  637  		break;
d90ebcbfa7f5a8b Gerrit Renker            2008-11-12  638  	case DCCP_SOCKOPT_AVAILABLE_CCIDS:
d90ebcbfa7f5a8b Gerrit Renker            2008-11-12  639  		return ccid_getsockopt_builtin_ccids(sk, len, optval, optlen);
71c262a3dd42dea Gerrit Renker            2008-11-23  640  	case DCCP_SOCKOPT_TX_CCID:
71c262a3dd42dea Gerrit Renker            2008-11-23  641  		val = ccid_get_current_tx_ccid(dp);
71c262a3dd42dea Gerrit Renker            2008-11-23  642  		if (val < 0)
71c262a3dd42dea Gerrit Renker            2008-11-23  643  			return -ENOPROTOOPT;
71c262a3dd42dea Gerrit Renker            2008-11-23  644  		break;
71c262a3dd42dea Gerrit Renker            2008-11-23  645  	case DCCP_SOCKOPT_RX_CCID:
71c262a3dd42dea Gerrit Renker            2008-11-23  646  		val = ccid_get_current_rx_ccid(dp);
71c262a3dd42dea Gerrit Renker            2008-11-23  647  		if (val < 0)
71c262a3dd42dea Gerrit Renker            2008-11-23  648  			return -ENOPROTOOPT;
71c262a3dd42dea Gerrit Renker            2008-11-23  649  		break;
b8599d20708fa3b Gerrit Renker            2007-12-13  650  	case DCCP_SOCKOPT_SERVER_TIMEWAIT:
b8599d20708fa3b Gerrit Renker            2007-12-13  651  		val = dp->dccps_server_timewait;
b8599d20708fa3b Gerrit Renker            2007-12-13  652  		break;
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  653  	case DCCP_SOCKOPT_SEND_CSCOV:
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  654  		val = dp->dccps_pcslen;
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  655  		break;
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  656  	case DCCP_SOCKOPT_RECV_CSCOV:
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  657  		val = dp->dccps_pcrlen;
6f4e5fff1e4d467 Gerrit Renker            2006-11-10  658  		break;
871a2c16c21b988 Tomasz Grobelny          2010-12-04  659  	case DCCP_SOCKOPT_QPOLICY_ID:
871a2c16c21b988 Tomasz Grobelny          2010-12-04  660  		val = dp->dccps_qpolicy;
871a2c16c21b988 Tomasz Grobelny          2010-12-04  661  		break;
871a2c16c21b988 Tomasz Grobelny          2010-12-04  662  	case DCCP_SOCKOPT_QPOLICY_TXQLEN:
871a2c16c21b988 Tomasz Grobelny          2010-12-04  663  		val = dp->dccps_tx_qlen;
871a2c16c21b988 Tomasz Grobelny          2010-12-04  664  		break;
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  665  	case 128 ... 191:
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  666  		return ccid_hc_rx_getsockopt(dp->dccps_hc_rx_ccid, sk, optname,
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  667  					     len, (u32 __user *)optval, optlen);
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  668  	case 192 ... 255:
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  669  		return ccid_hc_tx_getsockopt(dp->dccps_hc_tx_ccid, sk, optname,
88f964db6ef7289 Arnaldo Carvalho de Melo 2005-09-18  670  					     len, (u32 __user *)optval, optlen);
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  671  	default:
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  672  		return -ENOPROTOOPT;
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  673  	}
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  674  
7913350663e2756 Gerrit Renker            2007-12-13  675  	len = sizeof(val);
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  676  	if (put_user(len, optlen) || copy_to_user(optval, &val, len))
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  677  		return -EFAULT;
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  678  
a84ffe430342db6 Arnaldo Carvalho de Melo 2005-08-28  679  	return 0;
7c657876b63cb1d Arnaldo Carvalho de Melo 2005-08-09  680  }
7c657876b63cb1d Arnaldo Carvalho de Melo 2005-08-09  681  

:::::: The code at line 620 was first introduced by commit
:::::: a84ffe430342db6ee585a5038f3242a6b4112d69 [DCCP]: Introduce DCCP_SOCKOPT_PACKET_SIZE

:::::: TO: Arnaldo Carvalho de Melo <acme@...driva.com>
:::::: CC: David S. Miller <davem@...set.davemloft.net>

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

Download attachment ".config.gz" of type "application/gzip" (26992 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ