From: Frederic Weisbecker <fweisbec@gmail.com>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org,
kgdb-bugreport@lists.sourceforge.net
Subject: Re: [GIT PULL] kgdb regression fixes for 2.6.35-rc5
Date: Thu, 29 Jul 2010 03:06:08 +0200 [thread overview]
Message-ID: <20100729010607.GB13088@nowhere> (raw)
In-Reply-To: <4C50C7F2.8020305@windriver.com>
On Wed, Jul 28, 2010 at 07:14:42PM -0500, Jason Wessel wrote:
> On 07/28/2010 04:26 PM, Linus Torvalds wrote:
> > On Wed, Jul 28, 2010 at 2:17 PM, Frederic Weisbecker <fweisbec@gmail.com> wrote:
> >> I'm sorry I spot it a bit late.
> >> There is a little issue in this patch, irqs won't
> >> be restored:
> >>
> >> @@ -588,9 +588,10 @@ int kgdb_ll_trap(int cmd, const char *str,
> >> if (!kgdb_io_module_registered)
> >> return NOTIFY_DONE;
> >>
> >> + local_irq_save(flags);
> >> return __kgdb_notify(&args, cmd);
> >> + local_irq_restore(flags);
> >> }
> >
> > Yeah, that's obviously crap. I also wonder why __kgdb_notify messes up
> > the flags to begin with.
> >
>
> This should not be needed as the irqs should already be off while in the overflow handler.
Interrupts are not disabled in the debug exception handler.
I'm not sure what would be the state of dr6 if a nested debug exception
would happen while do_debug() is interrupted.
Perhaps the previous dr6 value is dropped. Intel manuals don't seem to say anything
about that.
Anyway that's a separate issue. The current patch fixes a regression and
it looks good.
Thanks.
next prev parent reply other threads:[~2010-07-29 1:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 20:39 [GIT PULL] kgdb regression fixes for 2.6.35-rc5 Jason Wessel
2010-07-28 20:39 ` [PATCH] x86,kgdb: Fix hw breakpoint regression Jason Wessel
2010-07-28 21:17 ` [GIT PULL] kgdb regression fixes for 2.6.35-rc5 Frederic Weisbecker
2010-07-28 21:26 ` Linus Torvalds
2010-07-29 0:14 ` Jason Wessel
2010-07-29 1:06 ` Frederic Weisbecker [this message]
2010-07-29 2:49 ` [Kgdb-bugreport] " DDD
2010-07-29 2:55 ` Frederic Weisbecker
-- strict thread matches above, loose matches on Subject: below --
2010-07-22 0:36 Jason Wessel
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=20100729010607.GB13088@nowhere \
--to=fweisbec@gmail.com \
--cc=jason.wessel@windriver.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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