Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1486611
| From | Vladimir Davydov <vdavydov.dev@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] cgroup: duplicate cgroup reference when cloning sockets |
| Date | 2016-09-19 17:50 +0200 |
| Message-ID | <sj8Zr-7eA-25@gated-at.bofh.it> (permalink) |
| References | <shovD-56t-7@gated-at.bofh.it> <shovD-56t-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Sep 14, 2016 at 03:48:45PM -0400, Johannes Weiner wrote:
> From: Johannes Weiner <jweiner@fb.com>
>
> 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")
> Cc: <stable@vger.kernel.org> # 4.5+
> Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 2/3] cgroup: duplicate cgroup reference when cloning sockets Johannes Weiner <hannes@cmpxchg.org> - 2016-09-14 22:00 +0200 Re: [PATCH 2/3] cgroup: duplicate cgroup reference when cloning sockets Michal Hocko <mhocko@kernel.org> - 2016-09-19 14:10 +0200 Re: [PATCH 2/3] cgroup: duplicate cgroup reference when cloning sockets Vladimir Davydov <vdavydov.dev@gmail.com> - 2016-09-19 17:50 +0200
csiph-web