mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Will Newton <will.newton@gmail.com>
To: Arjan van de Ven <arjan@linux.intel.com>
Cc: Greg KH <gregkh@suse.de>, Hugh Dickins <hugh@veritas.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
	alan@lxorguk.ukuu.org.uk, viro@zeniv.linux.org.uk,
	jmorris@namei.org, akpm@linux-foundation.org,
	paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: Please revert kobject_uevent UMH_NO_WAIT
Date: Thu, 16 Apr 2009 22:36:52 +0100	[thread overview]
Message-ID: <87a5b0800904161436u2226daf4y7bbaf99c4ac85f1a@mail.gmail.com> (raw)
In-Reply-To: <49E7A377.3000901@linux.intel.com>

On Thu, Apr 16, 2009 at 10:30 PM, Arjan van de Ven
<arjan@linux.intel.com> wrote:
> Greg KH wrote:
>>
>> On Thu, Apr 16, 2009 at 09:55:29PM +0100, Hugh Dickins wrote:
>>>
>>> Please revert commit f520360d93cdc37de5d972dac4bf3bdef6a7f6a7
>>> "kobject: don't block for each kobject_uevent".
>>>
>>> Tetsuo Handa, running a kernel with CONFIG_DEBUG_PAGEALLOC=y
>>> and CONFIG_UEVENT_HELPER_PATH=/sbin/hotplug, has been hitting RCU
>>> detected CPU stalls: it's been spinning in the loop where do_execve()
>>> counts up the args (but why wasn't fixup_exception working? dunno).
>>>
>>> The recent change, switching kobject_uevent_env() from UMH_WAIT_EXEC
>>> to UMH_NO_WAIT, is broken: the exec uses args on the local stack here,
>>> and an env which is kfreed as soon as call_usermodehelper() returns.
>>> It very much needs to wait for the exec to be done.
>>>
>>> Or keep the UMH_NO_WAIT, and complicate the code to allocate and free
>>> these resources correctly?  No, as GregKH pointed out when making the
>>> commit, CONFIG_UEVENT_HELPER_PATH="" is a much better optimization -
>>> though some distros are still saying /sbin/hotplug in their .config,
>>> yet with no such binary in their initrd or their root.
>>>
>>> Or...
>>>
>>> [PATCH] revert kobject_uevent UMH_NO_WAIT
>>>
>>> Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
>>> Signed-off-by: Hugh Dickins <hugh@veritas.com>
>>
>> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> Acked-by: Arjan van de Ven <arjan@linux.intel.com>
> as well
>
> not worth the hassle if this breaks too much

Acked-by: Will Newton <will.newton@gmail.com>

It's causing crashes for me too (reported 10 days ago).

> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

      reply	other threads:[~2009-04-16 21:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08  0:57 [2.6.30-rc1] RCU detected CPU 1 stall Tetsuo Handa
2009-04-10 14:22 ` Paul E. McKenney
2009-04-10 15:03   ` Al Viro
2009-04-10 15:32     ` Paul E. McKenney
2009-04-10 21:08       ` Tetsuo Handa
2009-04-10 23:12         ` Paul E. McKenney
2009-04-10 23:39           ` Al Viro
2009-04-11  0:48             ` Paul E. McKenney
2009-04-13  0:48             ` Tetsuo Handa
2009-04-13 19:55               ` Paul E. McKenney
2009-04-13 21:31                 ` Tetsuo Handa
2009-04-13 22:47                   ` Paul E. McKenney
2009-04-14 17:11               ` Hugh Dickins
2009-04-15  3:28                 ` Tetsuo Handa
2009-04-15 20:34                   ` Hugh Dickins
2009-04-16  0:46                     ` Tetsuo Handa
2009-04-16  5:15                       ` Hugh Dickins
2009-04-16  5:35                         ` Tetsuo Handa
2009-04-16 20:37                           ` Greg KH
2009-04-16 20:55                           ` Please revert kobject_uevent UMH_NO_WAIT Hugh Dickins
2009-04-16 20:58                             ` [PATCH] mm: pass correct mm when growing stack Hugh Dickins
2009-04-16 21:24                             ` Please revert kobject_uevent UMH_NO_WAIT Greg KH
2009-04-16 21:30                               ` Arjan van de Ven
2009-04-16 21:36                                 ` Will Newton [this message]

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=87a5b0800904161436u2226daf4y7bbaf99c4ac85f1a@mail.gmail.com \
    --to=will.newton@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=arjan@linux.intel.com \
    --cc=gregkh@suse.de \
    --cc=hugh@veritas.com \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /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

all inboxes | Powered by JetHome®