summaryrefslogtreecommitdiff
path: root/version.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-02-28 18:52:20 -0500
committerTheodore Ts'o <tytso@mit.edu>2021-02-28 19:33:31 -0500
commitd557b9659ba97e093f842dcc7e2cfe9a7022c674 (patch)
treea300a430a5725a400d751063c0ac9aafeeb5227e /version.h
parente1af249abafbf4b08c5b55cab6a0564170ce0f7d (diff)
downloade2fsprogs-d557b9659ba97e093f842dcc7e2cfe9a7022c674.tar.gz
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>
Diffstat (limited to 'version.h')
0 files changed, 0 insertions, 0 deletions