From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/net/ethernet/pensando/ionic/ionic_txrx.c:204 ionic_rx_build_skb() warn: '(((((((1) << 16)) < ((-1))) ?(((1) << 16)):((-1))) - (18 + 256 + ((((320)) + ((((1 << 7))) - 1)) & ~((((1 << 7))) - 1)))) + 18)' 18446744073709550975 can't fit into 65535 '__...
Date: Thu, 17 Sep 2026 20:23:38 +0200 [thread overview]
Message-ID: <202609172040.DROK1GD1-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Jackie Liu <liuyun01@kylinos.cn>
CC: Eric Dumazet <edumazet@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 238650ef6c7c7cca08e032527329424c9fbd70e5
commit: ac08d183dac0441e41f77bbad50798fe609d90f1 raw: annotate disconnect-side IPv4 match writers
date: 3 weeks ago
:::::: branch date: 26 hours ago
:::::: commit date: 3 weeks ago
config: mips-randconfig-r072-20260915 (https://download.01.org/0day-ci/archive/20260917/202609172040.DROK1GD1-lkp@intel.com/config)
compiler: mips64-linux-gcc (GCC) 14.3.0
smatch: v0.5.0-9187-g5189e3fb
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
| Fixes: ac08d183dac0 ("raw: annotate disconnect-side IPv4 match writers")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202609172040.DROK1GD1-lkp@intel.com/
smatch warnings:
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:204 ionic_rx_build_skb() warn: '(((((((1) << 16)) < ((-1))) ?(((1) << 16)):((-1))) - (18 + 256 + ((((320)) + ((((1 << 7))) - 1)) & ~((((1 << 7))) - 1)))) + 18)' 18446744073709550975 can't fit into 65535 '__UNIQUE_ID_y__958'
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:204 ionic_rx_build_skb() warn: assigning 18446744073709550975 to unsigned variable '__UNIQUE_ID_y__958'
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:488 ionic_run_xdp() warn: '(((((((1) << 16)) < ((-1))) ?(((1) << 16)):((-1))) - (18 + 256 + ((((320)) + ((((1 << 7))) - 1)) & ~((((1 << 7))) - 1)))) + 18)' 18446744073709550975 can't fit into 65535 '__UNIQUE_ID_y__966'
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:488 ionic_run_xdp() warn: assigning 18446744073709550975 to unsigned variable '__UNIQUE_ID_y__966'
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:812 ionic_rx_fill() warn: 'first_buf_len' 4294966911 can't fit into 65535 '__UNIQUE_ID_y__972'
vim +204 drivers/net/ethernet/pensando/ionic/ionic_txrx.c
36a47c906b2324 Shannon Nelson 2024-03-06 178
36a47c906b2324 Shannon Nelson 2024-03-06 179 static struct sk_buff *ionic_rx_build_skb(struct ionic_queue *q,
4dcd4575bfb17d Shannon Nelson 2024-03-06 180 struct ionic_rx_desc_info *desc_info,
f81da39bf4c0a5 Shannon Nelson 2024-02-14 181 unsigned int headroom,
f81da39bf4c0a5 Shannon Nelson 2024-02-14 182 unsigned int len,
f81da39bf4c0a5 Shannon Nelson 2024-02-14 183 unsigned int num_sg_elems,
180e35cdf035d1 Shannon Nelson 2024-02-14 184 bool synced)
0f3154e6bcb354 Shannon Nelson 2019-09-03 185 {
4b0a7539a3728f Shannon Nelson 2021-03-10 186 struct ionic_buf_info *buf_info;
08f2e4b2b2008c Shannon Nelson 2019-10-23 187 struct sk_buff *skb;
08f2e4b2b2008c Shannon Nelson 2019-10-23 188 unsigned int i;
08f2e4b2b2008c Shannon Nelson 2019-10-23 189 u16 frag_len;
08f2e4b2b2008c Shannon Nelson 2019-10-23 190
4b0a7539a3728f Shannon Nelson 2021-03-10 191 buf_info = &desc_info->bufs[0];
e75ccac1d0644c Shannon Nelson 2021-07-27 192 prefetchw(buf_info->page);
08f2e4b2b2008c Shannon Nelson 2019-10-23 193
89e572e7369fd9 Shannon Nelson 2021-03-10 194 skb = napi_get_frags(&q_to_qcq(q)->napi);
89e572e7369fd9 Shannon Nelson 2021-03-10 195 if (unlikely(!skb)) {
89e572e7369fd9 Shannon Nelson 2021-03-10 196 net_warn_ratelimited("%s: SKB alloc failed on %s!\n",
36a47c906b2324 Shannon Nelson 2024-03-06 197 dev_name(q->dev), q->name);
2854242d23a7b3 Shannon Nelson 2024-03-06 198 q_to_rx_stats(q)->alloc_err++;
08f2e4b2b2008c Shannon Nelson 2019-10-23 199 return NULL;
89e572e7369fd9 Shannon Nelson 2021-03-10 200 }
ac8813c0ab7d28 Shannon Nelson 2024-09-06 201 skb_mark_for_recycle(skb);
08f2e4b2b2008c Shannon Nelson 2019-10-23 202
f81da39bf4c0a5 Shannon Nelson 2024-02-14 203 if (headroom)
36a47c906b2324 Shannon Nelson 2024-03-06 @204 frag_len = min_t(u16, len,
36a47c906b2324 Shannon Nelson 2024-03-06 205 IONIC_XDP_MAX_LINEAR_MTU + VLAN_ETH_HLEN);
f81da39bf4c0a5 Shannon Nelson 2024-02-14 206 else
ac8813c0ab7d28 Shannon Nelson 2024-09-06 207 frag_len = min_t(u16, len, IONIC_PAGE_SIZE);
f81da39bf4c0a5 Shannon Nelson 2024-02-14 208
36a47c906b2324 Shannon Nelson 2024-03-06 209 if (unlikely(!buf_info->page))
36a47c906b2324 Shannon Nelson 2024-03-06 210 goto err_bad_buf_page;
36a47c906b2324 Shannon Nelson 2024-03-06 211 ionic_rx_add_skb_frag(q, skb, buf_info, headroom, frag_len, synced);
36a47c906b2324 Shannon Nelson 2024-03-06 212 len -= frag_len;
4b0a7539a3728f Shannon Nelson 2021-03-10 213 buf_info++;
4b0a7539a3728f Shannon Nelson 2021-03-10 214
36a47c906b2324 Shannon Nelson 2024-03-06 215 for (i = 0; i < num_sg_elems; i++, buf_info++) {
36a47c906b2324 Shannon Nelson 2024-03-06 216 if (unlikely(!buf_info->page))
36a47c906b2324 Shannon Nelson 2024-03-06 217 goto err_bad_buf_page;
ac8813c0ab7d28 Shannon Nelson 2024-09-06 218 frag_len = min_t(u16, len, buf_info->len);
36a47c906b2324 Shannon Nelson 2024-03-06 219 ionic_rx_add_skb_frag(q, skb, buf_info, 0, frag_len, synced);
36a47c906b2324 Shannon Nelson 2024-03-06 220 len -= frag_len;
36a47c906b2324 Shannon Nelson 2024-03-06 221 }
08f2e4b2b2008c Shannon Nelson 2019-10-23 222
08f2e4b2b2008c Shannon Nelson 2019-10-23 223 return skb;
36a47c906b2324 Shannon Nelson 2024-03-06 224
36a47c906b2324 Shannon Nelson 2024-03-06 225 err_bad_buf_page:
36a47c906b2324 Shannon Nelson 2024-03-06 226 dev_kfree_skb(skb);
36a47c906b2324 Shannon Nelson 2024-03-06 227 return NULL;
0f3154e6bcb354 Shannon Nelson 2019-09-03 228 }
0f3154e6bcb354 Shannon Nelson 2019-09-03 229
:::::: The code at line 204 was first introduced by commit
:::::: 36a47c906b23240b3d7fd0cc3f36d511d5b36700 ionic: refactor skb building
:::::: TO: Shannon Nelson <shannon.nelson@amd.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-09-17 18:24 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=202609172040.DROK1GD1-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.