mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andrew Morton" <morton@nortelnetworks.com>
To: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Cc: linux-kernel@vger.kernel.org, andrewm@uow.edu.au
Subject: Re: OOps in exec_usermodehelper
Date: Tue, 28 Nov 2000 00:47:37 +0000	[thread overview]
Message-ID: <3A2300A9.42D40D68@asiapacificm01.nt.com> (raw)
In-Reply-To: <E0CA73F3362@vcnet.vc.cvut.cz>

Petr Vandrovec wrote:
> 
> Hi,
>   I have one small problem with 2.4.0-test11 and exec_usermodehelper.
> When vmware modules shutdown (specifically vmnet-netifup), kernel tries
> to load some module through call_usermodehelper, but unfortunately
> from task which has current->files == NULL.
> 
>   So it prints message:
> 
> waitpid(19457) failed, -512
> 
>   and then it oopses in
> 
> for (i = 0; i < current->files->max_fds; i++) {
>   if (current->files->fd[i]) close(i);
> }
> 
> (In log, there is first waitpid, and then oopses from current->files == NULL,
> which I do not quite understand).
> 
> Should I look into this more deeply, or is correct fix just add
> 
> if (current->files) {
>   for (i = 0; ..... ) ...
> }
> 
> into exec_usermodehelper?

No.  Then it just blows up somewhere else.

The root cause here is that we're starting a kernel thread
from within a half-exitted parent.  I'll be coding a fix 
later today.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-11-28  1:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-27 14:11 Petr Vandrovec
2000-11-28  0:47 ` Andrew Morton [this message]
2000-11-28 14:53 ` Andrew Morton
2000-11-28 18:59 Petr Vandrovec
2000-11-29  7:19 ` Andrew Morton

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=3A2300A9.42D40D68@asiapacificm01.nt.com \
    --to=morton@nortelnetworks.com \
    --cc=VANDROVE@vc.cvut.cz \
    --cc=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®