From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Christophe Leroy <christophe.leroy@c-s.fr>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: powerpc/kgdb: add kgdb_arch_set/remove_breakpoint()
Date: Mon, 22 Oct 2018 20:37:09 +1100 (AEDT) [thread overview]
Message-ID: <42dryZ1yBNz9sDC@ozlabs.org> (raw)
In-Reply-To: <872199441fd43b05fc1c7d049098ef7c0e83f4c5.1537262646.git.christophe.leroy@c-s.fr>
On Tue, 2018-09-18 at 09:26:03 UTC, Christophe Leroy wrote:
> Generic implementation fails to remove breakpoints after init
> when CONFIG_STRICT_KERNEL_RWX is selected:
>
> [ 13.251285] KGDB: BP remove failed: c001c338
> [ 13.259587] kgdbts: ERROR PUT: end of test buffer on 'do_fork_test' line 8 expected OK got $E14#aa
> [ 13.268969] KGDB: re-enter exception: ALL breakpoints killed
> [ 13.275099] CPU: 0 PID: 1 Comm: init Not tainted 4.18.0-g82bbb913ffd8 #860
> [ 13.282836] Call Trace:
> [ 13.285313] [c60e1ba0] [c0080ef0] kgdb_handle_exception+0x6f4/0x720 (unreliable)
> [ 13.292618] [c60e1c30] [c000e97c] kgdb_handle_breakpoint+0x3c/0x98
> [ 13.298709] [c60e1c40] [c000af54] program_check_exception+0x104/0x700
> [ 13.305083] [c60e1c60] [c000e45c] ret_from_except_full+0x0/0x4
> [ 13.310845] [c60e1d20] [c02a22ac] run_simple_test+0x2b4/0x2d4
> [ 13.316532] [c60e1d30] [c0081698] put_packet+0xb8/0x158
> [ 13.321694] [c60e1d60] [c00820b4] gdb_serial_stub+0x230/0xc4c
> [ 13.327374] [c60e1dc0] [c0080af8] kgdb_handle_exception+0x2fc/0x720
> [ 13.333573] [c60e1e50] [c000e928] kgdb_singlestep+0xb4/0xcc
> [ 13.339068] [c60e1e70] [c000ae1c] single_step_exception+0x90/0xac
> [ 13.345100] [c60e1e80] [c000e45c] ret_from_except_full+0x0/0x4
> [ 13.350865] [c60e1f40] [c000e11c] ret_from_syscall+0x0/0x38
> [ 13.356346] Kernel panic - not syncing: Recursive entry to debugger
>
> This patch creates powerpc specific version of
> kgdb_arch_set_breakpoint() and kgdb_arch_remove_breakpoint()
> using patch_instruction()
>
> Fixes: 1e0fc9d1eb2b ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs")
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/fb978ca207743badfe7efd9eebe68b
cheers
prev parent reply other threads:[~2018-10-22 9:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 9:26 [PATCH] powerpc/kgdb: add kgdb_arch_set/remove_breakpoint() Christophe Leroy
2018-09-18 9:33 ` Checkpatch bad Warning (Re: [PATCH] powerpc/kgdb: add kgdb_arch_set/remove_breakpoint()) Christophe Leroy
2018-09-20 3:02 ` Joe Perches
2018-09-20 13:13 ` Michael Ellerman
2018-09-20 13:19 ` Christophe LEROY
2018-09-20 1:23 ` Christophe Leroy
2018-09-20 20:36 ` Paul Burton
2018-09-20 14:07 ` Christophe Leroy
2018-10-22 9:37 ` Michael Ellerman [this message]
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=42dryZ1yBNz9sDC@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=benh@kernel.crashing.org \
--cc=christophe.leroy@c-s.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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