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

2016-09-21 Thread AKASHI Takahiro
On Tue, Sep 20, 2016 at 11:33:34AM +0100, Mark Rutland wrote: > 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: >

[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 Marinas Cc: Will Deacon Cc: Jas

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") > >