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:   Mon, 9 Nov 2020 14:52:27 +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/ipv6/ip6mr.c:1837: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/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
--
   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/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/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
--
   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/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
--
   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/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/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/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
--
   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 @@

vim +1837 net/ipv6/ip6mr.c

7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1800  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1801  /*
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1802   *	Getsock opt support for the multicast routing system.
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1803   */
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1804  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1805  int ip6_mroute_getsockopt(struct sock *sk, int optname, char __user *optval,
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1806  			  int __user *optlen)
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1807  {
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1808  	int olr;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1809  	int val;
8229efdaef1e791 Benjamin Thery    2008-12-10  1810  	struct net *net = sock_net(sk);
b70432f7319eb75 Yuval Mintz       2018-02-28  1811  	struct mr_table *mrt;
d1db275dd3f6e41 Patrick McHardy   2010-05-11  1812  
99253eb750fda6a Xin Long          2017-02-24  1813  	if (sk->sk_type != SOCK_RAW ||
99253eb750fda6a Xin Long          2017-02-24  1814  	    inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
99253eb750fda6a Xin Long          2017-02-24  1815  		return -EOPNOTSUPP;
99253eb750fda6a Xin Long          2017-02-24  1816  
d1db275dd3f6e41 Patrick McHardy   2010-05-11  1817  	mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT);
63159f29be1df7f Ian Morris        2015-03-29  1818  	if (!mrt)
d1db275dd3f6e41 Patrick McHardy   2010-05-11  1819  		return -ENOENT;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1820  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1821  	switch (optname) {
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1822  	case MRT6_VERSION:
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1823  		val = 0x0305;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1824  		break;
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1825  #ifdef CONFIG_IPV6_PIMSM_V2
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1826  	case MRT6_PIM:
6bd521433942d85 Patrick McHardy   2010-05-11  1827  		val = mrt->mroute_do_pim;
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1828  		break;
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1829  #endif
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1830  	case MRT6_ASSERT:
6bd521433942d85 Patrick McHardy   2010-05-11  1831  		val = mrt->mroute_do_assert;
14fb64e1f449ef6 YOSHIFUJI Hideaki 2008-04-03  1832  		break;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1833  	default:
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1834  		return -ENOPROTOOPT;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1835  	}
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1836  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03 @1837  	if (get_user(olr, optlen))
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1838  		return -EFAULT;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1839  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1840  	olr = min_t(int, olr, sizeof(int));
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1841  	if (olr < 0)
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1842  		return -EINVAL;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1843  
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1844  	if (put_user(olr, optlen))
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1845  		return -EFAULT;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1846  	if (copy_to_user(optval, &val, olr))
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1847  		return -EFAULT;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1848  	return 0;
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1849  }
7bc570c8b4f75dd YOSHIFUJI Hideaki 2008-04-03  1850  

:::::: The code at line 1837 was first introduced by commit
:::::: 7bc570c8b4f75ddb3fd5dbeb38127cdc4acbcc9c [IPV6] MROUTE: Support multicast forwarding.

:::::: TO: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
:::::: CC: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>

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