Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbYHZGh7 (ORCPT ); Tue, 26 Aug 2008 02:37:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751365AbYHZGhv (ORCPT ); Tue, 26 Aug 2008 02:37:51 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:60708 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbYHZGhu (ORCPT ); Tue, 26 Aug 2008 02:37:50 -0400 Date: Mon, 25 Aug 2008 23:37:29 -0700 From: Andrew Morton To: "Ryan Hope" Cc: LKML , Ingo Molnar , Mike Travis Subject: Re: [-mmotm] BUG: scheduling while atomic: swapper Message-Id: <20080825233729.816cf182.akpm@linux-foundation.org> In-Reply-To: <48f7fe350808251909g26207e7agdda6408c0b46a1ed@mail.gmail.com> References: <48f7fe350808251909g26207e7agdda6408c0b46a1ed@mail.gmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1750 Lines: 42 On Mon, 25 Aug 2008 22:09:25 -0400 "Ryan Hope" wrote: > BUG: scheduling while atomic: swapper/1/0x00000002 > Modules linked in: > Pid: 1, comm: swapper Tainted: G W 2.6.27-rc4-zenmmotm1 #4 > [] schedule+0x287/0x6d0 > [] vsnprintf+0x3a6/0x6c0 > [] schedule_timeout+0x7d/0xb0 > [] __wake_up+0x38/0x50 > [] wait_for_common+0x8a/0x130 > [] default_wake_function+0x0/0x10 > [] call_usermodehelper_exec+0xc3/0xf0 > [] kobject_uevent_env+0x37e/0x3a0 > [] device_add+0x551/0x630 > [] device_create_vargs+0xb3/0xd0 > [] microcode_intel_module_init+0x0/0x39 > [] device_create+0x2b/0x30 > [] misc_register+0xbe/0x170 > [] microcode_init+0x21/0xf0 > [] do_one_initcall+0x26/0x170 > [] __wake_up+0x38/0x50 > [] insert_work+0x48/0x50 > [] __queue_work+0x25/0x40 > [] queue_work_on+0x3a/0x50 > [] kernel_init+0x170/0x251 > [] kernel_init+0x0/0x251 > [] kernel_thread_helper+0x7/0x10 > ======================= As a mad guess, I'd guess that someone changed get_online_cpus() so that disables preemption (with a suitable config combination, perhaps). Which would cause microcode_init()'s sysdev_driver_register() to run in atomic context. But that's just a guess - I can't immediately see any change in there which does this. Ingo, any theories? -- 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/