summaryrefslogtreecommitdiff
path: root/tools/lib/traceevent/plugins/plugin_function.c
diff options
context:
space:
mode:
authorBrooke Basile <brookebasile@gmail.com>2020-09-11 10:14:27 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-09-21 16:05:43 +0300
commit03fb92a432ea5abe5909bca1455b7e44a9380480 (patch)
tree0b366da59ec687f96d5c591c3a27dd90e2f9dcac /tools/lib/traceevent/plugins/plugin_function.c
parent5a6bd84f815485800699f55c78f690b2ed35f0c5 (diff)
downloadlinux-03fb92a432ea5abe5909bca1455b7e44a9380480.tar.xz
ath9k: hif_usb: fix race condition between usb_get_urb() and usb_kill_anchored_urbs()
Calls to usb_kill_anchored_urbs() after usb_kill_urb() on multiprocessor systems create a race condition in which usb_kill_anchored_urbs() deallocates the URB before the completer callback is called in usb_kill_urb(), resulting in a use-after-free. To fix this, add proper lock protection to usb_kill_urb() calls that can possibly run concurrently with usb_kill_anchored_urbs(). Reported-by: syzbot+89bd486af9427a9fc605@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?id=cabffad18eb74197f84871802fd2c5117b61febf Signed-off-by: Brooke Basile <brookebasile@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200911071427.32354-1-brookebasile@gmail.com
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions