From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: "Failed to create /dev/root: -14" after commit e6978e4bf1 ("ARM: save and reset the address limit when entering an exception")
Date: Tue, 2 Aug 2016 19:51:45 -0700 [thread overview]
Message-ID: <57A15C41.6000804@roeck-us.net> (raw)
Hi,
I see the following crash when running a qemu arm 'kzm' runtime test with the current mainline.
Failed to create /dev/root: -14
[ followed by panic ]
A complete log file is at [1].
Bisect points to commit e6978e4bf1 ("ARM: save and reset the address limit when entering
an exception"). Some additional debugging shows lots of similar error returns from
strncpy_from_user(). For the error case resulting in the crash, the call chain
is as follows.
sys_mknod
sys_mknodat()
user_path_create()
getname()
getname_flags()
strncpy_from_user()
Reverting the patch fixes the problem.
I don't see the problem with any other qemu arm test.
It looks like the kernel runs in exception context. My gut feeling is that qemu may be
to blame, but I am not really sure.
Any idea how to track this down ?
Thanks,
Guenter
---
[1] http://kerneltests.org/builders/qemu-arm-master/builds/615
WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <linux@roeck-us.net>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Will Deacon <will.deacon@arm.com>
Subject: "Failed to create /dev/root: -14" after commit e6978e4bf1 ("ARM: save and reset the address limit when entering an exception")
Date: Tue, 2 Aug 2016 19:51:45 -0700 [thread overview]
Message-ID: <57A15C41.6000804@roeck-us.net> (raw)
Hi,
I see the following crash when running a qemu arm 'kzm' runtime test with the current mainline.
Failed to create /dev/root: -14
[ followed by panic ]
A complete log file is at [1].
Bisect points to commit e6978e4bf1 ("ARM: save and reset the address limit when entering
an exception"). Some additional debugging shows lots of similar error returns from
strncpy_from_user(). For the error case resulting in the crash, the call chain
is as follows.
sys_mknod
sys_mknodat()
user_path_create()
getname()
getname_flags()
strncpy_from_user()
Reverting the patch fixes the problem.
I don't see the problem with any other qemu arm test.
It looks like the kernel runs in exception context. My gut feeling is that qemu may be
to blame, but I am not really sure.
Any idea how to track this down ?
Thanks,
Guenter
---
[1] http://kerneltests.org/builders/qemu-arm-master/builds/615
next reply other threads:[~2016-08-03 2:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 2:51 Guenter Roeck [this message]
2016-08-03 2:51 ` "Failed to create /dev/root: -14" after commit e6978e4bf1 ("ARM: save and reset the address limit when entering an exception") Guenter Roeck
2016-08-03 8:38 ` Russell King - ARM Linux
2016-08-03 8:38 ` Russell King - ARM Linux
2016-08-03 15:07 ` Guenter Roeck
2016-08-03 15:07 ` Guenter Roeck
2016-08-04 10:07 ` Russell King - ARM Linux
2016-08-04 10:07 ` Russell King - ARM Linux
2016-08-09 15:06 ` Gregory CLEMENT
2016-08-09 15:06 ` Gregory CLEMENT
2016-08-09 16:12 ` Guenter Roeck
2016-08-09 16:12 ` Guenter Roeck
2016-08-10 23:34 ` Kevin Hilman
2016-08-10 23:34 ` Kevin Hilman
2016-08-10 23:43 ` Russell King - ARM Linux
2016-08-10 23:43 ` Russell King - ARM Linux
2016-08-11 0:46 ` Kevin Hilman
2016-08-11 0:46 ` Kevin Hilman
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=57A15C41.6000804@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-arm-kernel@lists.infradead.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 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.