Bug 220328 - possible data corruption when using MAP_SHARED
possible data corruption when using MAP_SHARED
Status: CLOSED DUPLICATE of bug 220963
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Peter Zijlstra
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-12-20 09:11 EST by Peter Zijlstra
Modified: 2014-08-11 01:40 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-08 11:28:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
current proposed patch - (verified to fix the issue on x86_64) (1.54 KB, patch)
2006-12-20 09:12 EST, Peter Zijlstra
no flags Details | Diff

  None (edit)
Description Peter Zijlstra 2006-12-20 09:11:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko)

Description of problem:
Data corruption was observed when using MAP_SHARED files on ext3 (not sure if 
limited to ext3) on various architectures (i686, x86_64, arm).

This error was traced back to the dirty page tracking for shared mappings 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.download a large (several times larger than machine memory) multi file 
torrent with rtorrent (version 0.7.0 with libtorrent 0.11.0) from mutliple 

Actual Results:
The hash check after the download completes indicates data corruption

Expected Results:
clean file

Additional info:
After a few days long bughunt on lkml it was found that page_mkclean_one() is 
A proposed patch is currently under discussion.

Start of thread:

current proposed patch:
Comment 1 Peter Zijlstra 2006-12-20 09:12:51 EST
Created attachment 144099 [details]
current proposed patch - (verified to fix the issue on x86_64)
Comment 2 Eric Sandeen 2007-01-08 10:38:36 EST
Sorry Peter, didn't know about this one - should it be dup'd to 220963 now?
Comment 3 Eric Sandeen 2007-01-08 11:28:13 EST

*** This bug has been marked as a duplicate of 220963 ***

Note You need to log in before you can comment on or make changes to this bug.