Skip to content
Commit b5a7e970 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix ext4_end_io_dio() racing against fsync()



We need to make sure iocb->private is cleared *before* we put the
io_end structure on i_completed_io_list.  Otherwise fsync() could
potentially run on another CPU and free the iocb structure out from
under us.

Reported-by: default avatarKent Overstreet <koverstreet@google.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
parent dc47ce90
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