diff options
| author | Jan Kara <[email protected]> | 2022-12-12 11:36:33 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-12-12 20:08:34 +0000 |
| commit | a9438b44bc7015b18931e312bbd249a25bb59a65 (patch) | |
| tree | fb38dd733afe5765d9d2ffa1ed759266faa96558 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Linux 6.1-rc6 (diff) | |
| download | kernel-a9438b44bc7015b18931e312bbd249a25bb59a65.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
