[rafael-pm:bleeding-edge] BUILD SUCCESS 5675fd487f2b221a27a44f6ac78bdb2e5f235052
by kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
branch HEAD: 5675fd487f2b221a27a44f6ac78bdb2e5f235052 Merge branch 'thermal-misc' into linux-next
elapsed time: 1802m
configs tested: 185
configs skipped: 4
The following configs have been built successfully.
More configs may be tested in the coming days.
gcc tested configs:
arm64 defconfig
arm64 allyesconfig
arm allmodconfig
arm defconfig
arm allyesconfig
i386 randconfig-c001
powerpc randconfig-c003-20220415
powerpc randconfig-c003-20220414
sh secureedge5410_defconfig
powerpc motionpro_defconfig
arc haps_hs_smp_defconfig
arc axs103_defconfig
m68k stmark2_defconfig
arm lpc18xx_defconfig
mips loongson1b_defconfig
arm spear6xx_defconfig
sh ecovec24_defconfig
powerpc mpc837x_mds_defconfig
powerpc cm5200_defconfig
sparc sparc64_defconfig
sh rsk7264_defconfig
mips xway_defconfig
xtensa common_defconfig
powerpc taishan_defconfig
arc tb10x_defconfig
m68k sun3_defconfig
arm imx_v6_v7_defconfig
sh j2_defconfig
powerpc64 defconfig
powerpc bamboo_defconfig
microblaze defconfig
sparc allyesconfig
arm pxa910_defconfig
arm lubbock_defconfig
arm tegra_defconfig
ia64 defconfig
powerpc wii_defconfig
arc vdk_hs38_defconfig
mips jazz_defconfig
sh se7724_defconfig
arm imxrt_defconfig
arm mps2_defconfig
arm rpc_defconfig
sh sh7770_generic_defconfig
powerpc mpc834x_mds_defconfig
arm lpd270_defconfig
powerpc warp_defconfig
i386 defconfig
powerpc eiger_defconfig
arm multi_v4t_defconfig
powerpc mpc83xx_defconfig
sh sh7757lcr_defconfig
mips maltasmvp_defconfig
sh defconfig
alpha allyesconfig
mips gpr_defconfig
riscv nommu_k210_sdcard_defconfig
powerpc64 alldefconfig
arm eseries_pxa_defconfig
sh sh7724_generic_defconfig
powerpc mpc85xx_cds_defconfig
sh se7722_defconfig
i386 alldefconfig
powerpc ppc6xx_defconfig
x86_64 defconfig
arm axm55xx_defconfig
arm pxa3xx_defconfig
alpha alldefconfig
powerpc ep8248e_defconfig
arc nsim_700_defconfig
xtensa cadence_csp_defconfig
xtensa nommu_kc705_defconfig
sh microdev_defconfig
mips bigsur_defconfig
m68k atari_defconfig
sh se7712_defconfig
mips decstation_defconfig
s390 debug_defconfig
um defconfig
powerpc tqm8555_defconfig
s390 defconfig
sh se7343_defconfig
sh rsk7269_defconfig
arm randconfig-c002-20220414
x86_64 randconfig-c001
arm randconfig-c002-20220415
ia64 allmodconfig
ia64 allyesconfig
m68k allyesconfig
m68k allmodconfig
m68k defconfig
nios2 defconfig
arc allyesconfig
alpha defconfig
csky defconfig
nios2 allyesconfig
h8300 allyesconfig
xtensa allyesconfig
arc defconfig
sh allmodconfig
s390 allmodconfig
parisc defconfig
parisc64 defconfig
parisc allyesconfig
s390 allyesconfig
sparc defconfig
i386 allyesconfig
i386 debian-10.3-kselftests
i386 debian-10.3
mips allyesconfig
mips allmodconfig
powerpc allnoconfig
powerpc allmodconfig
powerpc allyesconfig
x86_64 randconfig-a006
x86_64 randconfig-a004
x86_64 randconfig-a002
i386 randconfig-a001
i386 randconfig-a003
i386 randconfig-a005
x86_64 randconfig-a011
x86_64 randconfig-a013
x86_64 randconfig-a015
i386 randconfig-a012
i386 randconfig-a014
i386 randconfig-a016
riscv randconfig-r042-20220415
arc randconfig-r043-20220415
s390 randconfig-r044-20220415
arc randconfig-r043-20220414
riscv defconfig
riscv nommu_virt_defconfig
riscv rv32_defconfig
riscv nommu_k210_defconfig
riscv allnoconfig
riscv allmodconfig
riscv allyesconfig
x86_64 rhel-8.3-kselftests
um i386_defconfig
um x86_64_defconfig
x86_64 rhel-8.3-func
x86_64 kexec
x86_64 allyesconfig
x86_64 rhel-8.3-kunit
x86_64 rhel-8.3
clang tested configs:
x86_64 randconfig-c007
powerpc randconfig-c003-20220414
arm randconfig-c002-20220414
i386 randconfig-c001
riscv randconfig-c006-20220414
mips malta_kvm_defconfig
powerpc gamecube_defconfig
hexagon defconfig
mips tb0287_defconfig
x86_64 allyesconfig
mips ip28_defconfig
arm omap1_defconfig
arm dove_defconfig
powerpc acadia_defconfig
powerpc mpc8313_rdb_defconfig
riscv allnoconfig
powerpc kmeter1_defconfig
arm mainstone_defconfig
mips rbtx49xx_defconfig
arm tct_hammer_defconfig
powerpc tqm5200_defconfig
arm multi_v5_defconfig
mips mtx1_defconfig
arm spear3xx_defconfig
arm aspeed_g4_defconfig
powerpc ge_imp3a_defconfig
powerpc obs600_defconfig
arm vexpress_defconfig
arm collie_defconfig
i386 randconfig-a002
i386 randconfig-a006
i386 randconfig-a004
x86_64 randconfig-a012
x86_64 randconfig-a014
x86_64 randconfig-a016
x86_64 randconfig-a005
x86_64 randconfig-a003
x86_64 randconfig-a001
i386 randconfig-a013
i386 randconfig-a011
i386 randconfig-a015
riscv randconfig-r042-20220414
hexagon randconfig-r041-20220414
hexagon randconfig-r045-20220414
s390 randconfig-r044-20220414
--
0-DAY CI Kernel Test Service
https://01.org/lkp
3 months, 4 weeks
[rafael-pm:bleeding-edge] BUILD SUCCESS 2f7fc67b4d3f454beaa41b6c98671e9fd289b16f
by kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
branch HEAD: 2f7fc67b4d3f454beaa41b6c98671e9fd289b16f Merge branch 'thermal-int340x' into linux-next
elapsed time: 723m
configs tested: 130
configs skipped: 3
The following configs have been built successfully.
More configs may be tested in the coming days.
gcc tested configs:
arm64 defconfig
arm64 allyesconfig
arm allmodconfig
arm defconfig
arm allyesconfig
i386 randconfig-c001
arm spear6xx_defconfig
sh sh7757lcr_defconfig
xtensa generic_kc705_defconfig
sh se7712_defconfig
m68k apollo_defconfig
sparc defconfig
mips loongson3_defconfig
xtensa alldefconfig
arc haps_hs_smp_defconfig
openrisc alldefconfig
openrisc defconfig
sh se7343_defconfig
sh edosk7705_defconfig
m68k atari_defconfig
arm stm32_defconfig
powerpc stx_gp3_defconfig
powerpc cm5200_defconfig
m68k m5407c3_defconfig
powerpc wii_defconfig
arc vdk_hs38_defconfig
arm pleb_defconfig
arm s3c6400_defconfig
powerpc ps3_defconfig
h8300 h8s-sim_defconfig
powerpc64 defconfig
sh apsh4ad0a_defconfig
powerpc chrp32_defconfig
parisc64 alldefconfig
arm clps711x_defconfig
sh secureedge5410_defconfig
ia64 bigsur_defconfig
mips rb532_defconfig
um defconfig
x86_64 randconfig-c001
arm randconfig-c002-20220406
ia64 allmodconfig
ia64 allyesconfig
ia64 defconfig
m68k defconfig
m68k allmodconfig
m68k allyesconfig
nios2 defconfig
arc allyesconfig
csky defconfig
nios2 allyesconfig
alpha defconfig
alpha allyesconfig
h8300 allyesconfig
xtensa allyesconfig
arc defconfig
sh allmodconfig
parisc defconfig
parisc64 defconfig
s390 allmodconfig
parisc allyesconfig
s390 defconfig
s390 allyesconfig
i386 defconfig
i386 debian-10.3-kselftests
i386 debian-10.3
i386 allyesconfig
sparc allyesconfig
mips allyesconfig
mips allmodconfig
powerpc allnoconfig
powerpc allmodconfig
powerpc allyesconfig
x86_64 randconfig-a004
x86_64 randconfig-a002
x86_64 randconfig-a006
i386 randconfig-a001
i386 randconfig-a003
i386 randconfig-a005
x86_64 randconfig-a015
x86_64 randconfig-a013
x86_64 randconfig-a011
i386 randconfig-a012
i386 randconfig-a014
i386 randconfig-a016
arc randconfig-r043-20220406
s390 randconfig-r044-20220406
riscv randconfig-r042-20220406
riscv defconfig
riscv nommu_virt_defconfig
riscv rv32_defconfig
riscv nommu_k210_defconfig
riscv allnoconfig
riscv allmodconfig
riscv allyesconfig
x86_64 rhel-8.3-kselftests
um x86_64_defconfig
um i386_defconfig
x86_64 rhel-8.3-func
x86_64 kexec
x86_64 defconfig
x86_64 allyesconfig
x86_64 rhel-8.3-kunit
x86_64 rhel-8.3
clang tested configs:
x86_64 randconfig-c007
i386 randconfig-c001
powerpc randconfig-c003-20220406
riscv randconfig-c006-20220406
mips randconfig-c004-20220406
arm randconfig-c002-20220406
arm vt8500_v6_v7_defconfig
arm mainstone_defconfig
arm multi_v5_defconfig
mips cu1830-neo_defconfig
mips ip28_defconfig
powerpc pmac32_defconfig
powerpc ppc64e_defconfig
arm magician_defconfig
x86_64 randconfig-a005
x86_64 randconfig-a003
x86_64 randconfig-a001
i386 randconfig-a002
i386 randconfig-a006
i386 randconfig-a004
x86_64 randconfig-a012
x86_64 randconfig-a014
x86_64 randconfig-a016
i386 randconfig-a013
i386 randconfig-a011
i386 randconfig-a015
hexagon randconfig-r041-20220406
hexagon randconfig-r045-20220406
--
0-DAY CI Kernel Test Service
https://01.org/lkp
4 months, 1 week
[rafael-pm:bleeding-edge] BUILD SUCCESS bfb13c25fad240c3fd1601e8deff642389e903e8
by kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
branch HEAD: bfb13c25fad240c3fd1601e8deff642389e903e8 Merge branch 'thermal-int340x' into bleeding-edge
elapsed time: 976m
configs tested: 93
configs skipped: 4
The following configs have been built successfully.
More configs may be tested in the coming days.
gcc tested configs:
arm64 defconfig
arm64 allyesconfig
arm allyesconfig
arm defconfig
arm allmodconfig
i386 randconfig-c001
sh sdk7786_defconfig
arc axs101_defconfig
m68k m5407c3_defconfig
mips mpc30x_defconfig
openrisc or1klitex_defconfig
xtensa nommu_kc705_defconfig
ia64 defconfig
ia64 allmodconfig
ia64 allyesconfig
m68k defconfig
m68k allyesconfig
m68k allmodconfig
alpha defconfig
csky defconfig
alpha allyesconfig
nios2 allyesconfig
arc defconfig
sh allmodconfig
h8300 allyesconfig
xtensa allyesconfig
parisc defconfig
parisc64 defconfig
s390 allmodconfig
parisc allyesconfig
s390 defconfig
s390 allyesconfig
i386 debian-10.3-kselftests
i386 debian-10.3
i386 defconfig
i386 allyesconfig
sparc defconfig
sparc allyesconfig
nios2 defconfig
arc allyesconfig
mips allyesconfig
mips allmodconfig
powerpc allnoconfig
powerpc allmodconfig
powerpc allyesconfig
i386 randconfig-a001
i386 randconfig-a003
i386 randconfig-a005
x86_64 randconfig-a015
x86_64 randconfig-a013
x86_64 randconfig-a011
i386 randconfig-a014
i386 randconfig-a012
i386 randconfig-a016
x86_64 randconfig-a004
x86_64 randconfig-a002
x86_64 randconfig-a006
arc randconfig-r043-20220405
riscv nommu_virt_defconfig
riscv rv32_defconfig
riscv allmodconfig
riscv nommu_k210_defconfig
riscv allnoconfig
riscv allyesconfig
riscv defconfig
um i386_defconfig
um x86_64_defconfig
x86_64 defconfig
x86_64 allyesconfig
x86_64 kexec
x86_64 rhel-8.3-func
x86_64 rhel-8.3
x86_64 rhel-8.3-kunit
x86_64 rhel-8.3-kselftests
clang tested configs:
arm pcm027_defconfig
mips mtx1_defconfig
arm neponset_defconfig
i386 randconfig-a002
i386 randconfig-a004
i386 randconfig-a006
x86_64 randconfig-a014
x86_64 randconfig-a012
x86_64 randconfig-a016
i386 randconfig-a013
i386 randconfig-a011
i386 randconfig-a015
x86_64 randconfig-a001
x86_64 randconfig-a003
x86_64 randconfig-a005
hexagon randconfig-r041-20220405
hexagon randconfig-r045-20220405
s390 randconfig-r044-20220405
riscv randconfig-r042-20220405
--
0-DAY CI Kernel Test Service
https://01.org/lkp
4 months, 1 week
[PATCH 2/3] acpica: Check that the EBDA pointer is in valid range
by Vit Kabele
If the memory at 0x40e is uninitialized, the retrieved physical_memory
address of EBDA may be beyond the low memory (i.e. above 640K).
If so, the kernel may unintentionally access the VGA memory, that
might not be decoded or even present in case of virtualization.
Signed-off-by: Vit Kabele <vit(a)kabele.me>
Reviewed-by: Rudolf Marek <r.marek(a)assembler.cz>
---
drivers/acpi/acpica/tbxfroot.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c
index 9fec3df6c3ba..67b7df1c0520 100644
--- a/drivers/acpi/acpica/tbxfroot.c
+++ b/drivers/acpi/acpica/tbxfroot.c
@@ -138,8 +138,11 @@ acpi_find_root_pointer(acpi_physical_address *table_address)
acpi_os_unmap_memory(table_ptr, ACPI_EBDA_PTR_LENGTH);
/* EBDA present? */
-
- if (physical_address > 0x400) {
+ /* Check that the EBDA pointer from 0x40e is sane and does not point
+ * above valid low memory
+ */
+ if (physical_address > 0x400 &&
+ physical_address < 0xA0000) {
/*
* 1b) Search EBDA paragraphs (EBDA is required to be a
* minimum of 1K length)
--
2.30.2
4 months, 1 week
[PATCH 1/3] platform/x86: Check validity of EBDA pointer in mpparse.c
by Vit Kabele
The pointer to EBDA area is retrieved from a word at 0x40e in BDA.
In case that the memory there is not initialized and contains garbage,
it might happen that the kernel touches memory above 640K.
This may cause unwanted reads from VGA memory which may not be decoded,
or even present when running under virtualization.
This patch adds sanity check for the EBDA pointer retrieved from the memory
so that scanning EBDA does not leave the low memory.
Signed-off-by: Vit Kabele <vit(a)kabele.me>
Reviewed-by: Rudolf Marek <r.marek(a)assembler.cz>
---
arch/x86/include/asm/bios_ebda.h | 3 +++
arch/x86/kernel/ebda.c | 3 ---
arch/x86/kernel/mpparse.c | 12 +++++++++++-
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/arch/x86/include/asm/bios_ebda.h b/arch/x86/include/asm/bios_ebda.h
index 4d5a17e2febe..c3133c01d5b7 100644
--- a/arch/x86/include/asm/bios_ebda.h
+++ b/arch/x86/include/asm/bios_ebda.h
@@ -4,6 +4,9 @@
#include <asm/io.h>
+#define BIOS_START_MIN 0x20000U /* 128K, less than this is insane */
+#define BIOS_START_MAX 0x9f000U /* 640K, absolute maximum */
+
/*
* Returns physical address of EBDA. Returns 0 if there is no EBDA.
*/
diff --git a/arch/x86/kernel/ebda.c b/arch/x86/kernel/ebda.c
index 38e7d597b660..86c0801fc3ce 100644
--- a/arch/x86/kernel/ebda.c
+++ b/arch/x86/kernel/ebda.c
@@ -50,9 +50,6 @@
#define BIOS_RAM_SIZE_KB_PTR 0x413
-#define BIOS_START_MIN 0x20000U /* 128K, less than this is insane */
-#define BIOS_START_MAX 0x9f000U /* 640K, absolute maximum */
-
void __init reserve_bios_regions(void)
{
unsigned int bios_start, ebda_start;
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index fed721f90116..6bba0744d32d 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -633,7 +633,17 @@ void __init default_find_smp_config(void)
*/
address = get_bios_ebda();
- if (address)
+
+ /* Check that the EBDA address is sane and the get_bios_ebda() did not
+ * return just garbage from memory.
+ * The upper bound is considered valid if it points below 1K before
+ * end of the lower memory (i.e. 639K). The EBDA can be smaller
+ * than 1K in which case the pointer will point above 639K but that
+ * case is handled in step 2) above, and we don't need to adjust scan
+ * size to not bump into the memory above 640K.
+ */
+ if (address >= BIOS_START_MIN &&
+ address < 639 * 0x400)
smp_scan_config(address, 0x400);
}
--
2.30.2
4 months, 1 week