]> git.baikalelectronics.ru Git - kernel.git/commit
net: check the length of the socket address passed to connect(2)
authorChangli Gao <xiaosuo@gmail.com>
Wed, 31 Mar 2010 22:58:26 +0000 (22:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 00:26:01 +0000 (17:26 -0700)
commita111aca05607c4d0ff5663c98fb137bd940ec135
tree9fafcd9eb2c0b3feda0cf4c36e4167ba3028d83a
parentd4fdb95d63279e8da67855395a3d1c9c9e4a8963
net: check the length of the socket address passed to connect(2)

check the length of the socket address passed to connect(2).

Check the length of the socket address passed to connect(2). If the
length is invalid, -EINVAL will be returned.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
net/bluetooth/l2cap.c | 3 ++-
net/bluetooth/rfcomm/sock.c | 3 ++-
net/bluetooth/sco.c | 3 ++-
net/can/bcm.c | 3 +++
net/ieee802154/af_ieee802154.c | 3 +++
net/ipv4/af_inet.c | 5 +++++
net/netlink/af_netlink.c | 3 +++
7 files changed, 20 insertions(+), 3 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c
net/can/bcm.c
net/ieee802154/af_ieee802154.c
net/ipv4/af_inet.c
net/netlink/af_netlink.c