From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.15-lts 0/1] include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces)
Date: Sun, 30 Mar 2025 01:09:11 +0800 [thread overview]
Message-ID: <202503300037.qEx3y6MB-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android13-5.15-lts
head: 5e1b899f19c3d900664c1ca05c4714c24647d82b
commit: 0145780bfc78d0a429997fd132f7cf8af61cc632 [0/1] ANDROID: fix KASAN-related kernel crash by KMI W/A for NETFILTER_FAMILY_BRIDGE
config: x86_64-randconfig-123-20250329 (https://download.01.org/0day-ci/archive/20250330/202503300037.qEx3y6MB-lkp@intel.com/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250330/202503300037.qEx3y6MB-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503300037.qEx3y6MB-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/bridge/br_forward.c: note: in included file (through include/linux/netdevice.h):
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
--
net/bridge/br_stp_bpdu.c: note: in included file (through include/linux/netdevice.h, include/linux/netfilter.h, include/uapi/linux/netfilter_bridge.h, ...):
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
--
net/bridge/br_input.c: note: in included file (through include/linux/netdevice.h):
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
--
net/bridge/br_multicast.c: note: in included file:
include/net/mld.h:32:43: sparse: sparse: array of flexible structures
net/bridge/br_multicast.c: note: in included file (through include/linux/netdevice.h):
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
>> include/net/net_namespace.h:205:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct nf_hook_entries [noderef] __rcu ** @@ got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep @@
include/net/net_namespace.h:205:24: sparse: expected struct nf_hook_entries [noderef] __rcu **
include/net/net_namespace.h:205:24: sparse: got struct nf_hook_entries **extern [addressable] [toplevel] init_nf_hooks_bridgep
vim +205 include/net/net_namespace.h
199
200 static inline struct nf_hook_entries __rcu **get_nf_hooks_bridge(const struct net *net)
201 {
202 struct ext_net *ext_net;
203
204 if (net == &init_net)
> 205 return init_nf_hooks_bridgep;
206 ext_net = container_of(net, struct ext_net, net);
207 return ext_net->hooks_bridge;
208 }
209 #endif
210
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-03-29 17:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503300037.qEx3y6MB-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.