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>
Wed, 24 Apr 2024 23:06:44 +0000 (00:06 +0100)
commitec039a0cc1665b9be44e8c37add773a79d26efd6
tree7dd0686bc8e1e6bf1b98f9d852bb9c6be6b50091
parentcfe19b16e4d4b4d3920c32fdeacf95efe47f8c5e
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