FPII-2245: Elevation of privilege vulnerability in kernel sound component CVE-2016-2544 ANDROID-28695438

ALSA: seq: Fix race at timer setup and close
ALSA sequencer code has an open race between the timer setup ioctl and the close of the client.
This was triggered by syzkaller fuzzer, and a use-after-free was caught there as a result.
This patch papers over it by adding a proper queue->timer_mutex lock around the timer-related calls in the relevant code path.

Change-Id: Ibcceb8092d2e4293e1c93c4a1b388b388957fd39
1 file changed