diff options
author | Xi Wang <[email protected]> | 2012-04-09 15:48:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-04-17 15:54:57 -0700 |
commit | 8bde9a62ee74afa89f593c563e926d163b1f6ada (patch) | |
tree | 32b9daa28afaf5b93329ed4a8509602d2b5f6b2a /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08 (diff) |
usb: usbtest: avoid integer overflow in alloc_sglist()
A large `nents' from userspace could overflow the allocation size,
leading to memory corruption.
| alloc_sglist()
| usbtest_ioctl()
Use kmalloc_array() to avoid the overflow.
Signed-off-by: Xi Wang <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions