Skip to content
Snippets Groups Projects
Commit 1f5a76cf authored by Oliver Neukum's avatar Oliver Neukum Committed by 谢秀奇
Browse files

usbnet: sanity checking of packet sizes and device mtu


[ Upstream commit 280ceaed ]

After a reset packet sizes and device mtu can change and need
to be reevaluated to calculate queue sizes.
Malicious devices can set this to zero and we divide by it.
Introduce sanity checking.

Reported-and-tested-by: default avatar <syzbot+6102c120be558c885f04@syzkaller.appspotmail.com>
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent a46cd855
No related branches found
No related tags found
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