android_kernel_motorola_sm6375/drivers/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Biggers 1a478a0522 binder: use wake_up_pollfree()
commit a880b28a71e39013e357fd3adccd1d8a31bc69a8 upstream.

wake_up_poll() uses nr_exclusive=1, so it's not guaranteed to wake up
all exclusive waiters.  Yet, POLLFREE *must* wake up all waiters.  epoll
and aio poll are fortunately not affected by this, but it's very
fragile.  Thus, the new function wake_up_pollfree() has been introduced.

Convert binder to use wake_up_pollfree().

Reported-by: Linus Torvalds <[email protected]>
Fixes: f5cb779ba1 ("ANDROID: binder: remove waitqueue when thread exits.")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-12-14 14:49:02 +01:00
..
binder.c binder: use wake_up_pollfree() 2021-12-14 14:49:02 +01:00
binder_alloc.c binder: add flag to clear buffer on txn complete 2020-12-30 11:51:35 +01:00
binder_alloc.h binder: add flag to clear buffer on txn complete 2020-12-30 11:51:35 +01:00
binder_alloc_selftest.c
binder_internal.h
binder_trace.h
binderfs.c
Kconfig
Makefile