Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1260769 > unrolled thread
| Started by | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| First post | 2015-11-02 17:30 +0100 |
| Last post | 2015-11-04 12:00 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [lkp] [x86/setup] f5f3497cad: BUG: kernel boot crashed Matt Fleming <matt@codeblueprint.co.uk> - 2015-11-02 17:30 +0100
Re: [lkp] [x86/setup] f5f3497cad: BUG: kernel boot crashed Ingo Molnar <mingo@kernel.org> - 2015-11-03 09:20 +0100
Re: [lkp] [x86/setup] f5f3497cad: BUG: kernel boot crashed Matt Fleming <matt@codeblueprint.co.uk> - 2015-11-03 15:20 +0100
[tip:x86/urgent] x86/setup: Fix recent boot crash on 32-bit SMP machines tip-bot for Matt Fleming <tipbot@zytor.com> - 2015-11-04 12:00 +0100
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Date | 2015-11-02 17:30 +0100 |
| Subject | Re: [lkp] [x86/setup] f5f3497cad: BUG: kernel boot crashed |
| Message-ID | <qqq9B-7xI-15@gated-at.bofh.it> |
On Wed, 28 Oct, at 01:41:51PM, kernel test robot wrote:
> FYI, we noticed the below changes on
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> commit f5f3497cad8c8416a74b9aaceb127908755d020a ("x86/setup: Extend low identity map to cover whole kernel range")
>
>
> +------------------------------------------------+------------+------------+
> | | 8a53554e12 | f5f3497cad |
> +------------------------------------------------+------------+------------+
> | boot_successes | 19 | 10 |
> | boot_failures | 2 | 9 |
> | IP-Config:Auto-configuration_of_network_failed | 2 | 2 |
> | BUG:kernel_boot_crashed | 0 | 7 |
> +------------------------------------------------+------------+------------+
>
>
> [ 0.053410] smpboot: CPU0: GenuineIntel GenuineIntel QEMU Virtual CPU version 2.4.0QEMU Virtual CPU version 2.4.0 (family: 0x6, model: 0x6 (family: 0x6, model: 0x6, stepping: 0x3)
> , stepping: 0x3)
> [ 0.056666] Performance Events:
> [ 0.056666] Performance Events: no PMU driver, software events only.
> no PMU driver, software events only.
> [ 0.060520] CPU 1 irqstacks, hard=8a832000 soft=8a834000
> [ 0.060520] CPU 1 irqstacks, hard=8a832000 soft=8a834000
> [ 0.061605] x86: Booting SMP configuration:
> [ 0.061605] x86: Booting SMP configuration:
> [ 0.062445] .... node #0, CPUs:
> [ 0.062445] .... node #0, CPUs: #1 #1
> Elapsed time: 10
> BUG: kernel boot crashed
Yikes! Yeah, I can reproduce this. It appears the STARTUP IPI code is
triggering this crash in wakeup_secondary_cpu_via_init().
I'll take a look unless anyone else has any bright ideas?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2015-11-03 09:20 +0100 |
| Message-ID | <qqEYW-9k-35@gated-at.bofh.it> |
| In reply to | #1260769 |
* Matt Fleming <matt@codeblueprint.co.uk> wrote:
> On Wed, 28 Oct, at 01:41:51PM, kernel test robot wrote:
> > FYI, we noticed the below changes on
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > commit f5f3497cad8c8416a74b9aaceb127908755d020a ("x86/setup: Extend low identity map to cover whole kernel range")
> >
> >
> > +------------------------------------------------+------------+------------+
> > | | 8a53554e12 | f5f3497cad |
> > +------------------------------------------------+------------+------------+
> > | boot_successes | 19 | 10 |
> > | boot_failures | 2 | 9 |
> > | IP-Config:Auto-configuration_of_network_failed | 2 | 2 |
> > | BUG:kernel_boot_crashed | 0 | 7 |
> > +------------------------------------------------+------------+------------+
> >
> >
> > [ 0.053410] smpboot: CPU0: GenuineIntel GenuineIntel QEMU Virtual CPU version 2.4.0QEMU Virtual CPU version 2.4.0 (family: 0x6, model: 0x6 (family: 0x6, model: 0x6, stepping: 0x3)
> > , stepping: 0x3)
> > [ 0.056666] Performance Events:
> > [ 0.056666] Performance Events: no PMU driver, software events only.
> > no PMU driver, software events only.
> > [ 0.060520] CPU 1 irqstacks, hard=8a832000 soft=8a834000
> > [ 0.060520] CPU 1 irqstacks, hard=8a832000 soft=8a834000
> > [ 0.061605] x86: Booting SMP configuration:
> > [ 0.061605] x86: Booting SMP configuration:
> > [ 0.062445] .... node #0, CPUs:
> > [ 0.062445] .... node #0, CPUs: #1 #1
> > Elapsed time: 10
> > BUG: kernel boot crashed
>
> Yikes! Yeah, I can reproduce this. It appears the STARTUP IPI code is
> triggering this crash in wakeup_secondary_cpu_via_init().
>
> I'll take a look unless anyone else has any bright ideas?
Unfortunately this commit is now part of the v4.3 kernel, so we need a quick
solution or a quick revert.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Date | 2015-11-03 15:20 +0100 |
| Message-ID | <qqKBl-3MG-21@gated-at.bofh.it> |
| In reply to | #1261277 |
On Tue, 03 Nov, at 09:07:34AM, Ingo Molnar wrote:
>
> Unfortunately this commit is now part of the v4.3 kernel, so we need a quick
> solution or a quick revert.
Quick solution:
---
From ebb589d9cd83cce838d540aea1951d9b902eb0bc Mon Sep 17 00:00:00 2001
From: Matt Fleming <matt@codeblueprint.co.uk>
Date: Tue, 3 Nov 2015 13:40:41 +0000
Subject: [PATCH] x86/setup: Fix recent boot crash on 32-bit SMP machines
The LKP test robot reported that the bug fix in commit f5f3497cad8c
("x86/setup: Extend low identity map to cover whole kernel range")
causes CONFIG_X86_32 SMP machines to crash on boot when trying to
bring AP cpus online.
The above commit erroneously copies too many of the PGD entries to the
low memory region of 'identity_page_table', resulting in some of the
kernel mappings for PAGE_OFFSET being trashed because,
KERNEL_PGD_PTRS > KERNEL_PGD_BOUNDARY
The maximum number of PGD entries we can copy without corrupting the
kernel mapping is KERNEL_PGD_BOUNDARY or pgd_index(PAGE_OFFSET).
Reported-by: Ying Huang <ying.huang@linux.intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: <stable@vger.kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
---
arch/x86/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index a3cccbfc5f77..2b8cbd693da8 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1180,7 +1180,7 @@ void __init setup_arch(char **cmdline_p)
*/
clone_pgd_range(initial_page_table,
swapper_pg_dir + KERNEL_PGD_BOUNDARY,
- KERNEL_PGD_PTRS);
+ KERNEL_PGD_BOUNDARY);
#endif
tboot_probe();
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | tip-bot for Matt Fleming <tipbot@zytor.com> |
|---|---|
| Date | 2015-11-04 12:00 +0100 |
| Subject | [tip:x86/urgent] x86/setup: Fix recent boot crash on 32-bit SMP machines |
| Message-ID | <qr3Xk-7Mx-3@gated-at.bofh.it> |
| In reply to | #1261532 |
Commit-ID: 1c5dac914794f0170e1582d8ffdee52d30e0e4dd
Gitweb: http://git.kernel.org/tip/1c5dac914794f0170e1582d8ffdee52d30e0e4dd
Author: Matt Fleming <matt@codeblueprint.co.uk>
AuthorDate: Tue, 3 Nov 2015 13:40:41 +0000
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 4 Nov 2015 11:48:47 +0100
x86/setup: Fix recent boot crash on 32-bit SMP machines
The LKP test robot reported that the bug fix in commit f5f3497cad8c
("x86/setup: Extend low identity map to cover whole kernel range")
causes CONFIG_X86_32 SMP machines to crash on boot when trying to
bring AP cpus online.
The above commit erroneously copies too many of the PGD entries to the
low memory region of 'identity_page_table', resulting in some of the
kernel mappings for PAGE_OFFSET being trashed because,
KERNEL_PGD_PTRS > KERNEL_PGD_BOUNDARY
The maximum number of PGD entries we can copy without corrupting the
kernel mapping is KERNEL_PGD_BOUNDARY or pgd_index(PAGE_OFFSET).
Fixes: f5f3497cad8c "x86/setup: Extend low identity map to cover whole kernel range"
Reported-by: Ying Huang <ying.huang@linux.intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: lkp@01.org
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Link: http://lkml.kernel.org/r/20151103140354.GA2653@codeblueprint.co.uk
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index a3cccbf..2b8cbd6 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1180,7 +1180,7 @@ void __init setup_arch(char **cmdline_p)
*/
clone_pgd_range(initial_page_table,
swapper_pg_dir + KERNEL_PGD_BOUNDARY,
- KERNEL_PGD_PTRS);
+ KERNEL_PGD_BOUNDARY);
#endif
tboot_probe();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web