]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: line6: Sync the pending work cancel at disconnection
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Jul 2020 13:59:59 +0000 (15:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Jul 2020 14:29:38 +0000 (16:29 +0200)
commit12a5e867285224530295b8260fdb86071e3c6495
treee83e56ebc267193094821fc7646fb7175231d5e8
parent03cfbf0b2432828d9b30af562d858ce3a369e5a0
ALSA: line6: Sync the pending work cancel at disconnection

Recently syzkaller reported a UAF in LINE6 driver, and it's likely
because we call cancel_delayed_work() at the disconnect callback
instead of cancel_delayed_work_sync().  Let's use the correct one
instead.

Reported-by: syzbot+145012a46658ac00fc9e@syzkaller.appspotmail.com
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/s5hlfjr4gio.wl-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c