Re: [procfs] BUG: sleeping function called from invalid context at mm/slub.c:925

From: Valdis . Kletnieks
Date: Thu Mar 07 2013 - 14:17:31 EST


On Thu, 07 Mar 2013 22:12:24 +0800, Fengguang Wu said:

> I got the below dmesg and the first bad commit is
>
> commit a21813be23329e2788164eab532e79cb0e513cfc
> Author: Nathan Zimmer <nzimmer@xxxxxxx>
> Date: Sat Mar 2 15:25:37 2013 +1100
>
> procfs: improve scaling in proc

> [ 78.994163] atkbd: probe of serio1 rejects match -19
> [ 79.196148] Freeing unused kernel memory: 664k freed
> [ 80.786460] BUG: sleeping function called from invalid context at /c/kernel-tests/src/tip/mm/slub.c:925

I'm seeing a very similar issue on SLAB in next-20130306.
x86_64 on a 2-core Dell Latitude laptop. Haven't bisected yet.

[ 9.295661] #0: HDA Intel at 0xf6fdc000 irq 50
[ 9.324345] Freeing unused kernel memory: 968k freed
[ 9.350431] Write protecting the kernel read-only data: 10240k
[ 9.377094] Freeing unused kernel memory: 20k freed
[ 9.404963] Freeing unused kernel memory: 412k freed
[ 9.439653] BUG: sleeping function called from invalid context at mm/slab.c:3056
[ 9.505448] in_atomic(): 0, irqs_disabled(): 0, pid: 1, name: systemd
[ 9.531235] 2 locks held by systemd/1:
[ 9.557046] #0: (rcu_read_lock){.+.+.+}, at: [<ffffffff8115dc2a>] rcu_read_lock+0x0/0x6c
[ 9.583626] #1: (rcu_read_lock){.+.+.+}, at: [<ffffffff8115dc2a>] rcu_read_lock+0x0/0x6c
[ 9.609793] Pid: 1, comm: systemd Not tainted 3.9.0-rc1-next-20130306 #63
[ 9.636291] Call Trace:
[ 9.662218] [<ffffffff81056435>] __might_sleep+0x19e/0x1a5
[ 9.687970] [<ffffffff810ff5f5>] cache_alloc_debugcheck_before.isra.40+0x1d/0x1f
[ 9.713908] [<ffffffff81100576>] kmem_cache_alloc_trace+0x35/0xec
[ 9.740070] [<ffffffff81164d8f>] ? cmdline_proc_open+0x17/0x17
[ 9.765894] [<ffffffff81125cb3>] ? single_open+0x8f/0x8f
[ 9.791251] [<ffffffff81125c50>] single_open+0x2c/0x8f
[ 9.816509] [<ffffffff81164d8d>] cmdline_proc_open+0x15/0x17
[ 9.841728] [<ffffffff8115ded7>] proc_reg_open+0xcb/0x143
[ 9.866926] [<ffffffff81164d78>] ? proc_tty_unregister_driver+0x2d/0x2d
[ 9.891936] [<ffffffff8115de0c>] ? proc_reg_release+0x157/0x157
[ 9.917044] [<ffffffff81106a0f>] do_dentry_open+0x1d2/0x2ff
[ 9.941631] [<ffffffff81106b9e>] finish_open+0x62/0x74
[ 9.966347] [<ffffffff81114cc0>] do_last+0x9aa/0xb79
[ 9.990594] [<ffffffff81114f94>] path_openat+0x105/0x45e
[ 10.014748] [<ffffffff810ffa05>] ? ac_get_obj.constprop.59+0x38/0x1b6
[ 10.038753] [<ffffffff811160b0>] do_filp_open+0x37/0xc8
[ 10.062789] [<ffffffff815ef027>] ? _raw_spin_unlock+0x58/0x64
[ 10.086744] [<ffffffff8112173a>] ? __alloc_fd+0x175/0x187
[ 10.110608] [<ffffffff81107833>] do_sys_open+0x81/0x129
[ 10.134379] [<ffffffff811078f4>] SyS_open+0x19/0x1b
[ 10.158447] [<ffffffff815f5592>] system_call_fastpath+0x16/0x1b
[ 10.182213]



Attachment: pgp00000.pgp
Description: PGP signature