From: Rene Mayrhofer <rene.mayrhofer@gibraltar.at>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Mika Penttilä" <mika.penttila@kolumbus.fi>,
"Jason Baron" <jbaron@redhat.com>,
vda@port.imtp.ilyichevsk.odessa.ua,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: pivot_root seems to be broken in 2.4.21-ac4 and 2.4.22-pre7
Date: Wed, 23 Jul 2003 08:30:44 +0200 [thread overview]
Message-ID: <3F1E2B94.5010602@gibraltar.at> (raw)
In-Reply-To: <1058917089.4768.6.camel@dhcp22.swansea.linux.org.uk>
Alan Cox wrote:
> On Maw, 2003-07-22 at 23:14, Mika Penttilä wrote:
>
>>/sbin/init used to start up with files->count > 1 and does
>>close(0);close(1);close(2); -> kernel thread fds close.
>>
>>Now with unshare_files() and init's files->count ==1 the kernel threads
>>/dev/console fds remain open. But one could ask of course so what :)
The problem with this behaviour is that the old root fs can not be
unmounted in this case, which basically means that the machine will be
unable to switch off its harddisk. And that, at least in my case, is
annoying :)
> In other words the kernel side got caught out because it assumed
> the bogus thread behaviour and needs some close() calls adding. That
> would make sense.
I have to admin that I don't really know the internals and thus don't
completely understand. What would need to be done to fix it ? Change
init's re-exec routines ?
best regards,
Rene
next prev parent reply other threads:[~2003-07-23 6:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-21 20:53 pivot_root seems to be broken in 2.4.21-ac4 Rene Mayrhofer
2003-07-22 6:24 ` Denis Vlasenko
2003-07-22 6:50 ` Rene Mayrhofer
2003-07-22 17:37 ` Jason Baron
2003-07-22 17:40 ` Alan Cox
2003-07-22 18:03 ` Rene Mayrhofer
2003-07-22 20:00 ` Alan Cox
2003-07-22 20:37 ` Rene Mayrhofer
2003-07-22 21:54 ` Alan Cox
2003-07-23 6:23 ` pivot_root seems to be broken in 2.4.21-ac4 and 2.4.22-pre7 Rene Mayrhofer
2003-07-22 22:14 ` pivot_root seems to be broken in 2.4.21-ac4 Mika Penttilä
2003-07-22 23:38 ` Alan Cox
2003-07-23 6:30 ` Rene Mayrhofer [this message]
2003-07-24 2:24 ` pivot_root seems to be broken in 2.4.21-ac4 and 2.4.22-pre7 Jason Baron
2003-07-24 7:11 ` Rene Mayrhofer
2003-07-22 18:25 ` pivot_root seems to be broken in 2.4.21-ac4 Mika Penttilä
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=3F1E2B94.5010602@gibraltar.at \
--to=rene.mayrhofer@gibraltar.at \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jbaron@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.penttila@kolumbus.fi \
--cc=vda@port.imtp.ilyichevsk.odessa.ua \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.