* [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
@ 2017-01-30 16:06 bugzilla-daemon
2017-01-30 16:08 ` [Bug 193661] " bugzilla-daemon
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:06 UTC (permalink / raw)
To: linux-ext4
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
@ 2017-01-30 16:08 ` bugzilla-daemon
2017-01-30 16:10 ` bugzilla-daemon
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:08 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #1 from Colin Ian King <colin.king@canonical.com> ---
Forgot to mention, this can be triggered on a SMP ppc64el VM with 4.8, but far
less frequently than the i386.
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
2017-01-30 16:08 ` [Bug 193661] " bugzilla-daemon
@ 2017-01-30 16:10 ` bugzilla-daemon
2017-01-30 16:24 ` bugzilla-daemon
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:10 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #2 from Colin Ian King <colin.king@canonical.com> ---
..and also userspace xattr setting calls get errno EUCLEAN 117 "Structure needs
cleaning".
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
2017-01-30 16:08 ` [Bug 193661] " bugzilla-daemon
2017-01-30 16:10 ` bugzilla-daemon
@ 2017-01-30 16:24 ` bugzilla-daemon
2017-01-30 16:48 ` bugzilla-daemon
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:24 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #3 from Colin Ian King <colin.king@canonical.com> ---
For reference, the xattr stressor is:
http://kernel.ubuntu.com/git/cking/stress-ng.git/tree/stress-xattr.c
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (2 preceding siblings ...)
2017-01-30 16:24 ` bugzilla-daemon
@ 2017-01-30 16:48 ` bugzilla-daemon
2017-01-30 16:50 ` bugzilla-daemon
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:48 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
Theodore Tso <tytso@mit.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tytso@mit.edu
--- Comment #4 from Theodore Tso <tytso@mit.edu> ---
Thanks for the bug report!
Does this require using the latest version of stress-ng (from the git tree), or
is it reproducible using the version of stress-ng in Ubuntu or Debian Jessie?
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (3 preceding siblings ...)
2017-01-30 16:48 ` bugzilla-daemon
@ 2017-01-30 16:50 ` bugzilla-daemon
2017-01-30 16:53 ` bugzilla-daemon
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:50 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #5 from Colin Ian King <colin.king@canonical.com> ---
I'd recommend the latest version from the git repo.
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (4 preceding siblings ...)
2017-01-30 16:50 ` bugzilla-daemon
@ 2017-01-30 16:53 ` bugzilla-daemon
2017-01-30 16:55 ` bugzilla-daemon
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:53 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #6 from Theodore Tso <tytso@mit.edu> ---
And since you appear to be the maintainer of the stress-ng package, while I'm
here, any objections if upload a backport of stress-ng v0.07.16 to
jessie-backports? :-)
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (5 preceding siblings ...)
2017-01-30 16:53 ` bugzilla-daemon
@ 2017-01-30 16:55 ` bugzilla-daemon
2017-02-21 14:52 ` bugzilla-daemon
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-01-30 16:55 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #7 from Colin Ian King <colin.king@canonical.com> ---
An upload to jessie-backports is doable, but I'm going to push another release
at the end of this week.
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (6 preceding siblings ...)
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
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-02-21 14:52 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
--- Comment #8 from Colin Ian King (colin.king@canonical.com) ---
Hi Ted, is there anything else I need to add to this bug report?
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (7 preceding siblings ...)
2017-02-21 14:52 ` bugzilla-daemon
@ 2017-02-22 0:24 ` bugzilla-daemon
2017-02-28 14:01 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-02-22 0:24 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
Christian Kujau (lists@nerdbynature.de) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lists@nerdbynature.de
--- Comment #9 from Christian Kujau (lists@nerdbynature.de) ---
Wow, this triggers in a Debian/unstable 64-bit VM here after the first run:
$ mkfs.ext4 /dev/sdd
$ mount -t ext4 /dev/sdd /mnt/disk && cd /mnt/disk
$ time ~/193661.sh
++ seq 30
+ for i in $(seq 30)
+ /usr/local/sbin/stress-ng --xattr 8 -t 10
stress-ng: info: [2639] dispatching hogs: 8 xattr
stress-ng: info: [2639] cache allocate: default cache size: 6144K
stress-ng: fail: [2647] stress-ng-xattr: fsetxattr failed, errno=117
(Structure needs cleaning)
stress-ng: error: [2639] process 2647 (stress-ng-xattr) terminated with an
error, exit status=1
stress-ng: info: [2639] unsuccessful run completed in 10.01s
+ rc=2
+ '[' 2 -ne 0 ']'
+ exit 1
real 0m10.019s
user 0m1.460s
sys 0m26.752s
$ dmesg | tail -2
[ 494.311212] EXT4-fs (sdd): mounted filesystem with ordered data mode. Opts:
(null)
[ 550.828337] EXT4-fs error (device sdd): ext4_xattr_block_find:786: inode
#524292: comm stress-ng-xattr: bad block 2105384
$ uname -rv
4.9.0-1-amd64 #1 SMP Debian 4.9.6-3 (2017-01-28)
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug 193661] xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
` (8 preceding siblings ...)
2017-02-22 0:24 ` bugzilla-daemon
@ 2017-02-28 14:01 ` bugzilla-daemon
9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2017-02-28 14:01 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=193661
Theodore Tso (tytso@mit.edu) changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|fs_ext4@kernel-bugs.osdl.or |tytso@mit.edu
|g |
--- Comment #10 from Theodore Tso (tytso@mit.edu) ---
Created attachment 254979
--> https://bugzilla.kernel.org/attachment.cgi?id=254979&action=edit
ext4: lock the the xattr block before calculating its checksum
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-02-28 14:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 16:06 [Bug 193661] New: xattr ext4_xattr_block_find, bad block on cleanly formatted ext4 partition bugzilla-daemon
2017-01-30 16:08 ` [Bug 193661] " 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
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).