netfilter: fix nf_conntrack_l4proto_register()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 29 Oct 2010 17:59:40 +0000 (19:59 +0200)
committerPatrick McHardy <kaber@trash.net>
Fri, 29 Oct 2010 17:59:40 +0000 (19:59 +0200)
commitd817d29d0b37290d90b3a9e2a61162f1dbf2be4f
tree7414a1334cdac82a61340623a23109c3222f4a48
parent64e46749224aa658d8fc0d37ea83ab20b1d7955d
netfilter: fix nf_conntrack_l4proto_register()

While doing __rcu annotations work on net/netfilter I found following
bug. On some arches, it is possible we publish a table while its content
is not yet committed to memory, and lockless reader can dereference wild
pointer.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_proto.c