[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210104233449.GA3382424@ubuntu-m3-large-x86>
Date: Mon, 4 Jan 2021 16:34:49 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Marco Elver <elver@...gle.com>, Arnd Bergmann <arnd@...nel.org>,
Kees Cook <keescook@...omium.org>,
Arnd Bergmann <arnd@...db.de>,
Nick Desaulniers <ndesaulniers@...gle.com>,
George Popescu <georgepope@...roid.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
LKML <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH] ubsan: disable unsigned-integer-overflow sanitizer with
clang
On Mon, Jan 04, 2021 at 03:33:33PM -0800, Andrew Morton wrote:
> On Mon, 4 Jan 2021 15:33:36 -0700 Nathan Chancellor <natechancellor@...il.com> wrote:
>
> > > > +++ b/lib/Kconfig.ubsan
> > > > @@ -122,6 +122,8 @@ config UBSAN_SIGNED_OVERFLOW
> > > >
> > > > config UBSAN_UNSIGNED_OVERFLOW
> > > > bool "Perform checking for unsigned arithmetic overflow"
> > > > + # clang hugely expands stack usage with -fsanitize=object-size
> > >
> > > This is the first time -fsanitize=object-size is mentioned. Typo?
> >
> > Copy and paste issue from CONFIG_UBSAN_OBJECT_SIZE
>
> This?
Correct.
> --- a/lib/Kconfig.ubsan~ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix
> +++ a/lib/Kconfig.ubsan
> @@ -122,7 +122,7 @@ config UBSAN_SIGNED_OVERFLOW
>
> config UBSAN_UNSIGNED_OVERFLOW
> bool "Perform checking for unsigned arithmetic overflow"
> - # clang hugely expands stack usage with -fsanitize=object-size
> + # clang hugely expands stack usage with -fsanitize=unsigned-integer-overflow
> depends on !CC_IS_CLANG
> depends on $(cc-option,-fsanitize=unsigned-integer-overflow)
> help
> _
>
Cheers,
Nathan
Powered by blists - more mailing lists