From: Ingo Molnar <mingo@kernel.org>
To: Mike Galbraith <efault@gmx.de>
Cc: Xiaotian Feng <xtfeng@gmail.com>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org,
Xiaotian Feng <dannyfeng@tencent.com>,
Ingo Molnar <mingo@redhat.com>
Subject: Re: [PATCH] sched, autogroup: fix crash on reboot when autogroup is disabled
Date: Sun, 28 Oct 2012 11:25:20 +0100 [thread overview]
Message-ID: <20121028102520.GA7711@gmail.com> (raw)
In-Reply-To: <1351362370.4503.3.camel@maggy.simpson.net>
* Mike Galbraith <efault@gmx.de> wrote:
> On Fri, 2012-10-26 at 13:29 -0700, Mike Galbraith wrote:
> > On Sat, 2012-10-20 at 08:38 -0400, Mike Galbraith wrote:
> >
> > > So what I would do is either let the user decide once at boot, in which
> > > case if off, creating groups would be stupid), or, just rip autogroup
> > > completely out, since systemd is taking over the known universe anyway.
> >
> > I'm traveling, but have somewhat functional connectivity ATM, so..
> >
> > Peter: which would prefer. Simple noautogroup -> autogroup one time
> > only boottime enable, and autogroup lives on (I like it for my laptop)
> > with backport for stable.
>
> Like so, with bonus points for extra minus signs.
>
> sched, autogroup: fix crash on reboot when autogroup is disabled
>
> Between 8323f26ce and 800d4d30, autogroup is a wreck. With both
> applied, all you have to do to crash a box is disable autogroup
> during boot up, then reboot.. boom, NULL pointer dereference due
> to 800d4d30 not allowing autogroup to move things, and 8323f26ce
> making that the only way to switch runqueues.
>
> Remove all of the knobs, and make autogroup only go active if the
> user provides 'autogroup' on the command line. This allows distros
> to offer it, once the user asks for it, it's on. If the user then
> fiddles with cgroups, tough, once tasks are moved, autogroup won't
> mess with them again unless they call setsid().
>
> No knobs, no glitz, nada, just a cute little thing folks can turn
> on if they don't want to muck about with cgroups and/or systemd.
Please also keep the Kconfig switch and reuse it to turn on the
'autogroups' knob.
That way people with existing .config's don't have to change a
thing to get this functionality.
Thanks,
Ingo
next prev parent reply other threads:[~2012-10-28 10:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-19 8:36 [PATCH] sched, autogroup: fix kernel crashes caused by runtime disable autogroup Xiaotian Feng
2012-10-19 13:42 ` Peter Zijlstra
2012-10-20 6:42 ` Xiaotian Feng
2012-10-20 12:38 ` Mike Galbraith
2012-10-26 20:29 ` Mike Galbraith
2012-10-27 18:26 ` [PATCH] sched, autogroup: fix crash on reboot when autogroup is disabled Mike Galbraith
2012-10-28 10:25 ` Ingo Molnar [this message]
2012-10-28 13:13 ` Mike Galbraith
2012-10-28 13:19 ` Ingo Molnar
2012-10-28 13:33 ` Mike Galbraith
2012-10-28 14:05 ` Ingo Molnar
2012-10-28 14:27 ` Mike Galbraith
2012-10-28 19:19 ` [PATCH] V2 " Mike Galbraith
2012-10-29 2:42 ` Xiaotian Feng
2012-10-29 12:10 ` Mike Galbraith
2012-10-30 12:28 ` [tip:sched/urgent] sched/autogroup: Fix " tip-bot for Mike Galbraith
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=20121028102520.GA7711@gmail.com \
--to=mingo@kernel.org \
--cc=dannyfeng@tencent.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=xtfeng@gmail.com \
/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
Powered by JetHome