In the Linux kernel, the following vulnerability has been resolved: writeback: clear old wb dirty state after inode switches Switching an inode to another wb updates the target wb's dirty-I/O state, but no longer checks whether the source wb's dirty-I/O lists became empty. The check was lost when inode_io_list_del_locked(inode, old_wb) was removed to support tracking clean attached inodes. If the last dirty inode is moved, WB_has_dirty_io remains set on the old wb and its bandwidth contribution remains in bdi->tot_write_bandwidth. This can keep an empty wb scheduled for periodic writeback and overstate the total bandwidth used to distribute writeback work. Call wb_io_lists_depopulated() on the old wb after the batch of inode switches, while its list_lock is still held. This clears the flag and removes the bandwidth contribution if its dirty-I/O lists are empty.
https://git.kernel.org/stable/c/ec53f2a4561fdfd97c5ad99314c75b6d9f47b25e
https://git.kernel.org/stable/c/bda6505703a3c197d19415de93ddc2efe0a493e6
https://git.kernel.org/stable/c/a396fe9f74ea367ae3fab2dcb70b24e83db9f0cb
https://git.kernel.org/stable/c/7d9c3b7098ed6d7564ccbeae7fa98f759d6ef24c
https://git.kernel.org/stable/c/67324910000e8e45ccb605647b14402b8ffd940b
https://git.kernel.org/stable/c/354ae3b6eea3a56f270640d2548b08cca6e93758
https://git.kernel.org/stable/c/0a4c515925cc1130821e14de528b8c2792ada94f