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/tehuti/tehuti.c:2316 bdx_get_strings() error: __builtin_memcpy() '*bdx_stat_names' too small (32 vs 736)
Date: Fri, 13 Dec 2024 22:08:37 +0800 [thread overview]
Message-ID: <202412132202.qXuh11Zx-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Andrey Konovalov <andreyknvl@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
CC: Marco Elver <elver@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f932fb9b40749d1c9a539d89bb3e288c077aafe5
commit: 2e577732e8d28b9183df701fb90cb7943aa4ed16 kasan, fortify: properly rename memintrinsics
date: 7 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-161-20241213 (https://download.01.org/0day-ci/archive/20241213/202412132202.qXuh11Zx-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202412132202.qXuh11Zx-lkp@intel.com/
smatch warnings:
drivers/net/ethernet/tehuti/tehuti.c:2316 bdx_get_strings() error: __builtin_memcpy() '*bdx_stat_names' too small (32 vs 736)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c:1202 qlcnic_get_strings() error: __builtin_memcpy() '*qlcnic_gstrings_test' too small (32 vs 192)
vim +2316 drivers/net/ethernet/tehuti/tehuti.c
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2306
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2307 /*
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2308 * bdx_get_strings - return a set of strings that describe the requested objects
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2309 * @netdev
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2310 * @data
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2311 */
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2312 static void bdx_get_strings(struct net_device *netdev, u32 stringset, u8 *data)
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2313 {
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2314 switch (stringset) {
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2315 case ETH_SS_STATS:
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 @2316 memcpy(data, *bdx_stat_names, sizeof(bdx_stat_names));
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2317 break;
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2318 }
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2319 }
1a348ccc1047a00 drivers/net/tehuti.c Andy Gospodarek 2007-09-17 2320
:::::: The code at line 2316 was first introduced by commit
:::::: 1a348ccc1047a00507e554826775a3d81f7f3437 [NET]: Add Tehuti network driver.
:::::: TO: Andy Gospodarek <andy@greyhouse.net>
:::::: CC: David S. Miller <davem@sunset.davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-13 14: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=202412132202.qXuh11Zx-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.