]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: take care of timewait sockets
authorEric Dumazet <edumazet@google.com>
Tue, 4 Sep 2012 07:49:03 +0000 (07:49 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Sep 2012 12:28:18 +0000 (14:28 +0200)
commit726a16abdc4319381740d488ee9af0e528caed3e
treee1c4664b0afd65788e1508402a5ab60772c2dad0
parentf7b2ede692567d1bbb58839936bba1919e73fdd2
netfilter: take care of timewait sockets

Sami Farin reported crashes in xt_LOG because it assumes skb->sk is a
full blown socket.

Since (6be1703 ipv4: Early TCP socket demux), we can have skb->sk
pointing to a timewait socket.

Same fix is needed in nfnetlink_log.

Diagnosed-by: Florian Westphal <fw@strlen.de>
Reported-by: Sami Farin <hvtaifwkbgefbaei@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_log.c
net/netfilter/xt_LOG.c