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: <202203220605.8O9WsB6a-lkp@intel.com>
Date:   Tue, 22 Mar 2022 06:43:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Florian Westphal <fw@...len.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [netfilter-nf-next:testing 21/24] net/netfilter/nfnetlink.c:711:22:
 error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git testing
head:   0481bbb83971b25a71fba81269b3bc0a392d24e3
commit: 75a944cf2fe90182d986638a7422238b310f1ca4 [21/24] netfilter: nfnetlink: allow to detect if ctnetlink listeners exist
config: x86_64-randconfig-a011-20220321 (https://download.01.org/0day-ci/archive/20220322/202203220605.8O9WsB6a-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git/commit/?id=75a944cf2fe90182d986638a7422238b310f1ca4
        git remote add netfilter-nf-next git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git
        git fetch --no-tags netfilter-nf-next testing
        git checkout 75a944cf2fe90182d986638a7422238b310f1ca4
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   In file included from <command-line>:
   net/netfilter/nfnetlink.c: In function 'nfnetlink_bind':
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
   In file included from ./arch/x86/include/generated/asm/rwonce.h:1,
                    from include/linux/compiler.h:255,
                    from include/linux/build_bug.h:5,
                    from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from net/netfilter/nfnetlink.c:17:
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/asm-generic/rwonce.h:55:20: note: in definition of macro '__WRITE_ONCE'
      55 |  *(volatile typeof(x) *)&(x) = (val);    \
         |                    ^
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/asm-generic/rwonce.h:55:27: note: in definition of macro '__WRITE_ONCE'
      55 |  *(volatile typeof(x) *)&(x) = (val);    \
         |                           ^
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~


vim +711 net/netfilter/nfnetlink.c

   698	
   699		if (type == NFNL_SUBSYS_CTNETLINK) {
   700			struct nfnl_net *nfnlnet = nfnl_pernet(net);
   701	
   702			nfnl_lock(NFNL_SUBSYS_CTNETLINK);
   703	
   704			if (WARN_ON_ONCE(nfnlnet->ctnetlink_listeners == UINT_MAX)) {
   705				nfnl_unlock(NFNL_SUBSYS_CTNETLINK);
   706				return -EOVERFLOW;
   707			}
   708	
   709			nfnlnet->ctnetlink_listeners++;
   710			if (nfnlnet->ctnetlink_listeners == 1)
 > 711				WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
   712			nfnl_unlock(NFNL_SUBSYS_CTNETLINK);
   713		}
   714	
   715		return 0;
   716	}
   717	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ