Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261718AbUJYJNh (ORCPT ); Mon, 25 Oct 2004 05:13:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261726AbUJYJNg (ORCPT ); Mon, 25 Oct 2004 05:13:36 -0400 Received: from mout1.freenet.de ([194.97.50.132]:10444 "EHLO mout1.freenet.de") by vger.kernel.org with ESMTP id S261718AbUJYJMl (ORCPT ); Mon, 25 Oct 2004 05:12:41 -0400 From: Michael Buesch To: kraxel@bytesex.org Subject: bttv_ioctl / BKL preempt / scheduling while atomic and panic Date: Mon, 25 Oct 2004 11:11:58 +0200 User-Agent: KMail/1.7 Cc: video4linux-list@redhat.com, linux kernel mailing list MIME-Version: 1.0 Message-Id: <200410251112.03241.mbuesch@freenet.de> Content-Type: multipart/signed; boundary="nextPart1127907.JfeoCITSZt"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11744 Lines: 204 --nextPart1127907.JfeoCITSZt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I recently had a crash with kernel 2.6.9-ck2-ac4-nozeroram The nozeroram patch is available here: http://people.freenet.de/tuxsoft/other/nozeroram.diff I got the following messages in dmesg: Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] bttv_ioctl+0x31/0x5e [bttv] Oct 25 09:39:03 lfs kernel: [] bttv_do_ioctl+0x0/0x1728 [bttv] Oct 25 09:39:03 lfs kernel: [] sys_ioctl+0x1d4/0x245 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __mod_timer+0x11d/0x159 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0x6a/0xb7 Oct 25 09:39:03 lfs kernel: [] process_timeout+0x0/0x5 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] _spin_unlock_irq+0x9/0x1c Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] bttv_ioctl+0x31/0x5e [bttv] Oct 25 09:39:03 lfs kernel: [] bttv_do_ioctl+0x0/0x1728 [bttv] Oct 25 09:39:03 lfs kernel: [] sys_ioctl+0x1d4/0x245 Oct 25 09:39:03 lfs kernel: [] sys_time+0x16/0x50 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] copy_to_user+0x32/0x45 Oct 25 09:39:03 lfs kernel: [] sys_gettimeofday+0x2c/0x65 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] copy_to_user+0x32/0x45 Oct 25 09:39:03 lfs kernel: [] sys_gettimeofday+0x2c/0x65 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __do_softirq+0x5f/0xca Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] copy_to_user+0x32/0x45 Oct 25 09:39:03 lfs kernel: [] sys_gettimeofday+0x2c/0x65 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] copy_to_user+0x32/0x45 Oct 25 09:39:03 lfs kernel: [] sys_gettimeofday+0x2c/0x65 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] bttv_ioctl+0x31/0x5e [bttv] Oct 25 09:39:03 lfs kernel: [] bttv_do_ioctl+0x0/0x1728 [bttv] Oct 25 09:39:03 lfs kernel: [] sys_ioctl+0x1d4/0x245 Oct 25 09:39:03 lfs kernel: [] sys_time+0x16/0x50 Oct 25 09:39:03 lfs kernel: [] work_resched+0x5/0x16 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __mod_timer+0x11d/0x159 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0x6a/0xb7 Oct 25 09:39:03 lfs kernel: [] try_to_wake_up+0x1e1/0x26d Oct 25 09:39:03 lfs kernel: [] process_timeout+0x0/0x5 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] print_context_stack+0x1d/0x59 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: bad: scheduling while atomic! Oct 25 09:39:03 lfs kernel: [] schedule+0x4a0/0x572 Oct 25 09:39:03 lfs kernel: [] __alloc_pages+0x9f/0x323 Oct 25 09:39:03 lfs kernel: [] sock_aio_read+0xe8/0x100 Oct 25 09:39:03 lfs kernel: [] schedule_timeout+0xb5/0xb7 Oct 25 09:39:03 lfs kernel: [] add_wait_queue+0x1a/0x46 Oct 25 09:39:03 lfs kernel: [] unix_poll+0xc1/0xc6 Oct 25 09:39:03 lfs kernel: [] do_select+0x294/0x2cf Oct 25 09:39:03 lfs kernel: [] __pollwait+0x0/0xc1 Oct 25 09:39:03 lfs kernel: [] autoremove_wake_function+0x0/0x43 Oct 25 09:39:03 lfs kernel: [] sys_select+0x255/0x488 Oct 25 09:39:03 lfs kernel: [] sysenter_past_esp+0x52/0x71 Oct 25 09:39:03 lfs kernel: Warning: kfree_skb on hard IRQ 00000000 [snipped thousands of scheduling while atomic messages] Then the kernel panicked. BKL preempt is enabled. I think this could be the reason for the crash. (normal preempt is enabled as well) It's all non-reproduceable. =2D-=20 Regards Michael Buesch [ http://www.tuxsoft.de.vu ] --nextPart1127907.JfeoCITSZt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBfMNjFGK1OIvVOP4RAk0YAJ9I+SihqysY0HoBUT5GT4VfNY2YGwCbBMB4 GDWPWTBAwybpiNXT47+jacg= =61mL -----END PGP SIGNATURE----- --nextPart1127907.JfeoCITSZt-- - 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/