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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200212122840.5p3kvijii3qboltt@mail.google.com>
Date:   Wed, 12 Feb 2020 20:28:42 +0800
From:   Changbin Du <changbin.du@...il.com>
To:     Changbin Du <changbin.du@...il.com>
Cc:     Andrey Ryabinin <aryabinin@...tuozzo.com>,
        Alexander Potapenko <glider@...gle.com>,
        Jonathan Corbet <corbet@....net>,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        hpa@...or.com, x86@...nel.org, Andy Lutomirski <luto@...nel.org>,
        Masahiro Yamada <masahiroy@...nel.org>,
        linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-kbuild@...r.kernel.org
Subject: Re: [PATCH 0/2] Add SANITIZE_xx.o & SANITIZE and apply them to x86

Hello, Any comments? Thanks.

On Sat, Feb 01, 2020 at 02:24:57PM +0800, Changbin Du wrote:
> These two patches add SANITIZE_xx.o and SANITIZE to disable all sanitizers for
> specific files, and apply them to x86 booting code.
> 
> We need to disable UBSAN for some of ealy stage code:
>  o For code which could operate in one-one mapping mode. In this case,
>    kernel would crash at accessing data parameter when invoking UBSAN
>    handlers.
>  o Since UBSAN handlers are instrumented by KASAN, so invoking UBSAN
>    handlers before KASAN is initiated also is not allowed.
> 
> Changbin Du (2):
>   sanitize: Add SANITIZE_xx.o and SANITIZE to disable all sanitizers for
>     specific files
>   x86: Disable both KASAN and UBSAN for some booting code
> 
>  Documentation/dev-tools/kasan.rst | 12 ++++++++++++
>  arch/x86/boot/Makefile            |  2 +-
>  arch/x86/boot/compressed/Makefile |  2 +-
>  arch/x86/entry/vdso/Makefile      |  3 +--
>  arch/x86/kernel/Makefile          | 10 +++++-----
>  arch/x86/lib/Makefile             |  2 +-
>  arch/x86/mm/Makefile              |  4 ++--
>  arch/x86/realmode/Makefile        |  2 +-
>  arch/x86/realmode/rm/Makefile     |  2 +-
>  scripts/Makefile.lib              |  4 ++--
>  10 files changed, 27 insertions(+), 16 deletions(-)
> 
> -- 
> 2.24.0
> 

-- 
Cheers,
Changbin Du

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ