Re: [PATCH] net: fix sock_clone reference mismatch with tcp memcontrol

From: Laurent Chavey <hidden>
Date: 2012-01-06 21:14:27
Also in: cgroups, lkml

Sockets can also be created through sock_clone. Because it copies
all data in the sock structure, it also copies the memcg-related pointer,
and all should be fine. However, since we now use reference counts in
socket creation, we are left with some sockets that have no reference
counts. It matters when we destroy them, since it leads to a mismatch.

Signed-off-by: Glauber Costa <redacted>
CC: David S. Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
CC: Greg Thelen <redacted>
CC: Hiroyouki Kamezawa <redacted>
CC: Laurent Chavey <redacted>

---
Tested-by: Laurent Chavey <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help