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


Groups > linux.kernel > #1511069

Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL

From Mark Rutland <mark.rutland@arm.com>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL
Date 2016-10-28 13:20 +0200
Message-ID <sxdmx-7Bc-1@gated-at.bofh.it> (permalink)
References <sx33P-G0-3@gated-at.bofh.it> <sxaeZ-5mE-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Oct 28, 2016 at 08:52:50AM +0100, Ard Biesheuvel wrote:
> Hi Laura,
> 
> On 28 October 2016 at 01:18, Laura Abbott <labbott@redhat.com> wrote:
> > x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks
> > on virt_to_phys calls. The goal is to catch users who are calling
> > virt_to_phys on non-linear addresses immediately. As features
> > such as CONFIG_VMAP_STACK get enabled for arm64, this becomes
> > increasingly important. Add checks to catch bad virt_to_phys
> > usage.
> 
> I think this is a useful thing to have. However, the Kconfig
> description talks about virt to page translations, not virt to phys.
> Of course, this is a shift away from being equivalent on x86, but not
> so much on arm64. Any concerns there?

See commit 59ea746337c69f6a ("MM: virtual address debug"); the existing
x86 cases cover virt to phys also.

The Kconfig text does say "and friends"...

Thanks,
Mark.

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


Thread

[RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2016-10-28 02:20 +0200
  Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-10-28 10:00 +0200
    Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Mark Rutland <mark.rutland@arm.com> - 2016-10-28 13:20 +0200
    Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2016-10-28 19:30 +0200
  Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Mark Rutland <mark.rutland@arm.com> - 2016-10-28 17:00 +0200
    Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2016-10-28 19:50 +0200
      Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2016-10-29 00:10 +0200
        Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-10-29 10:50 +0200
          Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL Laura Abbott <labbott@redhat.com> - 2016-11-02 21:30 +0100

csiph-web