From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 61601] rootflags=noatime causes kernel panic when booting without initrd.
Date: Mon, 11 Aug 2014 05:06:13 +0000 [thread overview]
Message-ID: <bug-61601-13602-FS6UDfIPDL@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-61601-13602@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=61601
Theodore Tso <tytso@mit.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tytso@mit.edu
--- Comment #10 from Theodore Tso <tytso@mit.edu> ---
Here's what's going on. There are some mount flags that are parsed by the
userspace mount program, and translated to an integer field "mountflags" in the
mount(2) system call. See the man page for mount(2) for more details; see the
flags MS_NOATIME, MS_NOEXEC, MS_NOSUID, etc. They are described in the
mount(8) system call in the section "FILESYSTEM INDEPENDENT MOUNT OPTIONS".
If you are using an initrd, the rootflags boot line command is handled by the
userspace mount program; the initrd is responsible for mounting the root file
system, and it does so using mount(8).
However, if you are not using an initrd, then the mount flags are handled by
/usr/src/linux/init/do_mounts.c, and the kernel code simply doesn't handle
converting "noatime" into MS_NOATIME and then or'ing it into root_mountflags.
The simplest workaround is to add in your init scripts the command:
mount -o remount,noatime /
you could combine this with the init script command which remounts the root
file system read-only, i.e.: mount -o remount,rw,noatime /
P.S. Ignore Nick's comment in #9. He's guessing, and he doesn't know what
he's doing. He's been banned from LKML, but unfortunately he hasn't been
banned from the kernel bugzilla yet. It's one thing when he's wasting
maintainers' time, but when he's confusing and adding negative value to users
who are asking for help, it's definitely not ok. We'll have to remedy
that....
See https://plus.google.com/+TheodoreTso/posts/ELVf6FmuY2N for more details.
--
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2014-08-11 5:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 12:05 [Bug 61601] New: rootflags=noatime causes kernel panic when booting without initrd bugzilla-daemon
2013-11-13 14:50 ` [Bug 61601] " bugzilla-daemon
2013-11-15 19:39 ` bugzilla-daemon
2014-03-30 16:06 ` bugzilla-daemon
2014-04-07 15:27 ` bugzilla-daemon
2014-04-11 21:25 ` bugzilla-daemon
2014-06-24 18:41 ` bugzilla-daemon
2014-08-11 3:08 ` bugzilla-daemon
2014-08-11 3:09 ` bugzilla-daemon
2014-08-11 4:17 ` bugzilla-daemon
2014-08-11 5:06 ` bugzilla-daemon [this message]
2014-08-11 5:32 ` bugzilla-daemon
2014-08-11 7:04 ` bugzilla-daemon
2014-08-11 14:24 ` bugzilla-daemon
2014-08-12 5:02 ` bugzilla-daemon
2015-06-09 9:52 ` bugzilla-daemon
2015-06-09 21:35 ` bugzilla-daemon
2015-06-10 16:04 ` bugzilla-daemon
2016-07-22 14:05 ` bugzilla-daemon
2025-03-31 16:20 ` bugzilla-daemon
2025-04-03 10:14 ` bugzilla-daemon
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=bug-61601-13602-FS6UDfIPDL@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@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;
as well as URLs for NNTP newsgroup(s).