[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120924171152.GA26454@redhat.com>
Date: Mon, 24 Sep 2012 13:11:52 -0400
From: Dave Jones <davej@...hat.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Yuchung Cheng <ycheng@...gle.com>, Julian Anastasov <ja@....bg>,
netdev@...r.kernel.org
Subject: Re: kernel BUG at kernel/timer.c:748!
On Mon, Sep 24, 2012 at 07:00:11PM +0200, Eric Dumazet wrote:
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>
> On Mon, 2012-09-24 at 18:34 +0200, Eric Dumazet wrote:
>
> > OK, I believe I found the reason. I Will post a patch.
> >
> > open a raw socket AF_INET, TCP_PROTO
> > + connect() ->sk_state set to TCP_ESTABLISHED
> > + setsockopt( SO_KEEPALIVE, &on) -> crash
>
> I confirm following patch fixes the problem for me.
>
> Thanks again
>
> [PATCH] net: guard tcp_set_keepalive() to tcp sockets
>
> Its possible to use RAW sockets to get a crash in
> tcp_set_keepalive() / sk_reset_timer()
>
> Fix is to make sure socket is a SOCK_STREAM one.
Great, I'll give this a shot.
Any idea why this only just started triggering ?
(Ie, do we need this for stable too?)
thanks,
Dave
--
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