From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Mark Cilissen <mark@yotsuba.nl>
Cc: lkp@intel.com, kbuild-all@lists.01.org,
linux-acpi@vger.kernel.org, devel@acpica.org,
linux-pm@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Hans de Goede <hdegoede@redhat.com>
Subject: [rafael-pm:bleeding-edge 113/118] arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
Date: Thu, 3 Mar 2022 14:51:58 +0300 [thread overview]
Message-ID: <202203021037.WWnG44C5-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: f7307721a01f4f14d21c699b270a870370cf34b9
commit: ed00b2b8d737f87a2437d7bd7c7f90124b50da05 [113/118] x86 / ACPI: Work around broken XSDT on SEGA AALE board
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220302/202203021037.WWnG44C5-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
vim +1394 arch/x86/kernel/acpi/boot.c
6faadbbb7f9da7 arch/x86/kernel/acpi/boot.c Christoph Hellwig 2017-09-14 @1394 static const struct dmi_system_id acpi_dmi_table[] __initconst = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1395 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1396 * Boxes that need ACPI disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1397 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1398 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1399 .callback = dmi_disable_acpi,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1400 .ident = "IBM Thinkpad",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1401 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1402 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1403 DMI_MATCH(DMI_BOARD_NAME, "2629H1G"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1404 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1405 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1406
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1407 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1408 * Boxes that need ACPI PCI IRQ routing disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1409 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1410 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1411 .callback = disable_acpi_irq,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1412 .ident = "ASUS A7V",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1413 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1414 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1415 DMI_MATCH(DMI_BOARD_NAME, "<A7V>"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1416 /* newer BIOS, Revision 1011, does work */
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1417 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1418 "ASUS A7V ACPI BIOS Revision 1007"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1419 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1420 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1421 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1422 /*
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1423 * Latest BIOS for IBM 600E (1.16) has bad pcinum
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1424 * for LPC bridge, which is needed for the PCI
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1425 * interrupt links to work. DSDT fix is in bug 5966.
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1426 * 2645, 2646 model numbers are shared with 600/600E/600X
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1427 */
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1428 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1429 .ident = "IBM Thinkpad 600 Series 2645",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1430 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1431 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1432 DMI_MATCH(DMI_BOARD_NAME, "2645"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1433 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1434 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1435 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1436 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1437 .ident = "IBM Thinkpad 600 Series 2646",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1438 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1439 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1440 DMI_MATCH(DMI_BOARD_NAME, "2646"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1441 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1442 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1443 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1444 * Boxes that need ACPI PCI IRQ routing and PCI scan disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1445 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1446 { /* _BBN 0 bug */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1447 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1448 .ident = "ASUS PR-DLS",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1449 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1450 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1451 DMI_MATCH(DMI_BOARD_NAME, "PR-DLS"),
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1452 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1453 "ASUS PR-DLS ACPI BIOS Revision 1010"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1454 DMI_MATCH(DMI_BIOS_DATE, "03/21/2003")
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1455 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1456 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1457 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1458 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1459 .ident = "Acer TravelMate 36x Laptop",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1460 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1461 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1462 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1463 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1464 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1465 /*
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1466 * Boxes that need ACPI XSDT use disabled due to corrupted tables
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1467 */
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1468 {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1469 .callback = disable_acpi_xsdt,
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1470 .ident = "SEGA AALE",
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1471 .matches = {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1472 DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1473 DMI_MATCH(DMI_PRODUCT_NAME, "Bearlake CRB Board"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1474 DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1475 DMI_MATCH(DMI_BIOS_VERSION, "V1.12"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1476 DMI_MATCH(DMI_BIOS_DATE, "02/01/2011"),
There are only 4 elements in the .matches[] array.
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1477 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1478 },
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1479 {}
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1480 };
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [rafael-pm:bleeding-edge 113/118] arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
Date: Wed, 02 Mar 2022 10:52:18 +0800 [thread overview]
Message-ID: <202203021037.WWnG44C5-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 11570 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-acpi(a)vger.kernel.org
CC: devel(a)acpica.org
CC: linux-pm(a)vger.kernel.org
TO: Mark Cilissen <mark@yotsuba.nl>
CC: "Rafael J. Wysocki" <rjw@rjwysocki.net>
CC: Hans de Goede <hdegoede@redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: f7307721a01f4f14d21c699b270a870370cf34b9
commit: ed00b2b8d737f87a2437d7bd7c7f90124b50da05 [113/118] x86 / ACPI: Work around broken XSDT on SEGA AALE board
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220302/202203021037.WWnG44C5-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
vim +1394 arch/x86/kernel/acpi/boot.c
7486341a98f268 arch/x86/kernel/acpi/boot.c Li, Aubrey 2015-03-11 1389
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1390 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1391 * If your system is blacklisted here, but you find that acpi=force
5b4c0b6fffb91b arch/x86/kernel/acpi/boot.c Zhang Rui 2009-04-01 1392 * works for you, please contact linux-acpi@vger.kernel.org
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1393 */
6faadbbb7f9da7 arch/x86/kernel/acpi/boot.c Christoph Hellwig 2017-09-14 @1394 static const struct dmi_system_id acpi_dmi_table[] __initconst = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1395 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1396 * Boxes that need ACPI disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1397 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1398 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1399 .callback = dmi_disable_acpi,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1400 .ident = "IBM Thinkpad",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1401 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1402 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1403 DMI_MATCH(DMI_BOARD_NAME, "2629H1G"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1404 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1405 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1406
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1407 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1408 * Boxes that need ACPI PCI IRQ routing disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1409 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1410 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1411 .callback = disable_acpi_irq,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1412 .ident = "ASUS A7V",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1413 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1414 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1415 DMI_MATCH(DMI_BOARD_NAME, "<A7V>"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1416 /* newer BIOS, Revision 1011, does work */
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1417 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1418 "ASUS A7V ACPI BIOS Revision 1007"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1419 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1420 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1421 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1422 /*
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1423 * Latest BIOS for IBM 600E (1.16) has bad pcinum
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1424 * for LPC bridge, which is needed for the PCI
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1425 * interrupt links to work. DSDT fix is in bug 5966.
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1426 * 2645, 2646 model numbers are shared with 600/600E/600X
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1427 */
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1428 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1429 .ident = "IBM Thinkpad 600 Series 2645",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1430 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1431 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1432 DMI_MATCH(DMI_BOARD_NAME, "2645"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1433 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1434 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1435 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1436 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1437 .ident = "IBM Thinkpad 600 Series 2646",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1438 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1439 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1440 DMI_MATCH(DMI_BOARD_NAME, "2646"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1441 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1442 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1443 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1444 * Boxes that need ACPI PCI IRQ routing and PCI scan disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1445 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1446 { /* _BBN 0 bug */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1447 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1448 .ident = "ASUS PR-DLS",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1449 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1450 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1451 DMI_MATCH(DMI_BOARD_NAME, "PR-DLS"),
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1452 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1453 "ASUS PR-DLS ACPI BIOS Revision 1010"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1454 DMI_MATCH(DMI_BIOS_DATE, "03/21/2003")
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1455 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1456 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1457 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1458 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1459 .ident = "Acer TravelMate 36x Laptop",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1460 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1461 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1462 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1463 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1464 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1465 /*
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1466 * Boxes that need ACPI XSDT use disabled due to corrupted tables
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1467 */
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1468 {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1469 .callback = disable_acpi_xsdt,
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1470 .ident = "SEGA AALE",
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1471 .matches = {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1472 DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1473 DMI_MATCH(DMI_PRODUCT_NAME, "Bearlake CRB Board"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1474 DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1475 DMI_MATCH(DMI_BIOS_VERSION, "V1.12"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1476 DMI_MATCH(DMI_BIOS_DATE, "02/01/2011"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1477 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1478 },
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1479 {}
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1480 };
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1481
:::::: The code at line 1394 was first introduced by commit
:::::: 6faadbbb7f9da70ce484f98f72223c20125a1009 dmi: Mark all struct dmi_system_id instances const
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jean Delvare <jdelvare@suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild-all@lists.01.org
Subject: [rafael-pm:bleeding-edge 113/118] arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
Date: Thu, 03 Mar 2022 14:51:58 +0300 [thread overview]
Message-ID: <202203021037.WWnG44C5-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 10419 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: f7307721a01f4f14d21c699b270a870370cf34b9
commit: ed00b2b8d737f87a2437d7bd7c7f90124b50da05 [113/118] x86 / ACPI: Work around broken XSDT on SEGA AALE board
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220302/202203021037.WWnG44C5-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4
vim +1394 arch/x86/kernel/acpi/boot.c
6faadbbb7f9da7 arch/x86/kernel/acpi/boot.c Christoph Hellwig 2017-09-14 @1394 static const struct dmi_system_id acpi_dmi_table[] __initconst = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1395 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1396 * Boxes that need ACPI disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1397 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1398 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1399 .callback = dmi_disable_acpi,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1400 .ident = "IBM Thinkpad",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1401 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1402 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1403 DMI_MATCH(DMI_BOARD_NAME, "2629H1G"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1404 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1405 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1406
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1407 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1408 * Boxes that need ACPI PCI IRQ routing disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1409 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1410 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1411 .callback = disable_acpi_irq,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1412 .ident = "ASUS A7V",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1413 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1414 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1415 DMI_MATCH(DMI_BOARD_NAME, "<A7V>"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1416 /* newer BIOS, Revision 1011, does work */
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1417 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1418 "ASUS A7V ACPI BIOS Revision 1007"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1419 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1420 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1421 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1422 /*
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1423 * Latest BIOS for IBM 600E (1.16) has bad pcinum
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1424 * for LPC bridge, which is needed for the PCI
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1425 * interrupt links to work. DSDT fix is in bug 5966.
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1426 * 2645, 2646 model numbers are shared with 600/600E/600X
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1427 */
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1428 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1429 .ident = "IBM Thinkpad 600 Series 2645",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1430 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1431 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1432 DMI_MATCH(DMI_BOARD_NAME, "2645"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1433 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1434 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1435 {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1436 .callback = disable_acpi_irq,
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1437 .ident = "IBM Thinkpad 600 Series 2646",
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1438 .matches = {
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1439 DMI_MATCH(DMI_BOARD_VENDOR, "IBM"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1440 DMI_MATCH(DMI_BOARD_NAME, "2646"),
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1441 },
74586fca38109d arch/i386/kernel/acpi/boot.c Len Brown 2007-03-08 1442 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1443 /*
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1444 * Boxes that need ACPI PCI IRQ routing and PCI scan disabled
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1445 */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1446 { /* _BBN 0 bug */
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1447 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1448 .ident = "ASUS PR-DLS",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1449 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1450 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1451 DMI_MATCH(DMI_BOARD_NAME, "PR-DLS"),
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1452 DMI_MATCH(DMI_BIOS_VERSION,
4be44fcd3bf648 arch/i386/kernel/acpi/boot.c Len Brown 2005-08-05 1453 "ASUS PR-DLS ACPI BIOS Revision 1010"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1454 DMI_MATCH(DMI_BIOS_DATE, "03/21/2003")
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1455 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1456 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1457 {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1458 .callback = disable_acpi_pci,
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1459 .ident = "Acer TravelMate 36x Laptop",
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1460 .matches = {
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1461 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1462 DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1463 },
aea00143a8db8c arch/i386/kernel/acpi/boot.c Andrey Panin 2005-06-25 1464 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1465 /*
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1466 * Boxes that need ACPI XSDT use disabled due to corrupted tables
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1467 */
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1468 {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1469 .callback = disable_acpi_xsdt,
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1470 .ident = "SEGA AALE",
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1471 .matches = {
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1472 DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1473 DMI_MATCH(DMI_PRODUCT_NAME, "Bearlake CRB Board"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1474 DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1475 DMI_MATCH(DMI_BIOS_VERSION, "V1.12"),
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1476 DMI_MATCH(DMI_BIOS_DATE, "02/01/2011"),
There are only 4 elements in the .matches[] array.
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1477 },
ed00b2b8d737f8 arch/x86/kernel/acpi/boot.c Mark Cilissen 2022-02-23 1478 },
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1479 {}
35af28219e684a arch/x86/kernel/acpi/boot.c Andreas Herrmann 2008-10-22 1480 };
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-03-03 11:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 2:52 kernel test robot [this message]
2022-03-03 11:51 ` [rafael-pm:bleeding-edge 113/118] arch/x86/kernel/acpi/boot.c:1394 (null)() error: buffer overflow '(acpi_dmi_table[6])->matches' 4 <= 4 Dan Carpenter
2022-03-03 11:51 ` Dan Carpenter
-- strict thread matches above, loose matches on Subject: below --
2022-03-03 12:02 [Devel] " Rafael J. Wysocki
2022-03-03 12:02 ` Rafael J. Wysocki
2022-03-03 12:02 ` Rafael J. Wysocki
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=202203021037.WWnG44C5-lkp@intel.com \
--to=dan.carpenter@oracle.com \
--cc=devel@acpica.org \
--cc=hdegoede@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=kbuild@lists.01.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mark@yotsuba.nl \
--cc=rjw@rjwysocki.net \
/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.