From: Daniel Wagner <daniel.wagner-98C5kh4wR6ohFhg+JK9F0w@public.gmane.org>
To: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Cc: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Dave Jones
<davej-rdkfGonbjUTCLXcRTR1eJlpr/1R2p/CL@public.gmane.org>,
kernel-team-b10kYP2dOMg@public.gmane.org,
Aleksa Sarai <cyphar-gVpy/LI/lHzQT0dZR+AlfA@public.gmane.org>,
Michal Hocko <mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Peter Zijlstra <peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
Subject: Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of multi-destination migration from subtree_control enabling
Date: Tue, 1 Dec 2015 08:02:23 +0100 [thread overview]
Message-ID: <565D45FF.1030804@bmw-carit.de> (raw)
In-Reply-To: <20151130224431.GB9039-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
Hi Tejun,
On 11/30/2015 11:44 PM, Tejun Heo wrote:
> WARNING: CPU: 1 PID: 1 at kernel/cgroup_pids.c:97 pids_cancel.constprop.6+0x31/0x40()
> Modules linked in:
> CPU: 1 PID: 1 Comm: systemd Not tainted 4.4.0-rc1+ #29
> ...
> ffffffff81f65382 ffff88007c043b90 ffffffff81551ffc 0000000000000000
> ffff88007c043bc8 ffffffff810de202 ffff88007a752000 ffff88007a29ab00
> ffff88007c043c80 ffff88007a1d8400 0000000000000001 ffff88007c043bd8
> Call Trace:
> [<ffffffff81551ffc>] dump_stack+0x4e/0x82
> [<ffffffff810de202>] warn_slowpath_common+0x82/0xc0
> [<ffffffff810de2fa>] warn_slowpath_null+0x1a/0x20
> [<ffffffff8118e031>] pids_cancel.constprop.6+0x31/0x40
> [<ffffffff8118e0fd>] pids_can_attach+0x6d/0xf0
> [<ffffffff81188a4c>] cgroup_taskset_migrate+0x6c/0x330
> [<ffffffff81188e05>] cgroup_migrate+0xf5/0x190
> [<ffffffff81189016>] cgroup_attach_task+0x176/0x200
> [<ffffffff8118949d>] __cgroup_procs_write+0x2ad/0x460
> [<ffffffff81189684>] cgroup_procs_write+0x14/0x20
> [<ffffffff811854e5>] cgroup_file_write+0x35/0x1c0
> [<ffffffff812e26f1>] kernfs_fop_write+0x141/0x190
> [<ffffffff81265f88>] __vfs_write+0x28/0xe0
> [<ffffffff812666fc>] vfs_write+0xac/0x1a0
> [<ffffffff81267019>] SyS_write+0x49/0xb0
> [<ffffffff81bcef32>] entry_SYSCALL_64_fastpath+0x12/0x76
>
> This patch fixes the bug by removing @css parameter from the three
> migration methods, ->can_attach, ->cancel_attach() and ->attach() and
> updating cgroup_taskset iteration helpers also return the destination
> css in addition to the task being migrated. All controllers are
> updated accordingly.
I was not able to verify if these two patches are fixing it. I don't see
the call trace on mainline only when using cgroup/review-xt_cgroup2
review branch.
So I ported it to review-xt_croup2 with only a small merge conflict for
in netclassid_cgroup.c. No fun though, I still see it.
Is there a patch missing? The subject indicates there should be 3 patches.
cheers,
daniel
next prev parent reply other threads:[~2015-12-01 7:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 19:55 [PATCH cgroup/for-4.4-fixes] cgroup: make css_set pin its css's to avoid use-afer-free Tejun Heo
[not found] ` <20151123195541.GA19072-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-11-23 22:23 ` Dave Jones
2015-11-30 14:48 ` Tejun Heo
2015-11-24 10:31 ` Daniel Wagner
[not found] ` <56543C76.2050008-98C5kh4wR6ohFhg+JK9F0w@public.gmane.org>
2015-11-24 14:44 ` Tejun Heo
[not found] ` <20151124144418.GB17033-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-11-24 14:58 ` Daniel Wagner
[not found] ` <56547B22.2020802-98C5kh4wR6ohFhg+JK9F0w@public.gmane.org>
2015-11-24 14:59 ` Tejun Heo
[not found] ` <20151124145945.GF17033-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-11-30 22:42 ` [PATCH cgroup/for-4.4-fixes 1/2] cgroup_freezer: simplify propagation of CGROUP_FROZEN clearing in freezer_attach() Tejun Heo
[not found] ` <20151130224205.GA9039-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-11-30 22:44 ` [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of multi-destination migration from subtree_control enabling Tejun Heo
[not found] ` <20151130224431.GB9039-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-12-01 7:02 ` Daniel Wagner [this message]
[not found] ` <565D45FF.1030804-98C5kh4wR6ohFhg+JK9F0w@public.gmane.org>
2015-12-01 16:44 ` Tejun Heo
[not found] ` <20151201164458.GC12922-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-12-02 6:22 ` Daniel Wagner
2015-12-03 15:16 ` Tejun Heo
[not found] ` <20151203151632.GE27463-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2015-12-03 15:38 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565D45FF.1030804@bmw-carit.de \
--to=daniel.wagner-98c5kh4wr6ohfhg+jk9f0w@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=cyphar-gVpy/LI/lHzQT0dZR+AlfA@public.gmane.org \
--cc=davej-rdkfGonbjUTCLXcRTR1eJlpr/1R2p/CL@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=kernel-team-b10kYP2dOMg@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
--cc=mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
--cc=peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox