Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential hang in nilfs_detach_log_writer() Syzbot has reported a potential hang in nilfs_detach_log_writer() called during nilfs2 unmount. Analysis revealed that this is because nilfs_segctor_sync(), which synchronizes with the log writer thread, can be called after nilfs_segctor_destroy() terminates that thread, as shown in the call trace below: nilfs_detach_log_writer nilfs_segctor_destroy nilfs_segctor_kill_thread --> Shut down log writer thread flush_work nilfs_iput_work_func nilfs_dispose_list iput nilfs_evict_inode nilfs_transaction_commit nilfs_construct_segment (if inode needs sync) nilfs_segctor_sync --> Attempt to synchronize with log writer thread *** DEADLOCK *** Fix this issue by changing nilfs_segctor_sync() so that the log writer thread returns normally without synchronizing after it terminates, and by forcing tasks that are already waiting to complete once after the thread terminates. The skipped inode metadata flushout will then be processed together in the subsequent cleanup work in nilfs_segctor_destroy().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < 911d38be151921a5d152bb55e81fd752384c6830affected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3baffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < eff7cdf890b02596b8d73e910bdbdd489175dbdbaffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < 06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfdaffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < 1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0affected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < a8799662fed1f8747edae87a1937549288baca6aaffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < 6e5c8e8e024e147b834f56f2115aad241433679baffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < c516db6ab9eabbedbc430b4f93b0d8728e9b427faffected7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 to < eb85dace897c5986bc2f36b3c783c6abb8a4292eaffectedc23f3a9fa7826af0465b9408b186f6b555991890affected28cd54f27d309bd65db8ff4b8e6275345287484caffectedec7cae16b37ab478d6d7e33e8563b24ca189e6cfaffectedd26f2dfa556323787ee1ebd5d03aeaa8650c7404affected52e87609d9d3ea34cadb5676e8ea85d025ac9632affected7bb9e4a06e12583f1418b669dc45bb3ee84496c6affected3.2.68 to < 3.3affected3.4.107 to < 3.5affected3.10.69 to < 3.11affected3.12.38 to < 3.13affected3.14.33 to < 3.15affected3.18.7 to < 3.19affected
Linux Linux
Default version status: affected
3.19affected0 to < 3.19unaffected4.19.316 to ≤ 4.19.*unaffected5.4.278 to ≤ 5.4.*unaffected5.10.219 to ≤ 5.10.*unaffected5.15.161 to ≤ 5.15.*unaffected6.1.93 to ≤ 6.1.*unaffected6.6.33 to ≤ 6.6.*unaffected6.8.12 to ≤ 6.8.*unaffected6.9.3 to ≤ 6.9.*unaffected6.10 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/911d38be151921a5d152bb55e81fd752384c6830 ↗
- https://git.kernel.org/stable/c/bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b ↗
- https://git.kernel.org/stable/c/eff7cdf890b02596b8d73e910bdbdd489175dbdb ↗
- https://git.kernel.org/stable/c/06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd ↗
- https://git.kernel.org/stable/c/1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0 ↗
- https://git.kernel.org/stable/c/a8799662fed1f8747edae87a1937549288baca6a ↗
- https://git.kernel.org/stable/c/6e5c8e8e024e147b834f56f2115aad241433679b ↗
- https://git.kernel.org/stable/c/c516db6ab9eabbedbc430b4f93b0d8728e9b427f ↗
- https://git.kernel.org/stable/c/eb85dace897c5986bc2f36b3c783c6abb8a4292e ↗
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html ↗