Skip to content
Commit 1fe60ee7 authored by Thanassis Avgerinos's avatar Thanassis Avgerinos Committed by Greg Kroah-Hartman
Browse files

firewire: nosy: ensure user_length is taken into account when fetching packet contents



commit 38762a07 upstream.

Ensure that packet_buffer_get respects the user_length provided. If
the length of the head packet exceeds the user_length, packet_buffer_get
will now return 0 to signify to the user that no data were read
and a larger buffer size is required. Helps prevent user space overflows.

Signed-off-by: default avatarThanassis Avgerinos <thanassis.avgerinos@gmail.com>
Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b76a4f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment