diff options
author | Jan Kara <[email protected]> | 2020-10-15 13:03:30 +0200 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2020-10-18 10:37:26 -0400 |
commit | e0770e91424f694b461141cbc99adf6b23006b60 (patch) | |
tree | 9cc0167aece66eb6ebbb1df81db47b31ee83af5b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | fc750a3b44bdccb9fb96d6abbc48a9b8e480ce7b (diff) |
ext4: Detect already used quota file early
When we try to use file already used as a quota file again (for the same
or different quota type), strange things can happen. At the very least
lockdep annotations may be wrong but also inode flags may be wrongly set
/ reset. When the file is used for two quota types at once we can even
corrupt the file and likely crash the kernel. Catch all these cases by
checking whether passed file is already used as quota file and bail
early in that case.
This fixes occasional generic/219 failure due to lockdep complaint.
Reviewed-by: Andreas Dilger <[email protected]>
Reported-by: Ritesh Harjani <[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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions