From: Reuben Farrelly <reuben-linuxkernel@reub.net>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: StackProtector Oopses - Re: 2.6.25-mm1
Date: Fri, 18 Apr 2008 23:02:22 +1000 [thread overview]
Message-ID: <48089BDE.6040100@reub.net> (raw)
In-Reply-To: <20080418014757.52fb4a4f.akpm@linux-foundation.org>
On 18/04/2008 6:47 PM, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.25/2.6.25-mm1/
The GCC stackprotector option is a no-go for me, and causes 100% repeatable
fatal oopses on boot with my x86_64 box.
This is not new to 2.6.25-mm1 - but was also present in 2.6.24-rc8-mm2
(2.6.24-rc8-mm1 was good, but this option didn't exist then).
It seems that enabling the stackprotector option:
tornado boot # diff -u config-2.6.25-mm1 config-2.6.25-mm1.old
--- config-2.6.25-mm1 2008-04-18 22:40:15.000000000 +1000
+++ config-2.6.25-mm1.old 2008-04-18 20:09:38.000000000 +1000
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.25-mm1
-# Fri Apr 18 22:25:04 2008
+# Fri Apr 18 19:57:17 2008
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
@@ -256,7 +256,8 @@
CONFIG_X86_PAT=y
# CONFIG_EFI is not set
CONFIG_SECCOMP=y
-# CONFIG_CC_STACKPROTECTOR is not set
+CONFIG_CC_STACKPROTECTOR_ALL=y
+CONFIG_CC_STACKPROTECTOR=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_300=y
is enough to prevent my system booting, viz:
input: Belkin Components Belkin OmniView KVM Switch as
/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1.1/3-1.1:1.0/input/input2
input: USB HID v1.00 Keyboard [Belkin Components Belkin OmniView KVM Switch] on
usb-0000:00:1d.1-1.1
input: Belkin Components Belkin OmniView KVM Switch as
/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1.1/3-1.1:1.1/input/input3
input: USB HID v1.00 Mouse [Belkin Components Belkin OmniView KVM Switch] on
usb-0000:00:1d.1-1.1
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
NET: Registered protocol family 17
Testing -fstack-protector-all feature
------------[ cut here ]------------
WARNING: at ™š:-2145164734 0x0()
Modules linked in:
Pid: 1, comm: swapper Not tainted 2.6.25-mm1 #1
Call Trace:
[<ffffffff802362a9>] warn_on_slowpath+0x67/0x98
[<ffffffff802f31da>] ? proc_register+0x104/0x1b0
[<ffffffff80237e2a>] ? printk+0x79/0x94
[<ffffffff804f1d05>] ? register_netdevice_notifier+0xed/0x1c9
[<ffffffff8023da80>] ? insert_resource+0x3c/0x117
[<ffffffff8023630d>] ? __stack_chk_test+0x33/0x7b
[<ffffffff80740ff0>] ? kernel_init+0x16d/0x30d
[<ffffffff8020c7b8>] ? child_rip+0xa/0x12
[<ffffffff80740e83>] ? kernel_init+0x0/0x30d
[<ffffffff8020c7ae>] ? child_rip+0x0/0x12
---[ end trace 8d584356702633c0 ]---
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
IP: [<0000000000000000>]
PGD 0
Oops: 0010 [1] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 1, comm: swapper Tainted: G W 2.6.25-mm1 #1
RIP: 0010:[<0000000000000000>] [<0000000000000000>]
RSP: 0000:ffff8100bf05de88 EFLAGS: 00010296
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000046 RDI: 0000000000000200
RBP: ffff8100bf05de90 R08: 0000000000000000 R09: ffff8100000bcce0
R10: 0720072007200720 R11: 0720072007200720 R12: 0000000000000000
R13: ffffffff80787530 R14: 0000000000000000 R15: ffffffff8067fd3c
FS: 0000000000000000(0000) GS:ffffffff80721000(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process swapper (pid: 1, threadinfo ffff8100bf05c000, task ffff8100bf060000)
Stack: 0000000000000000 ffff8100bf05deb0 ffffffff8023630d 0000000000000000
0000000090e2a955 ffff8100bf05df40 ffffffff80740ff0 aa55aa0000000000
aa55aa55aa55aa55 0000000000000003 55aa55aa55aa55aa 55aa55aa55aa55aa
Call Trace:
[<ffffffff8023630d>] __stack_chk_test+0x33/0x7b
[<ffffffff80740ff0>] kernel_init+0x16d/0x30d
[<ffffffff8020c7b8>] child_rip+0xa/0x12
[<ffffffff80740e83>] ? kernel_init+0x0/0x30d
[<ffffffff8020c7ae>] ? child_rip+0x0/0x12
Code: Bad RIP value.
RIP [<0000000000000000>]
RSP <ffff8100bf05de88>
CR2: 0000000000000000
---[ end trace 8d584356702633c0 ]---
Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: swapper Tainted: G D W 2.6.25-mm1 #1
Call Trace:
[<ffffffff80236716>] panic+0xb2/0x187
[<ffffffff802547c7>] ? blocking_notifier_call_chain+0x24/0x42
[<ffffffff8023a5b7>] do_exit+0x772/0x7eb
[<ffffffff8020cd1f>] oops_end+0x9a/0x9f
[<ffffffff80224349>] do_page_fault+0x61d/0x7c4
[<ffffffff802f31da>] ? proc_register+0x104/0x1b0
[<ffffffff805a51f9>] error_exit+0x0/0x51
[<ffffffff8023630d>] ? __stack_chk_test+0x33/0x7b
[<ffffffff80740ff0>] ? kernel_init+0x16d/0x30d
[<ffffffff8020c7b8>] ? child_rip+0xa/0x12
[<ffffffff80740e83>] ? kernel_init+0x0/0x30d
[<ffffffff8020c7ae>] ? child_rip+0x0/0x12
Rebooting in 30 seconds..
----------
gcc version 4.2.3 (Gentoo 4.2.3 p1.0)
I have put the config and full dmesg of 2.6.25-mm1 both working and not working,
up at http://www.reub.net/files/kernel/2.6.25-mm1/
It is the exact same oops with 2.6.24-rc8-mm1.
Reuben
next prev parent reply other threads:[~2008-04-18 13:10 UTC|newest]
Thread overview: 109+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 8:47 2.6.25-mm1 Andrew Morton
2008-04-18 11:26 ` [PATCH] 2.6.25-mm1 - Build Failure with PWRficient onchip memory controller driver Kamalesh Babulal
2008-04-18 13:02 ` Reuben Farrelly [this message]
2008-04-18 13:36 ` StackProtector Oopses - Re: 2.6.25-mm1 Ingo Molnar
2008-04-18 13:51 ` Arjan van de Ven
2008-04-18 14:41 ` Reuben Farrelly
2008-04-18 14:49 ` Reuben Farrelly
2008-04-21 15:06 ` Ingo Molnar
2008-04-22 1:48 ` Arjan van de Ven
2008-04-22 2:04 ` Valdis.Kletnieks
2008-04-22 8:34 ` Ingo Molnar
2008-04-22 14:29 ` Arjan van de Ven
2008-04-18 16:40 ` 2.6.25-mm1 (build error: driver core) Randy Dunlap
2008-04-18 16:56 ` Greg KH
2008-04-18 18:38 ` Dan Williams
2008-04-18 16:45 ` 2.6.25-mm1 (build error: trace selftest) Randy Dunlap
2008-04-18 20:14 ` 2.6.25-mm1 Valdis.Kletnieks
2008-04-18 23:09 ` 2.6.25-mm1: orphaned files after build Alexey Dobriyan
2008-04-19 2:13 ` 2.6.25-mm1 Joseph Fannin
2008-04-19 3:02 ` 2.6.25-mm1 Andrew Morton
2008-04-19 4:14 ` 2.6.25-mm1 Dmitry Torokhov
2008-04-19 4:29 ` 2.6.25-mm1 Andrew Morton
2008-04-19 6:33 ` 2.6.25-mm1 Joseph Fannin
2008-04-21 11:07 ` 2.6.25-mm1 Takashi Iwai
2008-04-21 17:44 ` 2.6.25-mm1 (snd-pcsp causes driver conflict) Stas Sergeev
2008-04-22 10:09 ` Takashi Iwai
2008-04-22 17:54 ` Stas Sergeev
2008-04-23 8:55 ` Takashi Iwai
2008-04-23 14:14 ` Takashi Iwai
2008-04-21 19:45 ` 2.6.25-mm1 Stas Sergeev
2008-04-21 14:06 ` 2.6.25-mm1 Takashi Iwai
2008-04-21 17:55 ` 2.6.25-mm1 (snd-pcsp doesn't like DEBUG_PAGEALLOC) Stas Sergeev
2008-04-22 10:13 ` Takashi Iwai
2008-04-22 14:01 ` Dmitry Torokhov
2008-04-22 16:42 ` Stas Sergeev
2008-04-22 18:31 ` Stas Sergeev
2008-04-23 8:49 ` Takashi Iwai
2008-04-23 14:18 ` Takashi Iwai
2008-04-23 20:02 ` Stas Sergeev
2008-04-24 9:40 ` Takashi Iwai
2008-04-25 3:51 ` Stas Sergeev
2008-04-25 6:28 ` Takashi Iwai
2008-04-25 16:45 ` Stas Sergeev
2008-04-25 16:51 ` Takashi Iwai
2008-04-25 17:25 ` Stas Sergeev
2008-05-02 16:44 ` Takashi Iwai
2008-05-02 16:57 ` Stas Sergeev
2008-05-06 10:20 ` Takashi Iwai
2008-05-06 16:51 ` Stas Sergeev
2008-04-25 18:09 ` Dmitry Torokhov
2008-04-25 18:31 ` Stas Sergeev
2008-04-25 18:37 ` Dmitry Torokhov
2008-04-19 2:25 ` 2.6.25-mm1 Joseph Fannin
2008-04-19 3:08 ` 2.6.25-mm1 Andrew Morton
2008-04-19 3:10 ` 2.6.25-mm1 Joseph Fannin
2008-04-19 3:29 ` 2.6.25-mm1 Andrew Morton
2008-04-19 13:25 ` 2.6.25-mm1 Andres Salomon
2008-04-19 17:38 ` 2.6.25-mm1 Andrew Morton
2008-04-19 17:50 ` 2.6.25-mm1 Andres Salomon
2008-04-21 14:56 ` 2.6.25-mm1 Jordan Crouse
2008-04-21 15:05 ` 2.6.25-mm1 Andres Salomon
2008-04-21 15:12 ` 2.6.25-mm1 Jordan Crouse
2008-04-19 17:39 ` [PATCH 1/2] OLPC: Add support for calling into Open Firmware Andres Salomon
2008-04-20 10:34 ` Yinghai Lu
2008-04-20 12:07 ` H. Peter Anvin
2008-04-20 17:59 ` Andres Salomon
2008-04-20 18:42 ` Mitch Bradley
2008-04-20 19:12 ` H. Peter Anvin
2008-04-21 3:39 ` Mitch Bradley
2008-04-21 4:54 ` Yinghai Lu
2008-04-21 8:22 ` Mitch Bradley
2008-04-21 11:36 ` H. Peter Anvin
2008-04-21 13:09 ` H. Peter Anvin
2008-04-21 13:13 ` H. Peter Anvin
2008-04-21 13:19 ` H. Peter Anvin
2008-04-21 15:05 ` Jordan Crouse
2008-04-21 14:58 ` H. Peter Anvin
2008-04-20 19:13 ` [PATCH 1/2] " H. Peter Anvin
2008-04-21 3:09 ` Mitch Bradley
2008-04-21 3:15 ` Yinghai Lu
2008-04-21 4:05 ` Mitch Bradley
2008-04-21 4:26 ` David Miller
2008-04-21 4:50 ` Yinghai Lu
2008-04-21 8:03 ` Mitch Bradley
2008-04-21 14:24 ` Andres Salomon
2008-04-21 15:54 ` David Woodhouse
2008-04-21 16:57 ` H. Peter Anvin
2008-04-21 18:54 ` David Woodhouse
2008-04-21 17:03 ` Andres Salomon
2008-04-21 19:18 ` David Woodhouse
2008-04-21 19:46 ` Andres Salomon
2008-04-21 20:25 ` David Woodhouse
2008-04-21 21:02 ` [PATCH] OLPC: only check for OFW signature on VSA-less Geodes Andres Salomon
2008-04-21 21:17 ` Jordan Crouse
2008-04-21 21:17 ` [PATCH] " David Woodhouse
2008-04-29 3:06 ` Andrew Morton
2008-04-29 5:32 ` [PATCH] x86: GEODE: cache results from geode_has_vsa2() and uninline Andres Salomon
2008-04-29 20:35 ` Andrew Morton
2008-04-29 20:57 ` Andres Salomon
2008-04-19 17:39 ` [PATCH 2/2] OLPC: drop pre-OpenFirmware workarounds Andres Salomon
2008-04-19 18:21 ` 2.6.25-mm1 Arjan van de Ven
2008-04-20 11:29 ` internal compiler error: SIGSEGV [Was: 2.6.25-mm1] Jiri Slaby
2008-04-21 8:31 ` Jiri Slaby
2008-04-21 9:06 ` Al Viro
2008-04-21 9:37 ` fault in __d_lookup " Jiri Slaby
2008-04-21 9:45 ` Al Viro
2008-04-21 9:59 ` Jiri Slaby
2008-04-21 13:42 ` Rafael J. Wysocki
2008-04-21 17:23 ` Matthew Wilcox
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=48089BDE.6040100@reub.net \
--to=reuben-linuxkernel@reub.net \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox