Re: [PATCH v2] cgroup: pids: fix invalid get/put usage

2015-08-25 Thread Tejun Heo
On Tue, Aug 25, 2015 at 12:50:44PM +1000, Aleksa Sarai wrote: > Fix incorrect usage of css_get and css_put to put a different css in > pids_{cancel_,}attach() than the one grabbed in pids_can_attach(). This > could lead to quite serious memory leakage (and unsafe operations on the > putted css). >

Re: [PATCH v2] cgroup: pids: fix invalid get/put usage

2015-08-25 Thread Tejun Heo
On Tue, Aug 25, 2015 at 12:50:44PM +1000, Aleksa Sarai wrote: Fix incorrect usage of css_get and css_put to put a different css in pids_{cancel_,}attach() than the one grabbed in pids_can_attach(). This could lead to quite serious memory leakage (and unsafe operations on the putted css).

[PATCH v2] cgroup: pids: fix invalid get/put usage

2015-08-24 Thread Aleksa Sarai
Fix incorrect usage of css_get and css_put to put a different css in pids_{cancel_,}attach() than the one grabbed in pids_can_attach(). This could lead to quite serious memory leakage (and unsafe operations on the putted css). Signed-off-by: Aleksa Sarai --- kernel/cgroup_pids.c | 19

[PATCH v2] cgroup: pids: fix invalid get/put usage

2015-08-24 Thread Aleksa Sarai
Fix incorrect usage of css_get and css_put to put a different css in pids_{cancel_,}attach() than the one grabbed in pids_can_attach(). This could lead to quite serious memory leakage (and unsafe operations on the putted css). Signed-off-by: Aleksa Sarai cyp...@cyphar.com ---