Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521228 - sys-kernel/gentoo-sources-3.16.{0,1} - file corruption on reiserfs based file system
Summary: sys-kernel/gentoo-sources-3.16.{0,1} - file corruption on reiserfs based file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 06:35 UTC by DaggyStyle
Modified: 2014-10-14 17:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DaggyStyle 2014-08-27 06:35:15 UTC
after upgrade to the kernel mentioned above, my portage tree partition has files which are truncated in mid file.

it seems to be a regression from this commit in the vanilla kernel: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-3.16.y&id=2840c566e95599cd60c7143762ca8b49d9395050

I don't know what is the wide range affect files but up until now I've seen in only in small files. my windows vm which sits on a 250gb file doesn't seems to be affected up until now.

Reproducible: Always

Steps to Reproduce:
1. boot a system with kernel 3.16.{0,1}
2. create a reiserfs partition and place portage tree on it.
3. run emerge --sync
4. run emerge -ptvuDN world.

Actual Results:  
emerge should print files which fails digest.
pick a file and view it, see that it is truncated in the middle.

Expected Results:  
no digest errors should be displayed.

there is good possability that downgrading kernel to below 3.16 solves the issue but I'm still checking fs integrity.
Comment 1 DaggyStyle 2014-08-27 09:08:32 UTC
added link to kernel bug.
Comment 2 Harris Landgarten 2014-09-08 04:04:43 UTC
I had similar issues and just filed a bug. I worked around by adding notail to options for all reisferfs volumes in fstab
Comment 3 Harris Landgarten 2014-09-10 04:05:59 UTC
this bug in the kernel is particularly bad on raid volumes because you get corruption when volumes sync so corruption happens in place without any explicit writing of files.

The fix did not make it into 3.16.2 and is not even sure for 3.16.3

It seems worth the effort for us to apply the patches for this bug ourselves.
Comment 4 Harris Landgarten 2014-09-19 04:38:22 UTC
looks like 3.16.3 has the reiserfs patches
Comment 5 Mike Pagano gentoo-dev 2014-10-14 17:52:50 UTC
This patch exists in >=3.16.X.  Please comment if this is not resolved.