Skip to content
Commit 5cf53f3c authored by Elena Petrova's avatar Elena Petrova Committed by Linus Torvalds
Browse files

sched.h: drop in_ubsan field when UBSAN is in trap mode



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: default avatarElena Petrova <lenaptr@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Cc: Jann Horn <jannh@google.com>
Link: https://lkml.kernel.org/r/20200910134802.3160311-1-lenaptr@google.com


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4fbe310e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment