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: <201708170416.1xAg6Dkf%fengguang.wu@intel.com>
Date:   Thu, 17 Aug 2017 04:04:19 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     John Fastabend <john.fastabend@...il.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1065/1071] net//core/filter.c:1881:8: error:
 implicit declaration of function '__sock_map_lookup_elem'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   cf9d01405925e3f8144c99d7bf7b184449794066
commit: 174a79ff9515f400b9a6115643dafd62a635b7e6 [1065/1071] bpf: sockmap with sk redirect support
config: cris-etrax-100lx_v2_defconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 174a79ff9515f400b9a6115643dafd62a635b7e6
        # save the attached .config to linux build tree
        make.cross ARCH=cris 

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

   net//core/filter.c: In function 'do_sk_redirect_map':
>> net//core/filter.c:1881:8: error: implicit declaration of function '__sock_map_lookup_elem' [-Werror=implicit-function-declaration]
      sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
           ^~~~~~~~~~~~~~~~~~~~~~
>> net//core/filter.c:1881:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
         ^
   cc1: some warnings being treated as errors

vim +/__sock_map_lookup_elem +1881 net//core/filter.c

  1874	
  1875	struct sock *do_sk_redirect_map(void)
  1876	{
  1877		struct redirect_info *ri = this_cpu_ptr(&redirect_info);
  1878		struct sock *sk = NULL;
  1879	
  1880		if (ri->map) {
> 1881			sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
  1882	
  1883			ri->ifindex = 0;
  1884			ri->map = NULL;
  1885			/* we do not clear flags for future lookup */
  1886		}
  1887	
  1888		return sk;
  1889	}
  1890	

---
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" (8731 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ