Re: [Kgdb-bugreport] [RESEND PATCH] arm64: kgdb: fix single stepping

2016-09-20 Thread AKASHI Takahiro
Jason, On Mon, Sep 19, 2016 at 05:29:36PM -0500, Jason Wessel wrote: > On 09/15/2016 11:32 PM, AKASHI Takahiro wrote: > >@@ -176,18 +183,14 @@ int kgdb_arch_handle_exception(int exception_vector, > >int signo, > >>>* over and over again. > >>>*/ > >>>

[Kgdb-bugreport] [PATCH] arm64: kgdb: handle read-only text / modules

2016-09-20 Thread AKASHI Takahiro
Handle read-only cases (CONFIG_DEBUG_RODATA/CONFIG_DEBUG_SET_MODULE_RONX) by using aarch64_insn_write() instead of probe_kernel_write(). See how this works: commit 2f896d586610 ("arm64: use fixmap for text patching") Signed-off-by: AKASHI Takahiro Cc: Catalin

Re: [Kgdb-bugreport] [PATCH] arm64: kgdb: handle read-only text / modules

2016-09-20 Thread Mark Rutland
On Tue, Sep 20, 2016 at 07:03:21PM +0900, AKASHI Takahiro wrote: > Handle read-only cases (CONFIG_DEBUG_RODATA/CONFIG_DEBUG_SET_MODULE_RONX) > by using aarch64_insn_write() instead of probe_kernel_write(). > See how this works: > commit 2f896d586610 ("arm64: use fixmap for text patching") > >

Re: [Kgdb-bugreport] [RESEND PATCH] arm64: kgdb: fix single stepping

2016-09-20 Thread Jason Wessel
On 09/15/2016 11:32 PM, AKASHI Takahiro wrote: > @@ -176,18 +183,14 @@ int kgdb_arch_handle_exception(int exception_vector, > int signo, >>> * over and over again. >>> */ >>> kgdb_arch_update_addr(linux_regs, remcom_in_buffer); >>> -