Re: [PATCH] usb: usbtest: avoid integer overflow in alloc_sglist()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 6, 2012, at 5:44 PM, Greg Kroah-Hartman wrote:
> Is that a realistic number?  Would the userspace tool still work fine
> with that?

http://www.linux-usb.org/usbtest/testusb.c and test.sh use fairly
small `sglen' values, say, 32.  Of course another userspace tool
may require a larger limit.  Is there any well known limit?  To
make sure they all work, just use kmalloc_array().

- xi

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux