]> git.baikalelectronics.ru Git - kernel.git/commit
arm: kgdb: Handle read-only text / modules
authorDoug Anderson <dianders@chromium.org>
Tue, 22 Apr 2014 22:14:51 +0000 (15:14 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 16 Oct 2014 21:38:53 +0000 (14:38 -0700)
commita67c0d2d61442f4dbf90f23301b3dfd1370c43b4
treea5571f323a6f923d5b8d4674112eec798f0bb13b
parentf9446dbe6e170f15edebf87f71a08ea883c9b3d3
arm: kgdb: Handle read-only text / modules

Handle the case where someone has set the text segment of the kernel
as read-only by using the newly introduced "patch" mechanism.

Signed-off-by: Doug Anderson <dianders@chromium.org>
[kees: switched structure size check to BUILD_BUG_ON (sboyd)]
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/kernel/Makefile
arch/arm/kernel/kgdb.c