From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tim Sander" Subject: Re: [ANNOUNCE] 3.0-rt6 : BUG at kernel/trmutex.c:724! Date: Thu, 4 Aug 2011 18:34:20 +0200 Message-ID: <201108041834.20575.tim.sander@hbm.com> References: Mime-Version: 1.0 Content-Type: text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "LKML" , "linux-rt-users" , "Peter Zijlstra" , "Paul E. McKenney" To: "Thomas Gleixner" Return-path: Received: from gateway.hbm.com ([213.157.30.2]:9607 "EHLO hbmntx5.hbm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612Ab1HDQkK convert rfc822-to-8bit (ORCPT ); Thu, 4 Aug 2011 12:40:10 -0400 Content-class: urn:content-classes:message In-Reply-To: Sender: linux-rt-users-owner@vger.kernel.org List-ID: Hi=20 I was really happy to find 6 preempt rt releases for the 3.0 kernel aft= er holliday :-). So i went for a testdrive and found an error: The error occurs in a non= released non=20 mainline kernel and is available from me upon request. It has been work= ing on=20 (2.6.39,3.0) but is not working on 3.0-rt6. It fails in an interrupt wh= ich calls:=20 wake_up_interruptible(&hbm_device.wait); The waitque has been initialized with: init_waitqueue_head(&hbm_device.wait); before interrupts where enabled. So i don't think its a race. Will test if the 3.0-rc7 fixes the problem. Best regards Tim Below is the output: kernel BUG at kernel/rtmutex.c:724! Unable to handle kernel NULL pointer dereference at virtual address 000= 00000 pgd =3D c7148000 [00000000] *pgd=3D87131831, *pte=3D00000000, *ppte=3D00000000 Internal error: Oops: 817 [#1] PREEMPT Modules linked in: msp fpga canterm i2c_imx netx netx_reset dspload fpg= aload mxc_nand nand nand_ids nand_ecc CPU: 0 Not tainted (3.0.0-pmx-rt6-00007-g6b68987 #153) PC is at __bug+0x24/0x30 LR is at vprintk+0x3ec/0x45c pc : [] lr : [] psr: 60000193 sp : c715fcf0 ip : c715fc30 fp : c715fcfc r10: c0319234 r9 : 00000001 r8 : 00000040 r7 : 00000000 r6 : 00000001 r5 : c787d060 r4 : bf03c6c4 r3 : 00000000 r2 : 00010003 r1 : c715fc30 r0 : 0000002a =46lags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user Control: 00c5387d Table: 87148008 DAC: 00000015 Process meassrv (pid: 450, stack limit =3D 0xc715e268) Stack: (0xc715fcf0 to 0xc7160000) fce0: c715fd5c c715fd00 c023eb44 c0= 02cb98 fd00: c023f268 c023ed68 c715fd3c c715fd18 c00346c8 c023f264 00000000 c0= 0632b0 fd20: bf03c628 00000001 00000041 00000000 00000000 c02fee01 00000041 bf= 03c6c4 fd40: 00000001 00000001 00000000 00000040 c715fd6c c715fd60 c023f240 c0= 23ea54 fd60: c715fd94 c715fd70 c00346a8 c023f23c c715fd8c c715fd80 bf03c628 00= 000001 fd80: 00000041 00000000 c715fdac c715fd98 bf03bb24 c0034690 c7b685a0 c0= 2feef8 fda0: c715fde4 c715fdb0 c006eecc bf03ba70 ffffffff 00000004 000a25a8 c0= 2feef8 fdc0: c7b685a0 c02f9678 00000002 00000040 00000003 00000001 c715fdfc c7= 15fde8 fde0: c006f050 c006eea0 c02feef8 00000002 c715fe14 c715fe00 c00710c4 c0= 06f000 fe00: c0071008 00000001 c715fe24 c715fe18 c006e8d8 c0071014 c715fe54 c7= 15fe28 fe20: c0033210 c006e8b0 ffffffff 00000034 00000000 00340000 00000001 00= 000000 fe40: c715e000 00000000 c715fe64 c715fe58 c0033250 c003317c c715fe74 c7= 15fe68 fe60: c006e8d8 c0033230 c715fe8c c715fe78 c0024068 c006e8b0 ffffffff f5= 800000 fe80: c715fee4 c715fe90 c002968c c002400c c0034fe8 c715fe48 c715fe78 00= 000000 fea0: bf03c6c4 c715ff18 c715ff0c c787d060 00000004 c715e000 00000000 c7= 15fee4 fec0: c715fe18 c715fed8 c002cb70 c023f240 60000013 ffffffff c715ff04 c7= 15fee8 fee0: c0056338 c023f23c c00365cc c715e000 41093914 c715ff0c c715ff3c c7= 15ff08 ff00: bf03b9e0 c005631c 00000001 00000000 c787d060 c00365cc 00000000 00= 000000 ff20: 00000004 c7114b60 41093914 c715ff70 c715ff6c c715ff40 c009e95c bf= 03b99c ff40: c715ff6c c715ff50 c009fab0 c7114b60 41093914 00000000 00000000 00= 000004 ff60: c715ffa4 c715ff70 c009ea2c c009e8b0 00000000 00000000 c715ff94 00= 000001 ff80: c0042578 bee199b4 00000000 4109fca8 00000003 c0029c04 00000000 c7= 15ffa8 ffa0: c0029a80 c009e9f4 bee199b4 00000000 00000009 41093914 00000004 be= e199b4 ffc0: bee199b4 00000000 4109fca8 00000003 410a0460 bee19934 00000000 41= 09ff9c ffe0: 00000000 4108bb48 404e43fc 404e4bc4 80000010 00000009 86bae92e 86= fa7a2e Backtrace:=20 [] (__bug+0x0/0x30) from [] (rt_spin_lock_slowlock+= 0xfc/0x274) [] (rt_spin_lock_slowlock+0x0/0x274) from [] (rt_sp= in_lock+0x10/0x14) r8:00000040 r7:00000000 r6:00000001 r5:00000001 r4:bf03c6c4 [] (rt_spin_lock+0x0/0x14) from [] (__wake_up+0x24/= 0x4c) [] (__wake_up+0x0/0x4c) from [] (hbm_mmap_irq_handl= er+0xc0/0x100 [fpga]) r7:00000000 r6:00000041 r5:00000001 r4:bf03c628 [] (hbm_mmap_irq_handler+0x0/0x100 [fpga]) from [] = (handle_irq_event_percpu+0x38/0x160) r5:c02feef8 r4:c7b685a0 [] (handle_irq_event_percpu+0x0/0x160) from [] (han= dle_irq_event+0x5c/0x7c) [] (handle_irq_event+0x0/0x7c) from [] (handle_leve= l_irq+0xbc/0x108) r5:00000002 r4:c02feef8 [] (handle_level_irq+0x0/0x108) from [] (generic_ha= ndle_irq+0x34/0x48) r4:00000001 r3:c0071008 [] (generic_handle_irq+0x0/0x48) from [] (mxc_gpio_= irq_handler+0xa0/0xb4) [] (mxc_gpio_irq_handler+0x0/0xb4) from [] (mx3_gpi= o_irq_handler+0x2c/0x30) [] (mx3_gpio_irq_handler+0x0/0x30) from [] (generic= _handle_irq+0x34/0x48) [] (generic_handle_irq+0x0/0x48) from [] (asm_do_IR= Q+0x68/0x8c) [] (asm_do_IRQ+0x0/0x8c) from [] (__irq_svc+0x4c/0x= 94) Exception stack(0xc715fe90 to 0xc715fed8) fe80: c0034fe8 c715fe48 c715fe78 00= 000000 fea0: bf03c6c4 c715ff18 c715ff0c c787d060 00000004 c715e000 00000000 c7= 15fee4 fec0: c715fe18 c715fed8 c002cb70 c023f240 60000013 ffffffff r5:f5800000 r4:ffffffff [] (rt_spin_lock+0x0/0x14) from [] (add_wait_queue+= 0x28/0x4c) [] (add_wait_queue+0x0/0x4c) from [] (hbm_mmap_read= +0x50/0xd4 [fpga]) r6:c715ff0c r5:41093914 r4:c715e000 r3:c00365cc [] (hbm_mmap_read+0x0/0xd4 [fpga]) from [] (vfs_rea= d+0xb8/0x144) r7:c715ff70 r6:41093914 r5:c7114b60 r4:00000004 [] (vfs_read+0x0/0x144) from [] (sys_read+0x44/0x70= ) r8:00000004 r7:00000000 r6:00000000 r5:41093914 r4:c7114b60 [] (sys_read+0x0/0x70) from [] (ret_fast_syscall+0x= 0/0x30) r8:c0029c04 r7:00000003 r6:4109fca8 r5:00000000 r4:bee199b4 Code: e59f0010 e1a01003 eb084104 e3a03000 (e5833000)=20 ---[ end trace 0000000000000002 ]--- Kernel panic - not syncing: Fatal exception in interrupt Backtrace:=20 [] (dump_backtrace+0x0/0x110) from [] (dump_stack+0= x18/0x1c) r6:00000000 r5:c715fca8 r4:c030f370 r3:00000000 [] (dump_stack+0x0/0x1c) from [] (panic+0x64/0x188) [] (panic+0x0/0x188) from [] (die+0x100/0x128) r3:00010000 r2:c715fb78 r1:00000001 r0:c02afc9d r7:00000817 [] (die+0x0/0x128) from [] (__do_kernel_fault+0x6c/= 0x8c) r7:c715fca8 r6:c7abae40 r5:00000817 r4:00000000 [] (__do_kernel_fault+0x0/0x8c) from [] (do_page_fa= ult+0x134/0x14c) r8:00000000 r7:c02f9190 r6:c787d060 r5:c7abae40 r4:c715fca8 r3:c715fca8 [] (do_page_fault+0x0/0x14c) from [] (do_DataAbort+= 0x38/0xa0) [] (do_DataAbort+0x0/0xa0) from [] (__dabt_svc+0x4c= /0x80) Exception stack(0xc715fca8 to 0xc715fcf0) fca0: 0000002a c715fc30 00010003 00000000 bf03c6c4 c7= 87d060 fcc0: 00000001 00000000 00000040 00000001 c0319234 c715fcfc c715fc30 c7= 15fcf0 fce0: c003dd58 c002cbb0 60000193 ffffffff r8:00000040 r7:00000000 r6:00000001 r5:c715fcdc r4:ffffffff [] (__bug+0x0/0x30) from [] (rt_spin_lock_slowlock+= 0xfc/0x274) [] (rt_spin_lock_slowlock+0x0/0x274) from [] (rt_sp= in_lock+0x10/0x14) r8:00000040 r7:00000000 r6:00000001 r5:00000001 r4:bf03c6c4 [] (rt_spin_lock+0x0/0x14) from [] (__wake_up+0x24/= 0x4c) [] (__wake_up+0x0/0x4c) from [] (hbm_mmap_irq_handl= er+0xc0/0x100 [fpga]) r7:00000000 r6:00000041 r5:00000001 r4:bf03c628 [] (hbm_mmap_irq_handler+0x0/0x100 [fpga]) from [] = (handle_irq_event_percpu+0x38/0x160) r5:c02feef8 r4:c7b685a0 [] (handle_irq_event_percpu+0x0/0x160) from [] (han= dle_irq_event+0x5c/0x7c) [] (handle_irq_event+0x0/0x7c) from [] (handle_leve= l_irq+0xbc/0x108) r5:00000002 r4:c02feef8 [] (handle_level_irq+0x0/0x108) from [] (generic_ha= ndle_irq+0x34/0x48) r4:00000001 r3:c0071008 [] (generic_handle_irq+0x0/0x48) from [] (mxc_gpio_= irq_handler+0xa0/0xb4) [] (mxc_gpio_irq_handler+0x0/0xb4) from [] (mx3_gpi= o_irq_handler+0x2c/0x30) [] (mx3_gpio_irq_handler+0x0/0x30) from [] (generic= _handle_irq+0x34/0x48) [] (generic_handle_irq+0x0/0x48) from [] (asm_do_IR= Q+0x68/0x8c) [] (asm_do_IRQ+0x0/0x8c) from [] (__irq_svc+0x4c/0x= 94) Exception stack(0xc715fe90 to 0xc715fed8) fe80: c0034fe8 c715fe48 c715fe78 00= 000000 fea0: bf03c6c4 c715ff18 c715ff0c c787d060 00000004 c715e000 00000000 c7= 15fee4 fec0: c715fe18 c715fed8 c002cb70 c023f240 60000013 ffffffff r5:f5800000 r4:ffffffff [] (rt_spin_lock+0x0/0x14) from [] (add_wait_queue+= 0x28/0x4c) [] (add_wait_queue+0x0/0x4c) from [] (hbm_mmap_read= +0x50/0xd4 [fpga]) r6:c715ff0c r5:41093914 r4:c715e000 r3:c00365cc [] (hbm_mmap_read+0x0/0xd4 [fpga]) from [] (vfs_rea= d+0xb8/0x144) r7:c715ff70 r6:41093914 r5:c7114b60 r4:00000004 [] (vfs_read+0x0/0x144) from [] (sys_read+0x44/0x70= ) r8:00000004 r7:00000000 r6:00000000 r5:41093914 r4:c7114b60 [] (sys_read+0x0/0x70) from [] (ret_fast_syscall+0x= 0/0x30) r8:c0029c04 r7:00000003 r6:4109fca8 r5:00000000 r4:bee199b4 Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, = Germany | www.hbm.com=20 Registered as GmbH (German limited liability corporation) in the commer= cial register at the local court of Darmstadt, HRB 1147 =20 Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of = the board: James Charles Webster Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregist= er des Amtsgerichts Darmstadt unter HRB 1147=20 Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhor= st | Aufsichtsratsvorsitzender: James Charles Webster The information in this email is confidential. It is intended solely fo= r the addressee. If you are not the intended recipient, please let me k= now and delete this email. Die in dieser E-Mail enthaltene Information ist vertraulich und ledigli= ch f=FCr den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Emp= faenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail= =2E -- To unsubscribe from this list: send the line "unsubscribe linux-rt-user= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html