netdev
[Top] [All Lists]

[PATCH 1/2] IPv6: stricter checks on link-locals in bind and sendmsg

To: davem@xxxxxxxxxx
Subject: [PATCH 1/2] IPv6: stricter checks on link-locals in bind and sendmsg
From: Ville Nuorvala <vnuorval@xxxxxxxxxx>
Date: Wed, 14 Jan 2004 10:35:11 +0200 (EET)
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Hi Dave,

I found a couple of suspected bugs related to (source) address
handling while rummaging around the code...

When binding to a link-local address, inet6_bind() and raw6_bind() only
check that an interface is specified and that the address exists, but
they don't check if it actually exists on the specified interface.

Similarly, in datagram_sent_ctl() we don't check for the possibility of a
link-local address when we receive the source address from userspace.

The attached patch should fix this behavior.

Thanks,
Ville
--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@xxxxxxxxxx, phone: +358 (0)9 451 5257

Attachment: link_local_bind.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>