[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202009101216.1F173BD87D@keescook>
Date:   Thu, 10 Sep 2020 12:16:55 -0700
From:   Kees Cook <keescook@...omium.org>
To:     Elena Petrova <lenaptr@...gle.com>,
        Andrew Morton <akpm@...ux-foundation.org>
Cc:     kernel-hardening@...ts.openwall.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sched.h: drop in_ubsan field when UBSAN is in trap mode
On Thu, Sep 10, 2020 at 02:48:02PM +0100, Elena Petrova wrote:
> in_ubsan field of task_struct is only used in lib/ubsan.c, which in its
> turn is used only `ifneq ($(CONFIG_UBSAN_TRAP),y)`.
> 
> Removing unnecessary field from a task_struct will help preserve the
> ABI between vanilla and CONFIG_UBSAN_TRAP'ed kernels. In particular,
> this will help enabling bounds sanitizer transparently for Android's
> GKI.
> 
> Signed-off-by: Elena Petrova <lenaptr@...gle.com>
Acked-by: Kees Cook <keescook@...omium.org>
(This should be CCed to akpm who has been taking most of the ubsan
patches lately.)
-- 
Kees Cook
Powered by blists - more mailing lists
 
