Skip to content
Commit cbc8cc33 authored by Jan Kara's avatar Jan Kara
Browse files

udf: Fix possible corruption when close races with write



When we close a file, we remove preallocated blocks from it. But this
truncation was not protected by i_mutex and thus it could have raced with a
write through a different fd and cause crashes or even filesystem corruption.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 81056dd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment