Please sign in to comment.
cgroup: duplicate cgroup reference when cloning sockets
When a socket is cloned, the associated sock_cgroup_data is duplicated but not its reference on the cgroup. As a result, the cgroup reference count will underflow when both sockets are destroyed later on. Fixes: bd1060a ("sock, cgroup: add sock->sk_cgroup") Link: http://firstname.lastname@example.org Signed-off-by: Johannes Weiner <email@example.com> Acked-by: Tejun Heo <firstname.lastname@example.org> Cc: Michal Hocko <email@example.com> Cc: Vladimir Davydov <firstname.lastname@example.org> Cc: <email@example.com> [4.5+] Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...