summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorTomer Pomeranc <tomerpo@gmail.com>2026-08-12 22:53:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-16 19:33:40 +0100
commit22c135635fdd9816c0ef140d6de7b2e4fdf73e89 (patch)
treee603ba55540840206a3a78e324ae5c6f7f324fe7 /usr
parentc4c02084d6687d5cd5edccaf52cc45e5160f1184 (diff)
downloadlinux-stable-22c135635fdd9816c0ef140d6de7b2e4fdf73e89.tar.gz
linux-stable-22c135635fdd9816c0ef140d6de7b2e4fdf73e89.zip
binder: fix is_failure flag for superseded transaction cleanup
When a TF_UPDATE_TXN transaction supersedes a pending async transaction, binder_release_entire_buffer() is called with is_failure=false. Since the superseded transaction was never delivered, binder_apply_fd_fixups() was never called and no fds were installed in the target process. With is_failure=false, the BINDER_TYPE_FDA cleanup handler interprets stale buffer contents as installed fd numbers and passes them to binder_deferred_fd_close(), closing unrelated file descriptors. Pass is_failure=true since the transaction was never delivered to the target, matching the semantics of all other undelivered-transaction cleanup paths. Fixes: 9864bb480133 ("Binder: add TF_UPDATE_TXN to replace outdated txn") Cc: stable <stable@kernel.org> Signed-off-by: Tomer Pomeranc <tomerpo@gmail.com> Acked-by: Carlos Llamas <cmllamas@google.com> Link: https://patch.msgid.link/20260812195316.259136-3-tomerpo@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions