From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maarten Lankhorst Subject: bug with debug registers and 3.0rt6 Date: Sun, 31 Jul 2011 17:41:15 +0200 Message-ID: <4E35779B.7020908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Linux Kernel Mailing List To: linux-rt-users Return-path: Received: from mail-ew0-f46.google.com ([209.85.215.46]:46781 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751949Ab1GaPlT (ORCPT ); Sun, 31 Jul 2011 11:41:19 -0400 Sender: linux-rt-users-owner@vger.kernel.org List-ID: Portal 2's anti debugger checks hangs on rt6: [21940.633370] BUG: sleeping function called from invalid context at kernel/rtmutex.c:645 [21940.633371] in_atomic(): 1, irqs_disabled(): 0, pid: 4235, name: portal2.exe [21940.633372] Pid: 4235, comm: portal2.exe Tainted: P WC 3.0.0-rt6-patser+ #3 [21940.633377] Call Trace: [21940.633381] [] __might_sleep+0xca/0xf0 [21940.633383] [] rt_spin_lock+0x24/0x40 [21940.633385] [] force_sig_info+0x49/0x100 [21940.633387] [] send_sigtrap+0x68/0x70 [21940.633389] [] do_debug+0x150/0x160 [21940.633390] [] debug+0x22/0x40 and int3: [15945.341955] BUG: sleeping function called from invalid context at kernel/rtmutex.c:645 [15945.341957] in_atomic(): 1, irqs_disabled(): 0, pid: 3166, name: portal2.exe [15945.341958] Pid: 3166, comm: portal2.exe Tainted: P WC 3.0.0-rt6-patser+ #3 [15945.341959] Call Trace: [15945.341963] [] __might_sleep+0xca/0xf0 [15945.341965] [] rt_spin_lock+0x24/0x40 [15945.341968] [] force_sig_info+0x49/0x100 [15945.341969] [] force_sig+0x16/0x20 [15945.341970] [] do_trap+0x16b/0x170 [15945.341972] [] do_int3+0x99/0xc0 [15945.341973] [] int3+0x22/0x40 Is there a better solution than converting the siglock to a raw spinlock? ~Maarten