From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
Date: Mon, 30 Jan 2017 16:06:21 +0000 [thread overview]
Message-ID: <bug-193661-13602@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=193661
Bug ID: 193661
Summary: xattr ext4_xattr_block_find, bad block on cleanly
formatted ext4 partition
Product: File System
Version: 2.5
Kernel Version: all versions tested, from 3.19 through to 4.10-rc6
Hardware: i386
OS: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
Assignee: fs_ext4@kernel-bugs.osdl.org
Reporter: colin.king@canonical.com
Regression: No
Reproducer:
Ran inside a 8 proc VM instance, i386 kernel, 4MB of memory with the stress-ng
xattr stress test on a cleanly formated ext4 partition (e.g. mkfs.ext4
/dev/vdb1):
using stress-ng - to build from source on ubuntu systems:
git clone git://kernel.ubuntu.com/cking/stress-ng
sudo apt-get build-dep stress-ng
cd stress-ng
make
test script to invoke the stressor, needs to be run as root:
#!/bin/bash -x
for i in $(seq 30)
do
./stress-ng/stress-ng --xattr 8 -t 10
rc=$?
if [ $rc -ne 0 ]; then
exit 1
fi
done
This will trigger errors such as:
EXT4-fs error (device vdb1): ext4_xattr_block_find:802: inode #131074: comm
stress-ng-xattr: bad block 532519
and more often than not one needs to fsck the partition.
I've tested this on mainline kernels from 3.19 through to 4.10-rc6 and I can
trigger this on these kernels only on i386 systems. I've tested other 32 bit
platforms (32 bit arm, raspberry pi 2) but can't trigger it. I cannot trigger
this issue on amd64 builds of the same kernels in a VM.
I put some debug into ext4_xattr_block_set() at the /* update the inode. *
comment and the bug does not trip, so it seems that this reduces the risk of
teh race condition occurring.
--
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2017-01-30 16:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 16:06 bugzilla-daemon [this message]
2017-01-30 16:08 ` [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
2017-01-30 16:10 ` bugzilla-daemon
2017-01-30 16:24 ` bugzilla-daemon
2017-01-30 16:48 ` bugzilla-daemon
2017-01-30 16:50 ` bugzilla-daemon
2017-01-30 16:53 ` bugzilla-daemon
2017-01-30 16:55 ` bugzilla-daemon
2017-02-21 14:52 ` bugzilla-daemon
2017-02-22 0:24 ` bugzilla-daemon
2017-02-28 14:01 ` 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-193661-13602@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 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.