mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Torsten Kaiser <just.for.lkml@googlemail.com>
Cc: linux-kernel@vger.kernel.org,
	Christoph Lameter <cl@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Regression 2.6.33->2.6.34: OOPS at boot, kmalloc corruption?
Date: Tue, 20 Jul 2010 23:13:08 +0300	[thread overview]
Message-ID: <AANLkTikZLVYavu0EeQJ2VelymBoC2LQZTfc44FOAzwe4@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimVSZ584-dTIJFalTStvT1kPBQmnDdgUTsoSFQT@mail.gmail.com>

Hi Torsten,

On Sun, Jul 11, 2010 at 9:55 PM, Torsten Kaiser
<just.for.lkml@googlemail.com> wrote:
> Trying to upgrade my system from 2.6.33 to 2.6.34, I can't get it to boot.
>
> All tries used CONFIG_SLUB=y
>
> The gentoo version of 2.6.34 generated an OOPS during network
> initialization and then came to a stop. (It seemed that all processes
> got stuck waiting on some locks.)
> As in this instance the system was able to start the syslog, I was
> able to capture the complete OOPS:
> Jul  3 05:51:43 ariolc kernel: [   32.674367] BUG: unable to handle
> kernel NULL pointer dereference at 0000000000000003
> Jul  3 05:51:43 ariolc kernel: [   32.675674] IP: [<ffffffff810aab89>]
> __kmalloc_track_caller+0x69/0x110
> Jul  3 05:51:43 ariolc kernel: [   32.676951] PGD 11e7e5067 PUD 11fd3d067 PMD 0
> Jul  3 05:51:43 ariolc kernel: [   32.678224] Oops: 0000 [#1] SMP
> Jul  3 05:51:43 ariolc kernel: [   32.679477] last sysfs file:
> /sys/devices/virtual/block/md0/md/metadata_version
> Jul  3 05:51:43 ariolc kernel: [   32.680745] CPU 1
> Jul  3 05:51:43 ariolc kernel: [   32.680761] Modules linked in:
> aes_x86_64(+) aes_generic sg
> Jul  3 05:51:43 ariolc kernel: [   32.682764]
> Jul  3 05:51:43 ariolc kernel: [   32.682764] Pid: 4652, comm:
> modprobe Not tainted 2.6.34-gentoo-r1 #1 MS-7368/MS-7368
> Jul  3 05:51:43 ariolc kernel: [   32.682764] RIP:
> 0010:[<ffffffff810aab89>]  [<ffffffff810aab89>]
> __kmalloc_track_caller+0x69/0x110
> Jul  3 05:51:43 ariolc kernel: [   32.682764] RSP:
> 0018:ffff88011e75fe08  EFLAGS: 00010006
> Jul  3 05:51:43 ariolc kernel: [   32.687268] RAX: ffff880001b0f088
> RBX: ffffffff8170d4d0 RCX: ffff88011e574b80
> Jul  3 05:51:43 ariolc kernel: [   32.688564] RDX: 0000000000000000
> RSI: 00000000000000d0 RDI: 00000000000002d0
> Jul  3 05:51:43 ariolc kernel: [   32.688564] RBP: 0000000000000296
> R08: 0000000000000014 R09: ffff88011e574800
> Jul  3 05:51:43 ariolc kernel: [   32.691414] R10: 0000000000000001
> R11: ffff880001a12008 R12: 00000000000000d0
> Jul  3 05:51:43 ariolc kernel: [   32.691414] R13: 0000000000000003
> R14: ffffffff81064abb R15: ffffc90010729d68
> Jul  3 05:51:43 ariolc kernel: [   32.691414] FS:
> 00007f0a9acb8700(0000) GS:ffff880001b00000(0000)
> knlGS:0000000000000000
> Jul  3 05:51:43 ariolc kernel: [   32.691414] CS:  0010 DS: 0000 ES:
> 0000 CR0: 0000000080050033
> Jul  3 05:51:43 ariolc kernel: [   32.697212] CR2: 0000000000000003
> CR3: 000000011d03e000 CR4: 00000000000006e0
> Jul  3 05:51:43 ariolc kernel: [   32.698792] DR0: 0000000000000000
> DR1: 0000000000000000 DR2: 0000000000000000
> Jul  3 05:51:43 ariolc kernel: [   32.698792] DR3: 0000000000000000
> DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Jul  3 05:51:43 ariolc kernel: [   32.698792] Process modprobe (pid:
> 4652, threadinfo ffff88011e75e000, task ffff88011d114150)
> Jul  3 05:51:43 ariolc kernel: [   32.698792] Stack:
> Jul  3 05:51:43 ariolc kernel: [   32.698792]  0000000000000000
> ffffc90010729c97 0000000000000008 ffff88011e574800
> Jul  3 05:51:43 ariolc kernel: [   32.698792] <0> ffff88011e574aa0
> ffffffff8108c27b ffffffffa0018920 ffffc900000000d0
> Jul  3 05:51:43 ariolc kernel: [   32.698792] <0> ffffffffa0018920
> ffffc90010728000 ffffc90010729d68 ffffffff81064abb
> Jul  3 05:51:43 ariolc kernel: [   32.708636] Call Trace:
> Jul  3 05:51:43 ariolc kernel: [   32.708636]  [<ffffffff8108c27b>] ?
> kstrdup+0x3b/0x70
> Jul  3 05:51:43 ariolc kernel: [   32.711488]  [<ffffffff81064abb>] ?
> load_module+0x13eb/0x1730
> Jul  3 05:51:43 ariolc kernel: [   32.711488]  [<ffffffff81064e7b>] ?
> sys_init_module+0x7b/0x260
> Jul  3 05:51:43 ariolc kernel: [   32.711488]  [<ffffffff810024ab>] ?
> system_call_fastpath+0x16/0x1b
> Jul  3 05:51:43 ariolc kernel: [   32.716465] Code: 23 25 dc 47 6f 00
> 41 f6 c4 10 75 66 9c 5d fa 65 48 8b 14 25 a8 d1 00 00 48 8b 03 48 8d
> 04 02 4c 8b 28 4d 85 ed 74 55 48 63 53 18 <49> 8b 54 15 00 48 89 10 55
> 9d 4d 85 ed 74 06 66 45 85 e4 78 22
> Jul  3 05:51:43 ariolc kernel: [   32.718865] RIP
> [<ffffffff810aab89>] __kmalloc_track_caller+0x69/0x110
> Jul  3 05:51:43 ariolc kernel: [   32.718865]  RSP <ffff88011e75fe08>
> Jul  3 05:51:43 ariolc kernel: [   32.718865] CR2: 0000000000000003
> Jul  3 05:51:43 ariolc kernel: [   32.718865] ---[ end trace
> 692101747f991cfb ]---
>
> Two other OOPSen in __kmalloc() followed this one.
>
> I tried to switch from CONFIG_NO_BOOTMEM=y to unsetting this option.
> This kernel froze before the userspace was started, I did not see any
> OOPS output.
>
> Today I tried the vanilla 2.6.34.1 (again with CONFIG_NO_BOOTMEM=y).
> The vanilla kernel also crashed before userspace, again in
> __kmalloc(), but with a visible OOPS.
> I wrote the following informations down:
> OPPS was: BUG: unable to handle kernel NULL pointer dereference at
> 0000000000000003
> Callchain started with:
> ffffffff810aab39 : __kmalloc_track_caller+0x69/0x110
> ffffffff8108c23b : kstrdup+0x3b/0x70
> called from sysfs_new_dirent
> there where no modules loaded at this time, the faulting process was
> Pid: 1, comm: swapper

[snip]

> From this assembly, I would guess its this line in slub.c / slab_alloc():
> c->freelist = get_freepointer(s, object);
>
> A short test with 2.6.35-rc4 suggest that this problem has been fixed
> on master, although 2.6.35-rc4 only boots with radeon.modset=0. With
> KMS enabled the display turns off and the system does not even respond
> to SysRq+B.
> (I will report this KMS issue in another mail.)
>
> The system is an AMD RS690 with an Athlon X2 BE-2400.
> Under 2.6.33 the system is perfectly stable, KMS is working and enabled.
>
> Any guesses what this might cause?

It's slab corruption that can be cause by many things. Can you please
try to reproduce with CONFIG_SLUB_DEBUG_ON=y?

  reply	other threads:[~2010-07-20 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-11 18:55 Torsten Kaiser
2010-07-20 20:13 ` Pekka Enberg [this message]
2010-07-20 20:19   ` Christoph Lameter
2010-07-31 10:06     ` Torsten Kaiser

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=AANLkTikZLVYavu0EeQJ2VelymBoC2LQZTfc44FOAzwe4@mail.gmail.com \
    --to=penberg@cs.helsinki.fi \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=just.for.lkml@googlemail.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®