linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maarten Lankhorst <m.b.lankhorst@gmail.com>
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: bug with debug registers and 3.0rt6
Date: Sun, 31 Jul 2011 17:41:15 +0200	[thread overview]
Message-ID: <4E35779B.7020908@gmail.com> (raw)

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]  [<ffffffff8103fc0a>] __might_sleep+0xca/0xf0
[21940.633383]  [<ffffffff8160d344>] rt_spin_lock+0x24/0x40
[21940.633385]  [<ffffffff8106b879>] force_sig_info+0x49/0x100
[21940.633387]  [<ffffffff8100e6d8>] send_sigtrap+0x68/0x70
[21940.633389]  [<ffffffff8160e6f0>] do_debug+0x150/0x160
[21940.633390]  [<ffffffff8160dbf2>] 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]  [<ffffffff8103fc0a>] __might_sleep+0xca/0xf0
[15945.341965]  [<ffffffff8160d344>] rt_spin_lock+0x24/0x40
[15945.341968]  [<ffffffff8106b879>] force_sig_info+0x49/0x100
[15945.341969]  [<ffffffff8106b946>] force_sig+0x16/0x20
[15945.341970]  [<ffffffff8160e0ab>] do_trap+0x16b/0x170
[15945.341972]  [<ffffffff8160e509>] do_int3+0x99/0xc0
[15945.341973]  [<ffffffff8160dc32>] int3+0x22/0x40

Is there a better solution than converting the siglock to a raw spinlock?

~Maarten

                 reply	other threads:[~2011-07-31 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E35779B.7020908@gmail.com \
    --to=m.b.lankhorst@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).