aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorTheodore Ts'o <[email protected]>2021-08-21 03:44:17 +0000
committerTheodore Ts'o <[email protected]>2021-08-31 03:36:50 +0000
commita54c4613dac1500b40e4ab55199f7c51f028e848 (patch)
treebc30df927da83ea3ac12345fcea64f104e6b8230 /fs/ext4/fast_commit.c
parentjbd2: add sparse annotations for add_transaction_credits() (diff)
downloadkernel-a54c4613dac1500b40e4ab55199f7c51f028e848.tar.gz
kernel-a54c4613dac1500b40e4ab55199f7c51f028e848.zip
ext4: fix race writing to an inline_data file while its xattrs are changing
The location of the system.data extended attribute can change whenever xattr_sem is not taken. So we need to recalculate the i_inline_off field since it mgiht have changed between ext4_write_begin() and ext4_write_end(). This means that caching i_inline_off is probably not helpful, so in the long run we should probably get rid of it and shrink the in-memory ext4 inode slightly, but let's fix the race the simple way for now. Cc: [email protected] Fixes: f19d5870cbf72 ("ext4: add normal write support for inline data") Reported-by: [email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions