linux-stable/drivers/staging/android
Alistair Strachan 8e43c9c75f staging: android: sync: Fix memory corruption in sync_timeline_signal().
The android_fence_release() function checks for active sync points
by calling list_empty() on the list head embedded on the sync
point. However, it is only valid to use list_empty() on nodes that
have been initialized with INIT_LIST_HEAD() or list_del_init().

Because the list entry has likely been removed from the active list
by sync_timeline_signal(), there is a good chance that this
WARN_ON_ONCE() will be hit due to dangling pointers pointing at
freed memory (even though the sync drivers did nothing wrong)
and memory corruption will ensue as the list entry is removed for
a second time, corrupting the active list.

This problem can be reproduced quite easily with CONFIG_DEBUG_LIST=y
and fences with more than one sync point.

Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Colin Cross <ccross@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-26 10:58:51 +01:00
..
ion ion: improve ion_phys error message 2015-03-20 13:44:39 +01:00
trace
uapi staging: Remove the Android alarm-dev driver 2015-01-25 20:10:10 +08:00
ashmem.c staging: android: remove space after casts 2015-01-17 16:20:20 -08:00
ashmem.h
Kconfig staging: Remove the Android logger driver 2015-01-28 11:31:26 -08:00
lowmemorykiller.c oom: add helpers for setting and clearing TIF_MEMDIE 2015-02-11 17:06:03 -08:00
Makefile staging: Remove logger and alarm-dev from android Makefile 2015-01-28 11:32:39 -08:00
sw_sync.c staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sw_sync.h staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sync.c staging: android: sync: Fix memory corruption in sync_timeline_signal(). 2015-03-26 10:58:51 +01:00
sync.h staging : android : sync : get_unused_fd 2014-09-28 22:03:57 -04:00
sync_debug.c Staging: android: fix line length coding style issue in sync_debug.c 2015-01-17 16:17:11 -08:00
timed_gpio.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
timed_gpio.h
timed_output.c
timed_output.h
TODO staging: android: logger: Add a TODO 2014-11-03 16:09:28 -08:00