Revert "f2fs: block cache/dio write during f2fs_enable_checkpoint()"
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Revert "f2fs: block cache/dio write during f2fs_enable_checkpoint()"
This reverts commit 196c81fdd438f7ac429d5639090a9816abb9760a.
Original patch may cause below deadlock, revert it.
write remount - write_begin - lock_page --- lock A - prepare_write_begin - f2fs_map_lock - f2fs_enable_checkpoint - down_write(cp_enable_rwsem) --- lock B - sync_inode_sb - writepages - lock_page --- lock A - down_read(cp_enable_rwsem) --- lock A
From the CVE record · Linux
A locking issue in the Linux kernel's f2fs code can cause a deadlock when a write and a remount overlap during checkpoint enabling. The input does not establish whether an attacker can trigger this or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with f2fs should check their versions; affected versions are not specified.