From: andy@aeruder.net (Andrew Ruder)
To: linux-arm-kernel@lists.infradead.org
Subject: [BUG] reproducable ubifs reboot assert and corruption
Date: Mon, 27 Jan 2014 10:39:39 -0600 [thread overview]
Message-ID: <20140127163939.GA27809@gmail.com> (raw)
In-Reply-To: <CAFLxGvwmzftdQKSjjjwpFLS8g3EJqMrQ2gU2scBsh2MvG7Wyyw@mail.gmail.com>
On Sat, Jan 25, 2014 at 04:02:15PM +0100, Richard Weinberger wrote:
> So ubifs_bgt0_0 stops and the fun begins.
> Can you trigger the issue also by unmounting /mnt?
> I.e umount -l /mnt
> The background thread should only stop after all io is done...
Did some experiments last week to see if I could trigger the bug with
full debug messages enabled. Biggest problem is that I don't have
non-volatile memory available, serial logging slows it down too much to
trigger the bug, and the reboot tends to shut down any attempt to
offload the log to capture the relevant messages.
That being said, I was able to trigger the bug with the following:
[root at buildroot ~]# (sleep 5 ; while ! mount -o remount,ro /mnt ; do true ; done ; echo remount > /dev/kmsg ; sleep 5 ; echo reboot > /dev/kmsg ; reboot ) &
[2] 564
[root at buildroot ~]# fsstress -p 10 -n 10 -X -d /mnt/fsstress -l 0
In my log I can see the "remount" message and 100ms later I can see the
first ubifs assert. I've attached the relevant portion of the logs
below from the first time I see LEB 44 mentioned through the asserts.
I've put the logs on the web due to concerns of flooding the mailing
list with 100's of kB in attachments.
https://gist.github.com/aeruder/8651928
ubi_corruption.txt is the kernel log
afterwards.txt is the console log with the ensuing issue with ubifs
I also have logs of the recovery process in the Linux kernel later on,
(still takes 2 mounts), an image of the MTD device, and would be happy
to try anything or enable any additional debug messages.
> Can you also please find out whether fssstress is still running when
> reboot takes action?
Thanks for taking a look. I'm reading everything I can find about ubifs
to see if I can make some headway into understanding what is going on
but filesytems are definitely not my forte :).
Cheers,
Andrew Ruder
next prev parent reply other threads:[~2014-01-27 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20140122051510.GB17284@gmail.com>
2014-01-24 13:31 ` [BUG] reproducable ubifs reboot assert and corruption Andrew Ruder
[not found] ` <CAFLxGvwmzftdQKSjjjwpFLS8g3EJqMrQ2gU2scBsh2MvG7Wyyw@mail.gmail.com>
2014-01-27 16:39 ` Andrew Ruder [this message]
2014-01-29 5:32 ` Andrew Ruder
2014-01-29 7:17 ` Richard Weinberger
2014-01-29 15:39 ` Andrew Ruder
2014-01-29 7:30 ` Richard Weinberger
2014-01-29 15:46 ` Andrew Ruder
2014-01-29 15:56 ` Richard Weinberger
2014-01-29 19:13 ` Andrew Ruder
2014-01-29 19:56 ` Richard Weinberger
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=20140127163939.GA27809@gmail.com \
--to=andy@aeruder.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 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).