lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 20 May 2011 05:47:24 +0200
From:	Robert Richter <robert.richter@....com>
To:	Dave Jones <davej@...hat.com>,
	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: sleeping while atomic warning while modprobing oprofile.

On 18.05.11 15:17:06, Dave Jones wrote:
> I just saw this when after I did a 'modprobe oprofile' on my amd64 box.

Thanks for reporting this. This happens in init_ibs(). We are actually
too strict here with disabling preemption, though we still need it.
Will change that code.

-Robert

> 
> 	Dave
> 
> BUG: sleeping function called from invalid context at mm/slub.c:824
> in_atomic(): 1, irqs_disabled(): 0, pid: 32357, name: modprobe
> INFO: lockdep is turned off.
> Pid: 32357, comm: modprobe Not tainted 2.6.39-rc7+ #14
> Call Trace:
>  [<ffffffff8104bdc8>] __might_sleep+0x112/0x117
>  [<ffffffff81129693>] kmem_cache_alloc_trace+0x4b/0xe7
>  [<ffffffff81278f14>] kzalloc.constprop.0+0x29/0x2b
>  [<ffffffff81278f4c>] pci_get_subsys+0x36/0x78
>  [<ffffffff81022689>] ? setup_APIC_eilvt+0xfb/0x139
>  [<ffffffff81278fa4>] pci_get_device+0x16/0x18
>  [<ffffffffa06c8b5d>] op_amd_init+0xd3/0x211 [oprofile]
>  [<ffffffffa064d000>] ? 0xffffffffa064cfff
>  [<ffffffffa064d298>] op_nmi_init+0x21e/0x26a [oprofile]
>  [<ffffffffa064d062>] oprofile_arch_init+0xe/0x26 [oprofile]
>  [<ffffffffa064d010>] oprofile_init+0x10/0x42 [oprofile]
>  [<ffffffff81002099>] do_one_initcall+0x7f/0x13a
>  [<ffffffff81096524>] sys_init_module+0x132/0x281
>  [<ffffffff814cc682>] system_call_fastpath+0x16/0x1b
> 
> 

-- 
Advanced Micro Devices, Inc.
Operating System Research Center

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ