Skip to content

Commit e18e036

Browse files
thejhgregkh
authored andcommitted
binder: Remove bogus warning on failed same-process transaction
[ Upstream commit e8b8ae7 ] 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: 44d8047 ("binder: use standard functions to allocate fds") Reported-by: syzbot+e113a0b970b7b3f394ba@syzkaller.appspotmail.com Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Acked-by: Todd Kjos <tkjos@google.com> Signed-off-by: Jann Horn <jannh@google.com> Link: https://lore.kernel.org/r/20200806165359.2381483-1-jannh@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 66766fa commit e18e036

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/android/binder.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,8 +2323,6 @@ static void binder_transaction_buffer_release(struct binder_proc *proc,
23232323
* file is done when the transaction is torn
23242324
* down.
23252325
*/
2326-
WARN_ON(failed_at &&
2327-
proc->tsk == current->group_leader);
23282326
} break;
23292327
case BINDER_TYPE_PTR:
23302328
/*

0 commit comments

Comments
 (0)