netdev
[Top] [All Lists]

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

To: Ville Nuorvala <vnuorval@xxxxxxxxxx>
Subject: Re: [PATCH 1/2] IPv6: stricter checks on link-locals in bind and sendmsg
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Mon, 19 Jan 2004 21:33:50 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0401140959270.23925@xxxxxxxxxxxxxxx>
References: <Pine.LNX.4.58.0401140959270.23925@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 14 Jan 2004 10:35:11 +0200 (EET)
Ville Nuorvala <vnuorval@xxxxxxxxxx> wrote:

> 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.

Applied, thanks Ville.

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