From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android17-6.18-2026-09 1/1] net/ipv4/fib_trie.c:320:13: warning: implicit conversion from 'unsigned long' to 'u32' (aka 'unsigned int') changes value from 2305843009213693946 to 4294967290
Date: Thu, 29 Oct 2026 15:44:05 +0100 [thread overview]
Message-ID: <202610291501.qubtmNJx-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android17-6.18-2026-09
head: a69319c19fd01d6ddb506d4e39b1e50451bdb352
commit: 3e1da3739d68558bacc60ea5f469fbddaf529c32 [1/1] ANDROID: GKI: Add GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS
config: x86_64-randconfig-2001-20261029 (https://download.01.org/0day-ci/archive/20261029/202610291501.qubtmNJx-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261029/202610291501.qubtmNJx-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/202610291501.qubtmNJx-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:3:
In file included from include/linux/compiler_types.h:171:
include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
28 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:353:9: note: previous definition is here
353 | #define __SANITIZE_ADDRESS__ 1
| ^
In file included from net/ipv4/fib_trie.c:69:
In file included from include/net/tcp.h:45:
include/net/xfrm.h:2088:30: error: no member named 'xfrm' in 'struct dst_entry'
2088 | struct xfrm_state *x = dst->xfrm;
| ~~~ ^
include/net/xfrm.h:2095:46: error: no member named 'xfrm' in 'struct dst_entry'
2095 | if (!x->xso.offload_handle && !xdst->child->xfrm)
| ~~~~~~~~~~~ ^
include/net/xfrm.h:2098:20: error: no member named 'xfrm' in 'struct dst_entry'
2098 | !xdst->child->xfrm)
| ~~~~~~~~~~~ ^
>> net/ipv4/fib_trie.c:320:13: warning: implicit conversion from 'unsigned long' to 'u32' (aka 'unsigned int') changes value from 2305843009213693946 to 4294967290 [-Wconstant-conversion]
320 | if (bits > TNODE_VMALLOC_MAX)
| ^~~~~~~~~~~~~~~~~
net/ipv4/fib_trie.c:301:35: note: expanded from macro 'TNODE_VMALLOC_MAX'
301 | ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/log2.h:162:14: note: expanded from macro 'ilog2'
162 | __ilog2_u32(n) : \
| ~~~~~~~~~~~ ^
2 warnings and 3 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
Selected by [y]:
- GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
vim +320 net/ipv4/fib_trie.c
37fd30f2da573c Alexander Duyck 2014-12-31 314
dc35dbeda3e00a Alexander Duyck 2015-03-06 315 static struct tnode *tnode_alloc(int bits)
f0e36f8cee8101 Patrick McHardy 2005-07-05 316 {
1de3d87bcd2c2e Alexander Duyck 2015-03-04 317 size_t size;
1de3d87bcd2c2e Alexander Duyck 2015-03-04 318
1de3d87bcd2c2e Alexander Duyck 2015-03-04 319 /* verify bits is within bounds */
1de3d87bcd2c2e Alexander Duyck 2015-03-04 @320 if (bits > TNODE_VMALLOC_MAX)
1de3d87bcd2c2e Alexander Duyck 2015-03-04 321 return NULL;
1de3d87bcd2c2e Alexander Duyck 2015-03-04 322
1de3d87bcd2c2e Alexander Duyck 2015-03-04 323 /* determine size and verify it is non-zero and didn't overflow */
1de3d87bcd2c2e Alexander Duyck 2015-03-04 324 size = TNODE_SIZE(1ul << bits);
1de3d87bcd2c2e Alexander Duyck 2015-03-04 325
2373ce1ca04dd4 Robert Olsson 2005-08-25 326 if (size <= PAGE_SIZE)
8d96544475b236 Eric Dumazet 2008-01-13 327 return kzalloc(size, GFP_KERNEL);
15be75cdb5db44 Stephen Hemminger 2008-04-10 328 else
7a1c8e5ab120a5 Eric Dumazet 2010-11-20 329 return vzalloc(size);
15be75cdb5db44 Stephen Hemminger 2008-04-10 330 }
2373ce1ca04dd4 Robert Olsson 2005-08-25 331
:::::: The code at line 320 was first introduced by commit
:::::: 1de3d87bcd2c2e631500b9e4f0c40b38ce0d0d57 fib_trie: Prevent allocating tnode if bits is too big for size_t
:::::: TO: Alexander Duyck <alexander.h.duyck@redhat.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-29 14:44 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=202610291501.qubtmNJx-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.