mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Thompson <daniel.thompson@linaro.org>
To: Ilya Dryomov <idryomov@gmail.com>,
	Jason Wessel <jason.wessel@windriver.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	kgdb-bugreport@lists.sourceforge.net,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: KGDB/KDB treats WARN*() as Oops on x86 since 4.12
Date: Fri, 13 Oct 2017 15:59:44 +0100	[thread overview]
Message-ID: <7d12c8e1-0389-9982-9fd8-070dc0d26bef@linaro.org> (raw)
In-Reply-To: <CAOi1vP-YRgSNZ82XrMK0H3M28ux+St91AdM3bWsW0fCzmK=FjQ@mail.gmail.com>

On 09/10/17 13:24, Ilya Dryomov wrote:
> Hi Jason,
> 
> Starting with 4.12, WARN*() is implemented with ud0, generating an
> Invalid Opcode exception.  KGDB/KDB gets entered as if it were an Oops,
> making KGDB/KDB rather hard to use, particularly on testing kernels.
> 
> Alexander posted a fix a while back, but Peter seems to be waiting for
> your ack.  Could you please weigh in?
> 
>    [PATCH] x86/debug: Handle warnings before the notifier chain
>    https://patchwork.kernel.org/patch/9859065/

Hmnnn... IIRC arm64 code has been also been blocked for a couple of 
releases whilst Will D. waited for an ack that never came.

My own reading of the code is that the patch in question restores the 
status quo, that there will still be mechanisms to provoke entry to 
kdb/kgdb during a warning (breakpoint on __warn, engage panic_on_warn, 
etc) and that these are not obviously recursive[1].

Put another way I'm happy to dig the patch out of my mail archive and 
throw in an Acked-By: but since I have no official role within kdb/kgdb 
(I'm just an interested bystander) it might not be enough for Peter.


Daniel.


[1] I'm not a huge x86 expert so correct me if I am wrong but I think
     its ok for us to trap here providing its for a different reason.

  reply	other threads:[~2017-10-13 14:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 12:24 Ilya Dryomov
2017-10-13 14:59 ` Daniel Thompson [this message]
2017-11-09 19:08   ` Ilya Dryomov
2017-11-10  6:15     ` 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=7d12c8e1-0389-9982-9fd8-070dc0d26bef@linaro.org \
    --to=daniel.thompson@linaro.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=idryomov@gmail.com \
    --cc=jason.wessel@windriver.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®