diff options
| author | Oliver Neukum <oneukum@suse.com> | 2018-09-05 12:07:02 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-10 08:52:08 +0200 |
| commit | 26eaa502770cfe4412e57a8151c8eea7247d1ec4 (patch) | |
| tree | 575ff0797a009e41c53b44440d8960b329579ed2 /tools/perf/scripts/python | |
| parent | 78769e876f5762f0a3cbd2e0c08e93dd81463339 (diff) | |
USB: usbdevfs: sanitize flags more
commit 7a68d9fb851012829c29e770621905529bd9490b upstream.
Requesting a ZERO_PACKET or not is sensible only for output.
In the input direction the device decides.
Likewise accepting short packets makes sense only for input.
This allows operation with panic_on_warn without opening up
a local DOS.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: syzbot+843efa30c8821bd69f53@syzkaller.appspotmail.com
Fixes: 0cb54a3e47cb ("USB: debugging code shouldn't alter control flow")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
