diff options
author | Johannes Weiner <jweiner@fb.com> | 2016-09-19 23:44:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-20 00:36:17 +0200 |
commit | d979a39d7242e0601bf9b60e89628fb8ac577179 (patch) | |
tree | f790aa92992c9bf54088de8d8bf0fa275252ab1f /README | |
parent | mm: memcontrol: make per-cpu charge cache IRQ-safe for socket accounting (diff) | |
download | linux-d979a39d7242e0601bf9b60e89628fb8ac577179.tar.xz linux-d979a39d7242e0601bf9b60e89628fb8ac577179.zip |
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: bd1060a1d671 ("sock, cgroup: add sock->sk_cgroup")
Link: http://lkml.kernel.org/r/20160914194846.11153-2-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Cc: <stable@vger.kernel.org> [4.5+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions