From: kernel test robot <lkp@intel.com>
To: Suren Baghdasaryan <surenb@google.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: net/ipv6/seg6.c:430:24: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Thu, 11 Dec 2025 07:38:14 +0800 [thread overview]
Message-ID: <202512110721.RFqufwXf-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0048fbb4011ec55c32d3148b2cda56433f273375
commit: 07438779313caafe52ac1a1a6958d735a5938988 alloc_tag: avoid current->alloc_tag manipulations when profiling is disabled
date: 11 months ago
config: i386-randconfig-063-20251211 (https://download.01.org/0day-ci/archive/20251211/202512110721.RFqufwXf-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110721.RFqufwXf-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/202512110721.RFqufwXf-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/ipv6/seg6.c:252:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct in6_addr *t_old @@ got struct in6_addr [noderef] __rcu *tun_src @@
net/ipv6/seg6.c:252:15: sparse: expected struct in6_addr *t_old
net/ipv6/seg6.c:252:15: sparse: got struct in6_addr [noderef] __rcu *tun_src
>> net/ipv6/seg6.c:430:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct in6_addr [noderef] __rcu *tun_src @@ got void *[assigned] _res @@
net/ipv6/seg6.c:430:24: sparse: expected struct in6_addr [noderef] __rcu *tun_src
net/ipv6/seg6.c:430:24: sparse: got void *[assigned] _res
vim +430 net/ipv6/seg6.c
4f4853dc1c9c19 David Lebrun 2016-11-08 419
915d7e5e5930b4 David Lebrun 2016-11-08 420 static int __net_init seg6_net_init(struct net *net)
915d7e5e5930b4 David Lebrun 2016-11-08 421 {
915d7e5e5930b4 David Lebrun 2016-11-08 422 struct seg6_pernet_data *sdata;
915d7e5e5930b4 David Lebrun 2016-11-08 423
915d7e5e5930b4 David Lebrun 2016-11-08 424 sdata = kzalloc(sizeof(*sdata), GFP_KERNEL);
915d7e5e5930b4 David Lebrun 2016-11-08 425 if (!sdata)
915d7e5e5930b4 David Lebrun 2016-11-08 426 return -ENOMEM;
915d7e5e5930b4 David Lebrun 2016-11-08 427
915d7e5e5930b4 David Lebrun 2016-11-08 428 mutex_init(&sdata->lock);
915d7e5e5930b4 David Lebrun 2016-11-08 429
915d7e5e5930b4 David Lebrun 2016-11-08 @430 sdata->tun_src = kzalloc(sizeof(*sdata->tun_src), GFP_KERNEL);
915d7e5e5930b4 David Lebrun 2016-11-08 431 if (!sdata->tun_src) {
915d7e5e5930b4 David Lebrun 2016-11-08 432 kfree(sdata);
915d7e5e5930b4 David Lebrun 2016-11-08 433 return -ENOMEM;
915d7e5e5930b4 David Lebrun 2016-11-08 434 }
915d7e5e5930b4 David Lebrun 2016-11-08 435
915d7e5e5930b4 David Lebrun 2016-11-08 436 net->ipv6.seg6_data = sdata;
915d7e5e5930b4 David Lebrun 2016-11-08 437
f04ed7d277e842 MichelleJin 2021-09-27 438 if (seg6_hmac_net_init(net)) {
f04ed7d277e842 MichelleJin 2021-09-27 439 kfree(rcu_dereference_raw(sdata->tun_src));
23b08260481ca5 MichelleJin 2021-10-02 440 kfree(sdata);
f04ed7d277e842 MichelleJin 2021-09-27 441 return -ENOMEM;
acaea0d5a63406 Zhang Mingyu 2021-11-03 442 }
4f4853dc1c9c19 David Lebrun 2016-11-08 443
915d7e5e5930b4 David Lebrun 2016-11-08 444 return 0;
915d7e5e5930b4 David Lebrun 2016-11-08 445 }
915d7e5e5930b4 David Lebrun 2016-11-08 446
:::::: The code at line 430 was first introduced by commit
:::::: 915d7e5e5930b4f01d0971d93b9b25ed17d221aa ipv6: sr: add code base for control plane support of SR-IPv6
:::::: TO: David Lebrun <david.lebrun@uclouvain.be>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-10 23:39 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=202512110721.RFqufwXf-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=surenb@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).