From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ubifsmount fails due to not initialized list
Date: Wed, 05 May 2010 14:59:52 +0200 [thread overview]
Message-ID: <4BE16BC8.7040903@denx.de> (raw)
In-Reply-To: <o2z32a6c48b1005050421o5fbcb758sa5175d5f2e416b51@mail.gmail.com>
Quotient Remainder wrote:
> Out of interest, how did something like this get away with only causing
> an occasional failure?
Well, there are some explanations. MMU is normally off and a Null
Pointer does not cause an exception in u-boot. If we get a failure, it
depends on the architecture we are using. On PowerPC, address 0 is
accessible and then we get no failure. In this particular case
(ubifsmount), the list is set but not used by the calling function.
Because writing to address 0 is allowed, the bug is not noticeable.
Different is on arm, where I have found the problem. Because in this
case address 0 is not accessible at all, u-boot hangs and it is not
possible to avoid to see that we have a problem....
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2010-05-05 12:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 7:47 [U-Boot] [PATCH] ubifsmount fails due to not initialized list Stefano Babic
2010-04-28 8:02 ` Stefan Roese
2010-05-05 11:21 ` Quotient Remainder
2010-05-05 12:59 ` Stefano Babic [this message]
2010-05-05 14:10 ` Quotient Remainder
2010-05-26 13:20 ` Christian Hohnstaedt
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=4BE16BC8.7040903@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/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