Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1261970

Re: [PATCH 0/2] Support for set_memory_* outside of module space

From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/2] Support for set_memory_* outside of module space
Date 2015-11-04 00:50 +0100
Message-ID <qqTuW-13x-7@gated-at.bofh.it> (permalink)
References <qqRCO-8it-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Nov 3, 2015 at 1:48 PM, Laura Abbott <labbott@fedoraproject.org> wrote:
>
> Hi,
>
> Based on a recent discussion[1] there is interest in having set_memory_* work
> on kernel memory for security and other use cases. This patch adds the
> ability for that to happen behind a kernel option. If this is welcome enough,
> the Kconfig can be dropped. This has been briefly tested but not stress tested.
>
> Thanks,
> Laura
>
> [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/382079.html
>
> Laura Abbott (2):
>   arm64: Get existing page protections in split_pmd
>   arm64: Allow changing of attributes outside of modules
>
>  arch/arm64/Kconfig.debug | 11 +++++++
>  arch/arm64/mm/mm.h       |  3 ++
>  arch/arm64/mm/mmu.c      | 11 ++++---
>  arch/arm64/mm/pageattr.c | 74 ++++++++++++++++++++++++++++++++++++++++++++----
>  4 files changed, 88 insertions(+), 11 deletions(-)

This seems like the right thing to have. What's arm64 doing for the
equivalent of x86 and arm's set_kernel_text_* functions? x86 and arm
call their set_memory_* functions, for example. A quick examination
shows mm/mmu.c is just doing it "by hand" in fixup_executable and
mark_rodata_ro? Could those functions use the new set_memory_* ones?

-Kees

-- 
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] Support for set_memory_* outside of module space Laura Abbott <labbott@fedoraproject.org> - 2015-11-03 22:50 +0100
  [PATCH 2/2] arm64: Allow changing of attributes outside of modules Laura Abbott <labbott@fedoraproject.org> - 2015-11-03 22:50 +0100
    Re: [PATCH 2/2] arm64: Allow changing of attributes outside of modules zhong jiang <zhongjiang@huawei.com> - 2015-11-04 04:20 +0100
    Re: [PATCH 2/2] arm64: Allow changing of attributes outside of modules Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-11-05 08:50 +0100
      Re: [PATCH 2/2] arm64: Allow changing of attributes outside of  modules Laura Abbott <labbott@redhat.com> - 2015-11-06 02:40 +0100
    Re: [PATCH 2/2] arm64: Allow changing of attributes outside of modules Xishi Qiu <qiuxishi@huawei.com> - 2015-11-05 12:20 +0100
      Re: [PATCH 2/2] arm64: Allow changing of attributes outside of  modules Laura Abbott <labbott@redhat.com> - 2015-11-06 02:20 +0100
    Re: [PATCH 2/2] arm64: Allow changing of attributes outside of modules Xishi Qiu <qiuxishi@huawei.com> - 2015-11-05 12:40 +0100
  Re: [PATCH 0/2] Support for set_memory_* outside of module space Kees Cook <keescook@chromium.org> - 2015-11-04 00:50 +0100
    Re: [PATCH 0/2] Support for set_memory_* outside of module space Laura Abbott <labbott@redhat.com> - 2015-11-04 20:00 +0100
      Re: [PATCH 0/2] Support for set_memory_* outside of module space Kees Cook <keescook@chromium.org> - 2015-11-04 20:10 +0100

csiph-web