Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 5 Mar 2003 04:12:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 5 Mar 2003 04:12:43 -0500 Received: from blackbird.intercode.com.au ([203.32.101.10]:44048 "EHLO blackbird.intercode.com.au") by vger.kernel.org with ESMTP id ; Wed, 5 Mar 2003 04:12:41 -0500 Date: Wed, 5 Mar 2003 20:22:58 +1100 (EST) From: James Morris To: Jochen Hein cc: linux-kernel , Subject: Re: [2.5.64, IPv6] sleeping function called from illegal context In-Reply-To: <87k7fefc70.fsf@jupiter.jochen.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1582 Lines: 49 On Wed, 5 Mar 2003, Jochen Hein wrote: > > The console output is: > > Debug: sleeping function called from illegal context at > include/linux/rwsem.h:43 > Call Trace: > [] __might_sleep+0x54/0x5c > [] crypto_alg_lookup+0x21/0xc8 > [] crypto_alg_mod_lookup+0xd/0x2c > [] crypto_alloc_tfm+0x11/0xc0 > [] __ipv6_regen_rndid+0xa0/0x1f4 > [] wake_up_process+0xd/0x14 > [] ipv6_regen_rndid+0x2e/0xc4 > [] run_timer_softirq+0xf1/0x144 > [] ipv6_regen_rndid+0x0/0xc4 > [] do_softirq+0x51/0xb0 > [] do_IRQ+0x114/0x130 > [] default_idle+0x0/0x34 > [] default_idle+0x0/0x34 > [] common_interrupt+0x18/0x20 > [] default_idle+0x0/0x34 > [] default_idle+0x0/0x34 > [] default_idle+0x26/0x34 > [] cpu_idle+0x35/0x44 > [] rest_init+0x0/0x5c > [] rest_init+0x55/0x5c > > __ipv6_regen_rndid(): too short regeneration interval; timer diabled > for eth0. Crypto transforms cannot be allocated in interrupt context or while holding a spinlock. It seems that at least the latter is happening in ipv6_regen_rndid(). The transform needs to be allocated prior to use in this case. - James -- James Morris - 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/