[PATCH] NET: Ensure device name passed to SO_BINDTODEVICE is NULL terminated.
commitd4852ff21818a906e603815c5951d0ef382cd851
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2006 06:54:18 +0000 (23 22:54 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Mar 2006 06:47:30 +0000 (27 22:47 -0800)
tree694f6e86c727aa94acbf679497117f619888b1f1
parent9620554ca94a95059466e7e9cd6298bf78a09a09
[PATCH] NET: Ensure device name passed to SO_BINDTODEVICE is NULL terminated.

The user can pass us arbitrary garbage so we should ensure the
string they give us is null terminated before we pass it on
to dev_get_by_index() et al.

Found by Solar Designer.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/sock.c