summaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
diff options
context:
space:
mode:
authordingdinghua <dingdinghua85@gmail.com>2009-07-13 23:55:35 +0200
committerTheodore Ts'o <tytso@mit.edu>2009-07-13 23:55:35 +0200
commit96577c43827697ca1af5982fa256a34786d0c720 (patch)
treeaa752d4685f5702976683401dadb7557f161d62d /REPORTING-BUGS
parentext4: Fix ext4_mb_initialize_context() to initialize all fields (diff)
downloadlinux-96577c43827697ca1af5982fa256a34786d0c720.tar.xz
linux-96577c43827697ca1af5982fa256a34786d0c720.zip
jbd2: fix race between write_metadata_buffer and get_write_access
The function jbd2_journal_write_metadata_buffer() calls jbd_unlock_bh_state(bh_in) too early; this could potentially allow another thread to call get_write_access on the buffer head, modify the data, and dirty it, and allowing the wrong data to be written into the journal. Fortunately, if we lose this race, the only time this will actually cause filesystem corruption is if there is a system crash or other unclean shutdown of the system before the next commit can take place. Signed-off-by: dingdinghua <dingdinghua85@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions