All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: akpm@linux-foundation.org
Cc: arnd@arndb.de, elver@google.com, georgepope@android.com,
	mm-commits@vger.kernel.org, natechancellor@gmail.com,
	ndesaulniers@google.com, sfr@canb.auug.org.au
Subject: Re: [folded-merged] ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix.patch removed from -mm tree
Date: Thu, 7 Jan 2021 13:09:29 -0800	[thread overview]
Message-ID: <202101071308.8854B1428B@keescook> (raw)
In-Reply-To: <20210107003426.Bqzd_O7Lf%akpm@linux-foundation.org>

On Wed, Jan 06, 2021 at 04:34:26PM -0800, akpm@linux-foundation.org wrote:
> 
> The patch titled
>      Subject: ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix
> has been removed from the -mm tree.  Its filename was
>      ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix.patch
> 
> This patch was dropped because it was folded into ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang.patch
> 
> ------------------------------------------------------
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix
> 
> fix comment typo, per Nathan
> 
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: George Popescu <georgepope@android.com>
> Cc: Kees Cook <keescook@chromium.org>
> Cc: Marco Elver <elver@google.com>
> Cc: Nathan Chancellor <natechancellor@gmail.com>
> Cc: Nick Desaulniers <ndesaulniers@google.com>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  lib/Kconfig.ubsan |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- 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

The above "!CC_IS_CLANG" needs to be dropped. I makes it impossible to use at
all (unsigned UBSAN overflow is only implemented for Clang).

-Kees

>  	depends on $(cc-option,-fsanitize=unsigned-integer-overflow)
>  	help
> _
> 
> Patches currently in -mm which might be from akpm@linux-foundation.org are
> 
> mm-page_alloc-add-a-missing-mm_page_alloc_zone_locked-tracepoint-fix.patch
> ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang.patch
> mm.patch
> mm-memcg-slab-pre-allocate-obj_cgroups-for-slab-caches-with-slab_account-fix.patch
> mm-memcontrol-optimize-per-lruvec-stats-counter-memory-usage-checkpatch-fixes.patch
> kasan-fix-bug-detection-via-ksize-for-hw_tags-mode-fix.patch
> mm-cma-allocate-cma-areas-bottom-up-fix-3-fix.patch
> mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch
> kfence-kasan-make-kfence-compatible-with-kasan-fix.patch
> set_memory-allow-set_direct_map__noflush-for-multiple-pages-fix.patch
> arch-mm-wire-up-memfd_secret-system-call-were-relevant-fix.patch
> kernel-forkc-export-kernel_thread-to-modules.patch
> 

-- 
Kees Cook

  reply	other threads:[~2021-01-07 21:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07  0:34 [folded-merged] ubsan-disable-unsigned-integer-overflow-sanitizer-with-clang-fix.patch removed from -mm tree akpm
2021-01-07 21:09 ` Kees Cook [this message]
2021-01-07 23:06   ` Andrew Morton
2021-01-08  3:56     ` Stephen Rothwell

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=202101071308.8854B1428B@keescook \
    --to=keescook@chromium.org \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=elver@google.com \
    --cc=georgepope@android.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=natechancellor@gmail.com \
    --cc=ndesaulniers@google.com \
    --cc=sfr@canb.auug.org.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.