aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-04-25 17:56:11 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-17 12:20:53 +0200
commit4568136620c6482bcd4a6b0cd6ae8e5679615d7e (patch)
tree0b3033347fe1709138b327b9032b704ee400c53c /tools/perf/scripts/python/stackcollapse.py
parentusb: cdc-wdm: use memdup_user (diff)
downloadlinux-dev-4568136620c6482bcd4a6b0cd6ae8e5679615d7e.tar.xz
linux-dev-4568136620c6482bcd4a6b0cd6ae8e5679615d7e.zip
usb: core: Check URB setup_packet and transfer_buffer sanity
Update usb_hcd_map_urb_for_dma() to check for an URB's setup_packet and transfer_buffer sanity. We first check that urb->setup_packet is neither coming from vmalloc space nor is an on stack buffer, and if that's the case, produce a warning and return an error. For urb->transfer_buffer there is an existing is_vmalloc_addr() check so we just supplement that with an object_is_on_stack() check, produce a warning if that is the case and also return an error. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions