commit | 280ceaed79f18db930c0cc8bb21f6493490bf29c | [log] [tgz] |
---|---|---|
author | Oliver Neukum <oneukum@suse.com> | Thu Sep 19 10:23:08 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 19 13:27:11 2019 +0200 |
tree | edbf7f8852963bf643f54508afe877c5cec46857 | |
parent | b41dae061bbd722b9d7fa828f35d22035b218e18 [diff] |
usbnet: sanity checking of packet sizes and device mtu 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: syzbot+6102c120be558c885f04@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>