diff options
author | Jan Kara <jack@suse.cz> | 2022-12-12 12:36:33 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-12 21:08:34 +0100 |
commit | a9438b44bc7015b18931e312bbd249a25bb59a65 (patch) | |
tree | fb38dd733afe5765d9d2ffa1ed759266faa96558 /CREDITS | |
parent | Linux 6.1-rc6 (diff) | |
download | linux-a9438b44bc7015b18931e312bbd249a25bb59a65.tar.xz linux-a9438b44bc7015b18931e312bbd249a25bb59a65.zip |
writeback: Add asserts for adding freed inode to lists
In the past we had several use-after-free issues with inodes getting
added to writeback lists after evict() removed them. These are painful
to debug so add some asserts to catch the problem earlier. The only
non-obvious change in the commit is that we need to tweak
redirty_tail_locked() to avoid triggering assertion in
inode_io_list_move_locked().
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221212113633.29181-1-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions