UAS: fix alignment of scatter/gather segments
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Apr 2019 10:21:45 +0000 (12:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:53:15 +0000 (17:53 +0200)
commit06d0f51f291d6c20baba2ae6f6a8c86de4a87a4f
treeca96fc2cb576591267e0ade4554b0b27df1f94f3
parent2fa7a155b25160696cd77cdd995536cf5e172e20
UAS: fix alignment of scatter/gather segments

commit 3ae62a42090f1ed48e2313ed256a1182a85fb575 upstream.

This is the UAS version of

747668dbc061b3e62bc1982767a3a1f9815fcf0e
usb-storage: Set virt_boundary_mask to avoid SG overflows

We are not as likely to be vulnerable as storage, as it is unlikelier
that UAS is run over a controller without native support for SG,
but the issue exists.
The issue has been existing since the inception of the driver.

Fixes: 115bb1ffa54c ("USB: Add UAS driver")
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c