Patch "binder: Remove bogus warning on failed same-process transaction" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    binder: Remove bogus warning on failed same-process transaction

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     binder-remove-bogus-warning-on-failed-same-process-t.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b69bdd71320e0a610300e6250828f0c48589c6ba
Author: Jann Horn <jannh@xxxxxxxxxx>
Date:   Thu Aug 6 18:53:59 2020 +0200

    binder: Remove bogus warning on failed same-process transaction
    
    [ Upstream commit e8b8ae7ce32e17a5c29f0289e9e2a39c7dcaa1b8 ]
    
    While binder transactions with the same binder_proc as sender and recipient
    are forbidden, transactions with the same task_struct as sender and
    recipient are possible (even though currently there is a weird check in
    binder_transaction() that rejects them in the target==0 case).
    Therefore, task_struct identities can't be used to distinguish whether
    the caller is running in the context of the sender or the recipient.
    
    Since I see no easy way to make this WARN_ON() useful and correct, let's
    just remove it.
    
    Fixes: 44d8047f1d87 ("binder: use standard functions to allocate fds")
    Reported-by: syzbot+e113a0b970b7b3f394ba@xxxxxxxxxxxxxxxxxxxxxxxxx
    Acked-by: Christian Brauner <christian.brauner@xxxxxxxxxx>
    Acked-by: Todd Kjos <tkjos@xxxxxxxxxx>
    Signed-off-by: Jann Horn <jannh@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200806165359.2381483-1-jannh@xxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index e8a1db4a86ed8..b27b6bf0c1186 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2323,8 +2323,6 @@ static void binder_transaction_buffer_release(struct binder_proc *proc,
 			 * file is done when the transaction is torn
 			 * down.
 			 */
-			WARN_ON(failed_at &&
-				proc->tsk == current->group_leader);
 		} break;
 		case BINDER_TYPE_PTR:
 			/*



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux