Re: [PATCH] IPv6: Don't Process ND Messages with Invalid Options

David S. Miller (davem@redhat.com)
Thu, 26 Sep 2002 14:31:31 -0700 (PDT)


From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date: Wed, 25 Sep 2002 13:30:31 +0900 (JST)

Linux happened to process invalid ND messages with invalid options
such as
- length of ND options is 0
- length of ND options is not enough
Specification says that such messages must be silently discarded.
This patch parses/checks ND options before it changes state of
neighbour / address etc. and ignores such messages.

Following patch is against linux-2.4.19.

Patch applied to 2.4.x and 2.5.x, thanks a lot.

Let us hope more patches like this one are coming :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/