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] [thread-next>] [day] [month] [year] [list]
Message-ID: <201701141417.rz8yuy5o%fengguang.wu@intel.com>
Date:   Sat, 14 Jan 2017 14:41:29 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Robert Shearman <rshearma@...cade.com>
Cc:     kbuild-all@...org, davem@...emloft.net, netdev@...r.kernel.org,
        roopa <roopa@...ulusnetworks.com>,
        David Ahern <dsa@...ulusnetworks.com>, ebiederm@...ssion.com,
        Robert Shearman <rshearma@...cade.com>
Subject: Re: [PATCH net-next 2/2] mpls: Packet stats

Hi Robert,

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

url:    https://github.com/0day-ci/linux/commits/Robert-Shearman/net-AF-specific-RTM_GETSTATS-attributes/20170114-095819
config: x86_64-randconfig-u0-01141334 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

   In file included from include/net/netns/mib.h:4:0,
                    from include/net/net_namespace.h:14,
                    from include/linux/netdevice.h:43,
                    from include/uapi/linux/if_arp.h:26,
                    from include/linux/if_arp.h:27,
                    from net/mpls/af_mpls.c:7:
   net/mpls/af_mpls.c: In function 'mpls_stats_inc_outucastpkts':
>> include/net/ipv6.h:163:35: error: 'struct netns_mib' has no member named 'ipv6_statistics'; did you mean 'ip_statistics'?
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
                                      ^
   include/net/snmp.h:145:15: note: in definition of macro 'SNMP_UPD_PO_STATS'
      __typeof__((mib->mibs) + 0) ptr = mib->mibs; \
                  ^~~
>> include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD'
      _DEVUPD(net, ipv6, , idev, field, val)
      ^~~~~~~
>> net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS'
       IP6_UPD_PO_STATS(dev_net(dev), in6dev,
       ^~~~~~~~~~~~~~~~
>> include/net/ipv6.h:163:35: error: 'struct netns_mib' has no member named 'ipv6_statistics'; did you mean 'ip_statistics'?
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
                                      ^
   include/net/snmp.h:145:37: note: in definition of macro 'SNMP_UPD_PO_STATS'
      __typeof__((mib->mibs) + 0) ptr = mib->mibs; \
                                        ^~~
>> include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD'
      _DEVUPD(net, ipv6, , idev, field, val)
      ^~~~~~~
>> net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS'
       IP6_UPD_PO_STATS(dev_net(dev), in6dev,
       ^~~~~~~~~~~~~~~~
   In file included from include/asm-generic/percpu.h:6:0,
                    from arch/x86/include/asm/percpu.h:542,
                    from arch/x86/include/asm/preempt.h:5,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mm_types.h:8,
                    from include/linux/kmemcheck.h:4,
                    from include/linux/skbuff.h:18,
                    from net/mpls/af_mpls.c:2:
>> include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector
      this_cpu_inc(ptr[basefield##PKTS]);  \
                      ^
   include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr'
     const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
                                                  ^~~
   include/linux/percpu-defs.h:496:33: note: in expansion of macro '__pcpu_size_call'
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add'
    #define this_cpu_inc(pcp)  this_cpu_add(pcp, 1)
                               ^~~~~~~~~~~~
   include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc'
      this_cpu_inc(ptr[basefield##PKTS]);  \
      ^~~~~~~~~~~~
>> include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS'
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
          ^~~~~~~~~~~~~~~~~
>> include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD'
      _DEVUPD(net, ipv6, , idev, field, val)
      ^~~~~~~
>> net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS'
       IP6_UPD_PO_STATS(dev_net(dev), in6dev,
       ^~~~~~~~~~~~~~~~
>> include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector
      this_cpu_inc(ptr[basefield##PKTS]);  \
                      ^
   include/linux/percpu-defs.h:363:16: note: in definition of macro '__pcpu_size_call'
     switch(sizeof(variable)) {     \
                   ^~~~~~~~
   include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add'
    #define this_cpu_inc(pcp)  this_cpu_add(pcp, 1)
                               ^~~~~~~~~~~~
   include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc'
      this_cpu_inc(ptr[basefield##PKTS]);  \
      ^~~~~~~~~~~~
>> include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS'
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
          ^~~~~~~~~~~~~~~~~
>> include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD'
      _DEVUPD(net, ipv6, , idev, field, val)
      ^~~~~~~
>> net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS'
       IP6_UPD_PO_STATS(dev_net(dev), in6dev,
       ^~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/preempt.h:5:0,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mm_types.h:8,
                    from include/linux/kmemcheck.h:4,
                    from include/linux/skbuff.h:18,
                    from net/mpls/af_mpls.c:2:
>> include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector
      this_cpu_inc(ptr[basefield##PKTS]);  \
                      ^
   arch/x86/include/asm/percpu.h:128:17: note: in definition of macro 'percpu_add_op'
     typedef typeof(var) pao_T__;     \
                    ^~~
   include/linux/percpu-defs.h:364:11: note: in expansion of macro 'this_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   include/linux/percpu-defs.h:496:33: note: in expansion of macro '__pcpu_size_call'
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add'
    #define this_cpu_inc(pcp)  this_cpu_add(pcp, 1)
                               ^~~~~~~~~~~~
   include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc'
      this_cpu_inc(ptr[basefield##PKTS]);  \
      ^~~~~~~~~~~~
>> include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS'
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
          ^~~~~~~~~~~~~~~~~
>> include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD'
      _DEVUPD(net, ipv6, , idev, field, val)
      ^~~~~~~
>> net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS'
       IP6_UPD_PO_STATS(dev_net(dev), in6dev,
       ^~~~~~~~~~~~~~~~
>> include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector
      this_cpu_inc(ptr[basefield##PKTS]);  \
                      ^
   arch/x86/include/asm/percpu.h:137:17: note: in definition of macro 'percpu_add_op'
     switch (sizeof(var)) {      \
                    ^~~
   include/linux/percpu-defs.h:364:11: note: in expansion of macro 'this_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   include/linux/percpu-defs.h:496:33: note: in expansion of macro '__pcpu_size_call'
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add'
    #define this_cpu_inc(pcp)  this_cpu_add(pcp, 1)
                               ^~~~~~~~~~~~
   include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc'
      this_cpu_inc(ptr[basefield##PKTS]);  \
      ^~~~~~~~~~~~
>> include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS'
     mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
          ^~~~~~~~~~~~~~~~~

vim +163 include/net/ipv6.h

8e7999c4 Pavel Emelyanov 2007-10-15  157  
13415e46 Eric Dumazet    2016-04-27  158  #define _DEVUPD(net, statname, mod, idev, field, val)			\
edf391ff Neil Horman     2009-04-27  159  ({									\
edf391ff Neil Horman     2009-04-27  160  	struct inet6_dev *_idev = (idev);				\
edf391ff Neil Horman     2009-04-27  161  	if (likely(_idev != NULL))					\
13415e46 Eric Dumazet    2016-04-27  162  		mod##SNMP_UPD_PO_STATS((_idev)->stats.statname, field, (val)); \
13415e46 Eric Dumazet    2016-04-27 @163  	mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
edf391ff Neil Horman     2009-04-27  164  })
edf391ff Neil Horman     2009-04-27  165  
14878f75 David L Stevens 2007-09-16  166  /* MIBs */
14878f75 David L Stevens 2007-09-16  167  
087fe240 Denis V. Lunev  2008-10-08  168  #define IP6_INC_STATS(net, idev,field)		\
13415e46 Eric Dumazet    2016-04-27  169  		_DEVINC(net, ipv6, , idev, field)
1d015503 Eric Dumazet    2016-04-27  170  #define __IP6_INC_STATS(net, idev,field)	\
13415e46 Eric Dumazet    2016-04-27  171  		_DEVINC(net, ipv6, __, idev, field)
edf391ff Neil Horman     2009-04-27  172  #define IP6_ADD_STATS(net, idev,field,val)	\
13415e46 Eric Dumazet    2016-04-27  173  		_DEVADD(net, ipv6, , idev, field, val)
1d015503 Eric Dumazet    2016-04-27  174  #define __IP6_ADD_STATS(net, idev,field,val)	\
13415e46 Eric Dumazet    2016-04-27  175  		_DEVADD(net, ipv6, __, idev, field, val)
edf391ff Neil Horman     2009-04-27  176  #define IP6_UPD_PO_STATS(net, idev,field,val)   \
13415e46 Eric Dumazet    2016-04-27 @177  		_DEVUPD(net, ipv6, , idev, field, val)
c2005eb0 Eric Dumazet    2016-04-27  178  #define __IP6_UPD_PO_STATS(net, idev,field,val)   \
13415e46 Eric Dumazet    2016-04-27  179  		_DEVUPD(net, ipv6, __, idev, field, val)
087fe240 Denis V. Lunev  2008-10-08  180  #define ICMP6_INC_STATS(net, idev, field)	\

:::::: The code at line 163 was first introduced by commit
:::::: 13415e46c5915e2dac089de516369005fbc045f9 net: snmp: kill STATS_BH macros

:::::: TO: Eric Dumazet <edumazet@...gle.com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ