summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authordingdinghua <dingdinghua85@gmail.com>2009-07-13 21:55:35 (GMT)
committerTheodore Ts'o <tytso@mit.edu>2009-07-13 21:55:35 (GMT)
commit96577c43827697ca1af5982fa256a34786d0c720 (patch)
treeaa752d4685f5702976683401dadb7557f161d62d /fs/ext4
parent833576b362e15c38be3bfe43942cda693e56287c (diff)
downloadlinux-96577c43827697ca1af5982fa256a34786d0c720.tar.xz
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 'fs/ext4')
0 files changed, 0 insertions, 0 deletions