binder: avoid potential data leakage when copying txn
Transactions are copied from the sender to the target first and objects like BINDER_TYPE_PTR and BINDER_TYPE_FDA are then fixed up. This means there is a short period where the sender's version of these objects are visible to the target prior to the fixups. Instead of copying all of the data first, copy data only after any needed fixups have been applied. Fixes: 457b9a6f ("Staging: android: add binder driver") Reviewed-by:Martijn Coenen <maco@android.com> Acked-by:
Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by:
Todd Kjos <tkjos@google.com> Link: https://lore.kernel.org/r/20211130185152.437403-3-tkjos@google.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
mentioned in commit bf4f9bc4
-
mentioned in commit 668dfb81
-
mentioned in commit c9f440c4
-
mentioned in commit ce351a8a
-
mentioned in commit 00cb86aa
-
mentioned in commit ecf61e4e
-
mentioned in commit 7a2aa337
-
mentioned in commit 7859c5c9
-
mentioned in commit 148d7d15
-
mentioned in commit c436466a
-
mentioned in commit 0c9784b7
-
mentioned in commit d4c8c00e
-
mentioned in commit 9e5999d7
-
mentioned in commit 94a99fcf
-
mentioned in commit 45f8a8cb
-
mentioned in commit 30efc10d
-
mentioned in commit 8b70eb9a
-
mentioned in commit 73aea73a
-
mentioned in commit 58a8840f
-
mentioned in commit 91ffe935
-
mentioned in commit 06b0e491
-
mentioned in commit 49c89f4b
-
mentioned in commit bdf4d10d
-
mentioned in commit 0366376c
-
mentioned in commit 3b9c6855
-
mentioned in commit 596b8c75
-
mentioned in commit f694c57f
-
mentioned in commit f8ade3f9
-
mentioned in commit 5016e3ef
-
mentioned in commit b0edca1c
-
mentioned in commit 36e3dade
-
mentioned in commit 3ae7ccb3
-
mentioned in commit 47647b33
-
mentioned in commit 3d78f04d
-
mentioned in commit 812dedab
-
mentioned in commit 2c41b759
-
mentioned in commit 5b11419c
-
mentioned in commit 56d97602
-
mentioned in commit 479205ed
-
mentioned in commit a4453dad
-
mentioned in commit 05e96487
-
mentioned in commit 610a5878
-
mentioned in commit b6e3779b
-
mentioned in commit c45eedd4
-
mentioned in commit 9116864d
-
mentioned in commit 257f345c
-
mentioned in commit 25a1b1a8
-
mentioned in commit e6bddd08
-
mentioned in commit 38062c06
-
mentioned in commit 7529e2a0
-
mentioned in commit 5edbd6d9
-
mentioned in commit 6a1de5f5
-
mentioned in commit 4c18920c
-
mentioned in commit cb8a2055
-
mentioned in commit 35185dde
-
mentioned in commit 4bb3978b
-
mentioned in commit 4012159c
-
mentioned in commit 66085355
-
mentioned in commit cfdeec99
-
mentioned in commit 0f1047f9
-
mentioned in commit 005b9bf1
-
mentioned in commit 0039d35a
-
mentioned in commit dffcd4e5
-
mentioned in commit 0379ec54
-
mentioned in commit d76a750f
-
mentioned in commit 97810deb
-
mentioned in commit 8b56d1b0
-
mentioned in commit 4fab4d4c
-
mentioned in commit 2841c6b1
-
mentioned in commit ae7e5da1
-
mentioned in commit 1bbb29f8
-
mentioned in commit 03c0e6c9
-
mentioned in commit 1b2a61ac
-
mentioned in commit 354e67bb
-
mentioned in commit b48fae82
-
mentioned in commit bf27eeed
-
mentioned in commit 9fa3ff87
-
mentioned in commit 86c83027
-
mentioned in commit 44a9f39e
-
mentioned in commit 1a984cbd
-
mentioned in commit 3240f22d
-
mentioned in commit 4faa5da0
-
mentioned in commit 89c29f54
-
mentioned in commit d52c4ecf
-
mentioned in commit 2366df17
-
mentioned in commit 6d673158
-
mentioned in commit 90bb1c94
-
mentioned in commit 41d4a8d9
-
mentioned in commit 30f606fa
-
mentioned in commit 62b257db
-
mentioned in commit cb3a6414
-
mentioned in commit a85dbd4d
-
mentioned in commit 000eb69e
-
mentioned in commit cc4c662a
-
mentioned in commit 3cbe1465
-
mentioned in commit 569fd731
-
mentioned in commit 368f0343
-
mentioned in commit 91168421
-
mentioned in commit 5e5adb0e
-
mentioned in commit ede78846
-
mentioned in commit daafaf1f
-
mentioned in commit b2c48aa4
-
mentioned in commit 9a855aab
-
mentioned in commit ec3e1ef0
-
mentioned in commit 827adcba
-
mentioned in commit 98a32623
-
mentioned in commit 9e937cff
-
mentioned in commit 473f3ade
-
mentioned in commit eb0a60f6
-
mentioned in commit 7a67c43e
-
mentioned in commit 9e27cba3
-
mentioned in commit 99da58e4
-
mentioned in commit d6cb479a
-
mentioned in commit c0c2926f
-
mentioned in commit d6f4ad89