lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 6 Apr 2021 15:02:04 +0200
From:   Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To:     Florian Fainelli <f.fainelli@...il.com>
Cc:     linux-mips@...r.kernel.org, Randy Dunlap <rdunlap@...radead.org>,
        Jiaxun Yang <jiaxun.yang@...goat.com>,
        Vlastimil Babka <vbabka@...e.cz>,
        Huacai Chen <chenhuacai@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Jinyang He <hejinyang@...ngson.cn>,
        Kees Cook <keescook@...omium.org>,
        Liangliang Huang <huanglllzu@...il.com>,
        Anshuman Khandual <anshuman.khandual@....com>,
        Michel Lespinasse <walken@...gle.com>,
        Daniel Jordan <daniel.m.jordan@...cle.com>,
        open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

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@...il.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 ]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ