UPSTREAM: 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)
committerBruno Martins <bgcngm@gmail.com>
Sun, 21 Jul 2024 11:12:16 +0000 (11:12 +0000)
commit5cd1126dbe3f33e17465a8ee1ad9834719cd8d4f
tree2302919457a6556250c39dc89213037f8572dd2f
parent3d2405e000a862afa88084b309c8b4b515179c04
UPSTREAM: 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>
Bug: 171501513
Change-Id: Ic9338c85cbe3b11ab6f2bda55dce9964bb48447a
(cherry picked from commit 0f966cba95c78029f491b433ea95ff38f414a761)
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
include/uapi/linux/android/binder.h