From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:55804 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757625AbcIWJt6 (ORCPT ); Fri, 23 Sep 2016 05:49:58 -0400 Date: Fri, 23 Sep 2016 10:49:53 +0100 From: Catalin Marinas To: AKASHI Takahiro Cc: will.deacon@arm.com, jason.wessel@windriver.com, mark.rutland@arm.com, kgdb-bugreport@lists.sourceforge.net, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2.1] arm64: kgdb: handle read-only text / modules Message-ID: <20160923094953.GC27704@e104818-lin.cambridge.arm.com> References: <20160923074208.9899-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160923074208.9899-1-takahiro.akashi@linaro.org> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Sep 23, 2016 at 04:42:08PM +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") > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Mark Rutland > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Jason Wessel > Cc: # 3.18-3.19: 2f896d5: arm64: use fixmap > Cc: # 3.18-3.19: f6242ca: arm64: Fix text > Cc: # 4.0- Queued for 4.8 with a slight change in the last Cc: tag above: Cc: # 3.18.x- Thanks. -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Fri, 23 Sep 2016 10:49:53 +0100 Subject: [PATCH v2.1] arm64: kgdb: handle read-only text / modules In-Reply-To: <20160923074208.9899-1-takahiro.akashi@linaro.org> References: <20160923074208.9899-1-takahiro.akashi@linaro.org> Message-ID: <20160923094953.GC27704@e104818-lin.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Sep 23, 2016 at 04:42:08PM +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") > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Mark Rutland > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Jason Wessel > Cc: # 3.18-3.19: 2f896d5: arm64: use fixmap > Cc: # 3.18-3.19: f6242ca: arm64: Fix text > Cc: # 4.0- Queued for 4.8 with a slight change in the last Cc: tag above: Cc: # 3.18.x- Thanks. -- Catalin