From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [tglx-devel:x86/apic 20/33] arch/x86/kernel/apic/io_apic.c:1251:65: sparse: sparse: invalid access past the end of 'entry' (12 16)
Date: Sat, 24 Oct 2020 04:02:09 +0800 [thread overview]
Message-ID: <202010240405.IMfOrpnM-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4076 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Thomas Gleixner <tglx@linutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/apic
head: 79dccf5adfcb84abb5644e4349234c4442803c9a
commit: c886de0d40c30285de3a9671558ee48e7b5c83d7 [20/33] x86/ioapic: Cleanup IO/APIC route entry structs
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-s001-20201023 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-17-g2d3af347-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=c886de0d40c30285de3a9671558ee48e7b5c83d7
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel x86/apic
git checkout c886de0d40c30285de3a9671558ee48e7b5c83d7
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> arch/x86/kernel/apic/io_apic.c:1251:65: sparse: sparse: invalid access past the end of 'entry' (12 16)
arch/x86/kernel/apic/io_apic.c:1248:26: sparse: sparse: invalid access past the end of 'entry' (12 16)
vim +/entry +1251 arch/x86/kernel/apic/io_apic.c
17405453f4ad022 Yoshihiro YUNOMAE 2013-08-20 1231
a44174ee7b38001 Jiang Liu 2015-04-13 1232 static void io_apic_print_entries(unsigned int apic, unsigned int nr_entries)
a44174ee7b38001 Jiang Liu 2015-04-13 1233 {
a44174ee7b38001 Jiang Liu 2015-04-13 1234 struct IO_APIC_route_entry entry;
c886de0d40c3028 Thomas Gleixner 2020-10-22 1235 char buf[256];
c886de0d40c3028 Thomas Gleixner 2020-10-22 1236 int i;
a44174ee7b38001 Jiang Liu 2015-04-13 1237
a44174ee7b38001 Jiang Liu 2015-04-13 1238 printk(KERN_DEBUG "IOAPIC %d:\n", apic);
a44174ee7b38001 Jiang Liu 2015-04-13 1239 for (i = 0; i <= nr_entries; i++) {
a44174ee7b38001 Jiang Liu 2015-04-13 1240 entry = ioapic_read_entry(apic, i);
a44174ee7b38001 Jiang Liu 2015-04-13 1241 snprintf(buf, sizeof(buf),
a44174ee7b38001 Jiang Liu 2015-04-13 1242 " pin%02x, %s, %s, %s, V(%02X), IRR(%1d), S(%1d)",
335efdf57da39d3 Thomas Gleixner 2015-04-14 1243 i,
c886de0d40c3028 Thomas Gleixner 2020-10-22 1244 entry.masked ? "disabled" : "enabled ",
c886de0d40c3028 Thomas Gleixner 2020-10-22 1245 entry.is_level ? "level" : "edge ",
c886de0d40c3028 Thomas Gleixner 2020-10-22 1246 entry.active_low ? "low " : "high",
a44174ee7b38001 Jiang Liu 2015-04-13 1247 entry.vector, entry.irr, entry.delivery_status);
c886de0d40c3028 Thomas Gleixner 2020-10-22 1248 if (entry.ir_format) {
a44174ee7b38001 Jiang Liu 2015-04-13 1249 printk(KERN_DEBUG "%s, remapped, I(%04X), Z(%X)\n",
335efdf57da39d3 Thomas Gleixner 2015-04-14 1250 buf,
c886de0d40c3028 Thomas Gleixner 2020-10-22 @1251 (entry.ir_index_15 << 15) | entry.ir_index_0_14,
c886de0d40c3028 Thomas Gleixner 2020-10-22 1252 entry.ir_zero);
c886de0d40c3028 Thomas Gleixner 2020-10-22 1253 } else {
c886de0d40c3028 Thomas Gleixner 2020-10-22 1254 printk(KERN_DEBUG "%s, %s, D(%02X), M(%1d)\n", buf,
c886de0d40c3028 Thomas Gleixner 2020-10-22 1255 entry.dest_mode_logical ? "logical " : "physical",
c886de0d40c3028 Thomas Gleixner 2020-10-22 1256 entry.destid_0_7, entry.delivery_mode);
c886de0d40c3028 Thomas Gleixner 2020-10-22 1257 }
a44174ee7b38001 Jiang Liu 2015-04-13 1258 }
a44174ee7b38001 Jiang Liu 2015-04-13 1259 }
a44174ee7b38001 Jiang Liu 2015-04-13 1260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32625 bytes --]
reply other threads:[~2020-10-23 20:02 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=202010240405.IMfOrpnM-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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.