summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-04-26 03:56:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-17 13:20:53 +0300
commit4568136620c6482bcd4a6b0cd6ae8e5679615d7e (patch)
tree0b3033347fe1709138b327b9032b704ee400c53c /include/linux/debugobjects.h
parent64b9533ec14bdfb8e77bbe1ae4f4842043d22aeb (diff)
downloadlinux-4568136620c6482bcd4a6b0cd6ae8e5679615d7e.tar.xz
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions