From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Cook Subject: Tracers+cyclictest causing kernel oops Date: Fri, 26 Apr 2013 09:04:48 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 To: RT Return-path: Received: from mail-ve0-f177.google.com ([209.85.128.177]:46298 "EHLO mail-ve0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753513Ab3DZIEv (ORCPT ); Fri, 26 Apr 2013 04:04:51 -0400 Received: by mail-ve0-f177.google.com with SMTP id cy12so1683795veb.8 for ; Fri, 26 Apr 2013 01:04:49 -0700 (PDT) Sender: linux-rt-users-owner@vger.kernel.org List-ID: I'm running 3.6.11-rt31 on a Raspberry Pi. Running cyclictest like this: sudo ./cyclictest -p95 -m -W -b 1000 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.72 0.28 0.10 2/137 2054 causes this: Entering kdb (current=0xca78e0a0, pid 2058) Oops: (null) due to oops @ 0xc009f654 Pid: 2058, comm: cyclictest CPU: 0 Not tainted (3.6.11-rt31+ #10) PC is at ring_buffer_lock_reserve+0x7c/0x144 LR is at ftrace_test_stop_func+0x28/0x34 pc : [] lr : [] psr: 600001d1 sp : ca7bfa78 ip : ca7bfaf0 fp : ca7bfaec r10: 00000000 r9 : c088ece0 r8 : ca7be000 r7 : 200001d1 r6 : c030dd28 r5 : c00ab928 r4 : c0786000 r3 : 200001d1 r2 : 00000018 r1 : 00000000 r0 : cb8013a0 Flags: nZCv IRQs off FIQs off Mode FIQ_32 ISA ARM Segment user Control: 00c5387d Table: 0a7b8008 DAC: 00000015 [] (unwind_backtrace+0x0/0xfc) from [] (dump_stack+0x20/0x24) [] (dump_stack+0x20/0x24) from [] (show_regs+0x4c/0x58) [] (show_regs+0x4c/0x58) from [] (kdb_dumpregs+0x38/0x60) [] (kdb_dumpregs+0x38/0x60) from [] (kdb_main_loop+0x348/0x77c) [] (kdb_main_loop+0x348/0x77c) from [] (kdb_stub+0x2f0/0x3f8) [] (kdb_stub+0x2f0/0x3f8) from [] (kgdb_handle_exception+0x164/0x6fc) [] (kgdb_handle_exception+0x164/0x6fc) from [] (kgdb_notify+0x3c/0x74) [] (kgdb_notify+0x3c/0x74) from [] (notifier_call_chain+0x54/0x94) [] (notifier_call_chain+0x54/0x94) from [] (__atomic_notifier_call_chain+0x48/0x5c) [] (__atomic_notifier_call_chain+0x48/0x5c) from [] (atomic_notifier_call_chain+0x28/0x30) [] (atomic_notifier_call_chain+0x28/0x30) from [] (notify_die+0x40/0x4c) [] (notify_die+0x40/0x4c) from [] (die+0xd8/0x3c0) [] (die+0xd8/0x3c0) from [] (bad_mode+0x4c/0x70) [] (bad_mode+0x4c/0x70) from [] (ftrace_test_stop_func+0x28/0x34) AFAICT, this is actually kgdb encountering a problem while trying to unwind the stack trace from the real problem - is that right? The problem seems to be caused by cyclictest setting up the tracer, not triggering it - it doesn't matter what I set the latency threshold to, the same thing happens. Is there a known cause for this? Any tips on how to start debugging it? Thanks, Tom