[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090206085406.GA6540@gondor.apana.org.au>
Date: Fri, 6 Feb 2009 19:54:06 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: rdreier@...co.com, snakebyte@....de, netdev@...r.kernel.org,
yoshfuji@...ux-ipv6.org
Subject: Re: Deadlock with icmpv6fuzz
On Fri, Feb 06, 2009 at 12:50:34AM -0800, David Miller wrote:
>
> ipv6: Disallow rediculious flowlabel option sizes.
>
> Just like PKTINFO, limit the options area to 64K.
>
> Based upon report by Eric Sesterhenn and analysis by
> Roland Dreier.
>
> Signed-off-by: David S. Miller <davem@...emloft.net>
This should eliminate the backtrace as reported, but it'll just
show up somewhere else. In particular, the control message (see
sys_sendmsg) itself is copied to kernel memory via kmalloc and
it's limited to INT_MAX :)
(The option we're discussing here is stored in the control message).
We either need to vmalloc it or have everyone read the user
memory directly.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists