From: Al Viro <viro@zeniv.linux.org.uk>
To: Jesse Barnes <jsbarnes@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Dominik Brodowski <linux@dominikbrodowski.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Ingo Molnar <mingo@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] remove ksys_mount() and ksys_dup()
Date: Tue, 17 Dec 2019 22:57:43 +0000 [thread overview]
Message-ID: <20191217225743.GD4203@ZenIV.linux.org.uk> (raw)
In-Reply-To: <CAJmaN=mNVJVGPkwYvE6PmQSgT8o3Uo3=1iQm2NFicZ2fFC6Pxw@mail.gmail.com>
On Tue, Dec 17, 2019 at 02:21:03PM -0800, Jesse Barnes wrote:
> > and yes,that particular problem only triggers when you have some odd
> > root filesystem without a /dev/console. Or a kernel config that
> > doesn't have those devices enabled at all.
> >
> > I delayed pulling it for a couple of days, but the branch was not in
> > linux-next, so my delay didn't make any difference, and all these
> > things only became obvious after I pulled. And while it was all
> > horribly buggy, it was only buggy for the "these cases don't happen in
> > a normal distro" case, so the regular use didn't show them.
> >
> > My bad. I shouldn't have pulled this, but it all looked very obvious
> > and trivial.
>
> Oh I should have caught that too, I was looking right at it...
>
> But anyway it looks like a nice cleanup with a few more fixes.
> Hopefully we can get there soon...
FWIW, this is precisely what I'd been talking about[*] - instead of
a plain "we are reusing the damn syscall, with fixed interface and
debugged by userland all the time" we'd got an open-coded analogue
that will be a headache (and a source of bitrot) for years.
It's not a normal part of the kernel, and I bloody well remember
what kind of headache it had been before it got massaged to use
of plain syscalls. Constant need to remember that a change in
VFS guts might break something in the code that is hell to
debug - getting test coverage for it is not fun at all. As we
are seeing right now...
Seriously, these parts of init/* ought to be treated as userland code
that runs in kernel mode mostly because it's too much PITA to arrange
building a static ELF binary and linking it into the image.
[*] "IMO it's not a good idea. Exposing the guts of fs/namespace.c to
what's essentially a userland code that happens to run in kernel thread
is asking for trouble - we'd been there and it had been hell to untangle."
My fault, I guess - should've been more specific than that ;-/
next prev parent reply other threads:[~2019-12-17 22:57 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-12 18:14 Dominik Brodowski
2019-12-12 18:14 ` [PATCH 1/5] devtmpfs: use do_mount() instead of ksys_mount() Dominik Brodowski
2019-12-12 18:14 ` [PATCH 2/5] initrd: " Dominik Brodowski
2019-12-12 18:14 ` [PATCH 3/5] init: " Dominik Brodowski
2019-12-16 9:45 ` Borislav Petkov
2019-12-16 9:51 ` Dominik Brodowski
2019-12-16 10:19 ` Borislav Petkov
2019-12-12 18:14 ` [PATCH 4/5] init: unify opening /dev/console as stdin/stdout/stderr Dominik Brodowski
2019-12-12 18:14 ` [PATCH 5/5] fs: remove ksys_dup() Dominik Brodowski
2019-12-15 19:50 ` [GIT PULL] remove ksys_mount() and ksys_dup() Linus Torvalds
2019-12-15 20:50 ` pr-tracker-bot
[not found] ` <CAJmaN=ksaH5AgRUdVPGWKZzjEinU+goaCqedH1PW6OmKYc_TuA@mail.gmail.com>
2019-12-17 19:37 ` Greg Kroah-Hartman
2019-12-17 20:05 ` Jesse Barnes
2019-12-17 20:40 ` Linus Torvalds
2019-12-17 22:21 ` Jesse Barnes
2019-12-17 22:57 ` Al Viro [this message]
2019-12-17 23:23 ` Al Viro
2019-12-18 7:51 ` Dominik Brodowski
2019-12-18 13:37 ` Al Viro
2019-12-17 5:17 ` [PATCH 4/5] init: unify opening /dev/console as stdin/stdout/stderr youling257
2019-12-17 6:42 ` Dominik Brodowski
2019-12-17 9:33 ` youling 257
2019-12-17 21:14 ` Linus Torvalds
2019-12-18 4:10 ` youling 257
2019-12-18 8:03 ` Dominik Brodowski
2019-12-18 21:50 ` youling 257
2019-12-19 7:08 ` Dominik Brodowski
2019-12-19 9:34 ` youling 257
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=20191217225743.GD4203@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=jsbarnes@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=mingo@kernel.org \
--cc=rafael@kernel.org \
--cc=torvalds@linux-foundation.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
Powered by JetHome