Skip to content
Commit aed86f8a authored by Schspa Shi's avatar Schspa Shi Committed by Greg Kroah-Hartman
Browse files

binder: fix atomic sleep when get extended error



binder_inner_proc_lock(thread->proc) is a spin lock, copy_to_user can't
be called with in this lock.

Copy it as a local variable to fix it.

Fixes: bd32889e ("binder: add BINDER_GET_EXTENDED_ERROR ioctl")
Reported-by: default avatar <syzbot+46fff6434a7f968ecb39@syzkaller.appspotmail.com>
Reviewed-by: default avatarCarlos Llamas <cmllamas@google.com>
Signed-off-by: default avatarSchspa Shi <schspa@gmail.com>
Link: https://lore.kernel.org/r/20220518011754.49348-1-schspa@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dafa5e9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment