WSL2-Linux-Kernel/drivers/android
Schspa Shi aed86f8add 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: bd32889e84 ("binder: add BINDER_GET_EXTENDED_ERROR ioctl")
Reported-by: syzbot+46fff6434a7f968ecb39@syzkaller.appspotmail.com
Reviewed-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Schspa Shi <schspa@gmail.com>
Link: https://lore.kernel.org/r/20220518011754.49348-1-schspa@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-19 18:41:33 +02:00
..
Kconfig
Makefile
binder.c binder: fix atomic sleep when get extended error 2022-05-19 18:41:33 +02:00
binder_alloc.c binder: Use memcpy_{to,from}_page() in binder_alloc_do_buffer_copy() 2022-04-26 12:51:31 +02:00
binder_alloc.h binder: tell userspace to dump current backtrace when detected oneway spamming 2021-04-10 10:52:04 +02:00
binder_alloc_selftest.c
binder_internal.h binder: add BINDER_GET_EXTENDED_ERROR ioctl 2022-05-09 15:43:24 +02:00
binder_trace.h
binderfs.c binderfs: add extended_error feature entry 2022-05-09 15:43:24 +02:00