aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/python/tracepoint.py
diff options
context:
space:
mode:
authorVamsi Krishna Samavedam <[email protected]>2020-11-30 20:34:53 +0000
committerGreg Kroah-Hartman <[email protected]>2020-12-04 15:09:10 +0000
commita4b98a7512f18534ce33a7e98e49115af59ffa00 (patch)
treed6f5bc4a771da32e94f12f958e279c95a4ce662b /tools/perf/python/tracepoint.py
parentusb: ohci-omap: Fix descriptor conversion (diff)
downloadkernel-a4b98a7512f18534ce33a7e98e49115af59ffa00.tar.gz
kernel-a4b98a7512f18534ce33a7e98e49115af59ffa00.zip
usb: gadget: f_fs: Use local copy of descriptors for userspace copy
The function may be unbound causing the ffs_ep and its descriptors to be freed while userspace is in the middle of an ioctl requesting the same descriptors. Avoid dangling pointer reference by first making a local copy of desctiptors before releasing the spinlock. Fixes: c559a3534109 ("usb: gadget: f_fs: add ioctl returning ep descriptor") Reviewed-by: Peter Chen <[email protected]> Signed-off-by: Vamsi Krishna Samavedam <[email protected]> Signed-off-by: Jack Pham <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/python/tracepoint.py')
0 files changed, 0 insertions, 0 deletions