diff options
author | Jan Kara <[email protected]> | 2024-03-21 17:26:50 +0100 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2024-05-03 00:02:24 -0400 |
commit | 0a46ef234756dca04623b7591e8ebb3440622f0b (patch) | |
tree | ac265fb5d61ded08f5e31b49db3339176371f0c5 /include/linux/overflow.h | |
parent | 4f3e6db3c3719952cfef89340290e0b7b03f7cbc (diff) |
ext4: do not create EA inode under buffer lock
ext4_xattr_set_entry() creates new EA inodes while holding buffer lock
on the external xattr block. This is problematic as it nests all the
allocation locking (which acquires locks on other buffers) under the
buffer lock. This can even deadlock when the filesystem is corrupted and
e.g. quota file is setup to contain xattr block as data block. Move the
allocation of EA inode out of ext4_xattr_set_entry() into the callers.
Reported-by: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions