diff options
author | 2017-04-25 17:56:11 -0700 | |
---|---|---|
committer | 2017-05-17 12:20:53 +0200 | |
commit | 4568136620c6482bcd4a6b0cd6ae8e5679615d7e (patch) | |
tree | 0b3033347fe1709138b327b9032b704ee400c53c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: cdc-wdm: use memdup_user (diff) | |
download | linux-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 '')
0 files changed, 0 insertions, 0 deletions