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>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 16 Oct 2017 16:49:59 +0800
From:   kbuild test robot <lkp@...el.com>
To:     yuan linyu <cugyly@....com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        "David S . Miller" <davem@...emloft.net>,
        yuan linyu <Linyu.Yuan@...atel-sbell.com.cn>
Subject: Re: [PATCH net-next 1/2] net: move memcpy_to[from]_msg() from
 skbuff.h to socket.h

Hi yuan,

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/yuan-linyu/net-add-skb_memcpy_to-from-_msg/20171016-154618
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All error/warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/if.h:24:0,
                    from include/linux/inetdevice.h:7,
                    from net//ipv4/netfilter/ipt_MASQUERADE.c:13:
   include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:59:63: error: 'EFAULT' undeclared (first use in this function)
     return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
                                                                  ^
   include/linux/socket.h:59:63: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/socket.h: In function 'memcpy_to_msg':
   include/linux/socket.h:64:63: error: 'EFAULT' undeclared (first use in this function)
     return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT;
                                                                  ^
--
   In file included from include/uapi/linux/nfc.h:25:0,
                    from net/nfc/rawsock.c:25:
   include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:59:63: error: 'EFAULT' undeclared (first use in this function)
     return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
                                                                  ^
   include/linux/socket.h:59:63: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/socket.h: In function 'memcpy_to_msg':
   include/linux/socket.h:64:63: error: 'EFAULT' undeclared (first use in this function)
     return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT;
                                                                  ^
   In file included from include/uapi/linux/nfc.h:25:0,
                    from net/nfc/rawsock.c:25:
   include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:60:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +/EFAULT +59 include/linux/socket.h

    56	
    57	static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len)
    58	{
  > 59		return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
  > 60	}
    61	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ