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: <202203082057.NDl4sAYU-lkp@intel.com>
Date:   Tue, 8 Mar 2022 20:54:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Florian Westphal <fw@...len.de>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [netfilter-nf-next:testing 13/16]
 include/net/netfilter/nf_conntrack_extend.h:80:21: error: use of undeclared
 identifier 'NF_CT_EXT_LABELS'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git testing
head:   25cd959c0ff9a7d226b95faf21988bf8f986d81e
commit: 267a989cb33fc2e38b9fa8855a107100257a8882 [13/16] netfilter: extensions: introduce extension genid count
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220308/202203082057.NDl4sAYU-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git/commit/?id=267a989cb33fc2e38b9fa8855a107100257a8882
        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 267a989cb33fc2e38b9fa8855a107100257a8882
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/netfilter/

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 net/netfilter/nf_conntrack_core.c:40:
   In file included from include/net/netfilter/nf_conntrack_helper.h:15:
>> include/net/netfilter/nf_conntrack_extend.h:80:21: error: use of undeclared identifier 'NF_CT_EXT_LABELS'
           BUILD_BUG_ON(id != NF_CT_EXT_LABELS);
                              ^
   1 error generated.
--
   In file included from net/netfilter/nf_nat_core.c:20:
   In file included from include/net/netfilter/nf_conntrack_core.h:18:
   In file included from include/net/netfilter/nf_conntrack_ecache.h:14:
>> include/net/netfilter/nf_conntrack_extend.h:80:21: error: use of undeclared identifier 'NF_CT_EXT_LABELS'; did you mean 'NFT_CT_LABELS'?
           BUILD_BUG_ON(id != NF_CT_EXT_LABELS);
                              ^~~~~~~~~~~~~~~~
                              NFT_CT_LABELS
   include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
                            ^
   include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
   #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                                            ^
   include/linux/compiler_types.h:349:22: note: expanded from macro 'compiletime_assert'
           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
                               ^
   include/linux/compiler_types.h:337:23: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
                                ^
   include/linux/compiler_types.h:329:9: note: expanded from macro '__compiletime_assert'
                   if (!(condition))                                       \
                         ^
   include/uapi/linux/netfilter/nf_tables.h:1095:2: note: 'NFT_CT_LABELS' declared here
           NFT_CT_LABELS,
           ^
   1 error generated.


vim +/NF_CT_EXT_LABELS +80 include/net/netfilter/nf_conntrack_extend.h

    69	
    70	/* like nf_ct_ext_find, but no check of ext->gen_id.
    71	 *
    72	 * Can only be used for extensions that do not store any pointers
    73	 * to external data, and should only be used from core kernel code
    74	 * that cannot use symbols exported by nf_conntrack module.
    75	 */
    76	static __always_inline void *nf_ct_ext_find_unsafe(const struct nf_conn *ct, u8 id)
    77	{
    78		struct nf_ct_ext *ext = ct->ext;
    79	
  > 80		BUILD_BUG_ON(id != NF_CT_EXT_LABELS);
    81	
    82		if (!ext || !__nf_ct_ext_exist(ext, id))
    83			return NULL;
    84	
    85		return (void *)ct->ext + ct->ext->offset[id];
    86	}
    87	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ