binder: add flag to clear buffer on txn complete
authorTodd Kjos <tkjos@google.com>
Fri, 20 Nov 2020 23:37:43 +0000 (15:37 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 14:41:21 +0000 (15:41 +0100)
commit0f966cba95c78029f491b433ea95ff38f414a761
tree1cf9aeed5b3ffbf4a82d61f6be3e8a10055ef914
parentd1b928ee1cfa965a3327bbaa59bfa005d97fa0fe
binder: add flag to clear buffer on txn complete

Add a per-transaction flag to indicate that the buffer
must be cleared when the transaction is complete to
prevent copies of sensitive data from being preserved
in memory.

Signed-off-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20201120233743.3617529-1-tkjos@google.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
include/uapi/linux/android/binder.h