summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-03-30 00:58:16 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2005-03-30 00:58:16 -0800
commit6d36ed6877f400d2dc44a995587d0512fb88e267 (patch)
treeeecaa149054874475d04acec355b6d6a90bf03bd /net/unix/af_unix.c
parent5f05eea685e77af818cb771d42e422e92bcde664 (diff)
[NETLINK]: Fix sk_rmem_alloc assertion failure.
In netlink_dump we're operating on sk after dropping the cb lock. This is racy because the owner of the socket could close it after we drop the cb lock. This is possible because netlink_dump isn't always called from the context of the process that owns the socket. For instance, if there is contention on rtnl then rtnetlink requests will be processed by the process that owns the rtnl. The solution is to hold a ref count on the socket before we drop the cb lock. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions