public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@vger.kernel.org, Randy Dunlap <rdunlap@infradead.org>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Huacai Chen <chenhuacai@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Jinyang He <hejinyang@loongson.cn>,
	Kees Cook <keescook@chromium.org>,
	Liangliang Huang <huanglllzu@gmail.com>,
	Anshuman Khandual <anshuman.khandual@arm.com>,
	Michel Lespinasse <walken@google.com>,
	Daniel Jordan <daniel.m.jordan@oracle.com>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] MIPS: Add support for CONFIG_DEBUG_VIRTUAL
Date: Tue, 6 Apr 2021 15:02:04 +0200	[thread overview]
Message-ID: <20210406130204.GC9505@alpha.franken.de> (raw)
In-Reply-To: <20210331032228.21251-1-f.fainelli@gmail.com>

On Tue, Mar 30, 2021 at 08:22:07PM -0700, Florian Fainelli wrote:
> Provide hooks to intercept bad usages of virt_to_phys() and
> __pa_symbol() throughout the kernel. To make this possible, we need to
> rename the current implement of virt_to_phys() into
> __virt_to_phys_nodebug() and wrap it around depending on
> CONFIG_DEBUG_VIRTUAL.
> 
> A similar thing is needed for __pa_symbol() which is now aliased to
> __phys_addr_symbol() whose implementation is either the direct return of
> RELOC_HIDE or goes through the debug version.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Changes in v4:
> 
> - properly address sparse warning in arch/mips/kernel/vdso.c and
>   eliminate it entirely
> 
> Changes in v3:
> 
> - added missing SDPX license tag in physaddr.c
> 
> Changes in v2:
> - fixed sparse warning in arch/mips/kernel/vdso.c
> 
>  arch/mips/Kconfig            |  1 +
>  arch/mips/include/asm/io.h   | 14 ++++++++-
>  arch/mips/include/asm/page.h |  9 +++++-
>  arch/mips/kernel/vdso.c      |  5 ++--
>  arch/mips/mm/Makefile        |  2 ++
>  arch/mips/mm/physaddr.c      | 56 ++++++++++++++++++++++++++++++++++++
>  6 files changed, 83 insertions(+), 4 deletions(-)
>  create mode 100644 arch/mips/mm/physaddr.c

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

      reply	other threads:[~2021-04-06 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31  3:22 [PATCH v4] MIPS: Add support for CONFIG_DEBUG_VIRTUAL Florian Fainelli
2021-04-06 13:02 ` Thomas Bogendoerfer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210406130204.GC9505@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=akpm@linux-foundation.org \
    --cc=anshuman.khandual@arm.com \
    --cc=chenhuacai@kernel.org \
    --cc=daniel.m.jordan@oracle.com \
    --cc=f.fainelli@gmail.com \
    --cc=hejinyang@loongson.cn \
    --cc=huanglllzu@gmail.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=vbabka@suse.cz \
    --cc=walken@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox