In the Linux kernel, the following vulnerability has been resolved: f2fs: flush SIT journal during filesystem resize During a filesystem resize, SBI_IS_RESIZEFS prevents new SIT entries from being added to the journal and forces existing entries to the SIT area. However, f2fs_flush_sit_entries() returns early when there are no new dirty sentries, leaving existing journal entries behind. After the main area shrinks, a later checkpoint can access a journal entry whose segment number is outside the new geometry and trigger f2fs_bug_on(). Only take the zero-dirty fast path when entries may be written back to the journal. This lets resize drain existing entries through remove_sits_in_journal() even when there are no new dirty sentries.
https://git.kernel.org/stable/c/c98e405a5621863663b718bfdb982ed08f356ed6
https://git.kernel.org/stable/c/a6ede405455106bf42164ec96fd84008c5aabdd9
https://git.kernel.org/stable/c/9738228aeaf27ed26b9815b79dde9574e124148d
https://git.kernel.org/stable/c/8ec81bc7a843ddbb397c374cb41ce2704e25c126
https://git.kernel.org/stable/c/8e39b0b84a8ff6dd7b0952cda3e3abc37c73df70
https://git.kernel.org/stable/c/5beff8567fdb1a3ff6e1c34c07901e0a52464ed3
https://git.kernel.org/stable/c/032933049312b7bd8adaef8c1ea621f1ed3522b4
https://git.kernel.org/stable/c/01632055d9671ee367f28c518be32b91df7e5b05