From: Ingo Molnar <mingo@elte.hu>
To: Roland McGrath <roland@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86 handle_vm86_trap cleanup
Date: Fri, 21 Mar 2008 11:39:46 +0100 [thread overview]
Message-ID: <20080321103946.GO20420@elte.hu> (raw)
In-Reply-To: <20080317092108.EC6C626F995@magilla.localdomain>
* Roland McGrath <roland@redhat.com> wrote:
> Use force_sig in handle_vm86_trap like other machine traps do.
thanks, applied.
> - if (current->ptrace & PT_PTRACED) {
> - unsigned long flags;
> - spin_lock_irqsave(¤t->sighand->siglock, flags);
> - sigdelset(¤t->blocked, SIGTRAP);
> - recalc_sigpending();
> - spin_unlock_irqrestore(¤t->sighand->siglock, flags);
> - }
> - send_sig(SIGTRAP, current, 1);
> current->thread.trap_no = trapno;
> current->thread.error_code = error_code;
> + force_sig(SIGTRAP, current);
> return 0;
> }
for the record, this also changes semantics, because previously we'd
permanently unblock SIGTRAP (most certainly as a hack, to be able to do
the send_sig()), while now we use force_sig() which just ignores the
blocked mask. (and i agree with your fix of course)
Ingo
next prev parent reply other threads:[~2008-03-21 10:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 9:21 Roland McGrath
2008-03-21 10:39 ` Ingo Molnar [this message]
2008-03-22 3:53 ` Roland McGrath
2008-03-22 11:17 ` Ingo Molnar
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=20080321103946.GO20420@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®