commit | d557b9659ba97e093f842dcc7e2cfe9a7022c674 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sun Feb 28 18:52:20 2021 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Feb 28 19:33:31 2021 -0500 |
tree | a300a430a5725a400d751063c0ac9aafeeb5227e | |
parent | e1af249abafbf4b08c5b55cab6a0564170ce0f7d [diff] |
libext2fs: fix potential races in unix_io When unix_io does not use pread/pread64 (which is the case the bounce buffer is in use, either when Direct I/O is in use or the IO_FLAG_FORCE_BOUNCE in enabled), there are races between the llseek and and read or write system calls. Fix this by using the BOUNCE_MTX so only one thread is using the file descriptor at a time. Signed-off-by: Theodore Ts'o <tytso@mit.edu>