Top: Fix lwis_top_event_subscribe() UAF

The event_subscriber_list is used to subscribe and unsubscribe
from events. The list may be removed before it is unsubscribed from,
so it must be protected by a Spinlock to prevent data corruption.

Bug: 239867994
Test: Fuzzing test. GCA
Change-Id: Ibc8c2b218e16e5300bc68a3e4281fc0ba53adf62
Signed-off-by: Nick Chung <nickchung@google.com>
1 file changed