diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-11-24 06:12:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-29 00:23:12 -0500 |
commit | be639ac6901a082894771f55c8047d5772de5c27 (patch) | |
tree | 3c2b8e72ba8f5625d338c2104f936eef41b79175 /net/netrom/nr_route.c | |
parent | 3b1588593097b7d71f44c4b7b435bf28924316e0 (diff) | |
download | op-kernel-dev-be639ac6901a082894771f55c8047d5772de5c27.zip op-kernel-dev-be639ac6901a082894771f55c8047d5772de5c27.tar.gz |
NET: AX.25: Check ioctl arguments to avoid overflows further down the road.
Very large, nonsenical arguments or use in very extreme conditions could
result in integer overflows. Check ioctls arguments to avoid such
overflows and return -EINVAL for too large arguments.
To allow the use of AX.25 for even the most extreme setup (think packet
radio to the Phase 5E mars probe) we make no further attempt to clamp the
argument range.
Originally reported by Fan Long <longfancn@gmail.com> and a first patch
was sent by Xi Wang <xi.wang@gmail.com>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Xi Wang <xi.wang@gmail.com>
Cc: Joerg Reuter <jreuter@yaina.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Thomas Osterried <thomas@osterried.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom/nr_route.c')
0 files changed, 0 insertions, 0 deletions