diff options
| author | Zhang Yi <[email protected]> | 2022-06-29 19:26:47 +0800 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-11-29 16:10:27 -0500 |
| commit | 318cdc822c63b6e2befcfdc2088378ae6fa18def (patch) | |
| tree | ab53a8d1f807b12a2c4f5c975dfb8481edb6d703 /tools/perf/scripts/python/stackcollapse.py | |
| parent | bc12ac98ea2e1b70adc6478c8b473a0003b659d3 (diff) | |
ext4: check and assert if marking an no_delete evicting inode dirty
In ext4_evict_inode(), if we evicting an inode in the 'no_delete' path,
it cannot be raced by another mark_inode_dirty(). If it happens,
someone else may accidentally dirty it without holding inode refcount
and probably cause use-after-free issues in the writeback procedure.
It's indiscoverable and hard to debug, so add an WARN_ON_ONCE() to
check and detect this issue in advance.
Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions