In the bcachefs file system, included in the Linux kernel since version 6.7, two serious issues were discovered and fixed while preparing for the release of kernel 6.8 (the fixes will be included in release 6.8-rc4). The first issue is related to the incorrect functioning of locks when working with directories, causing the first attempt to delete a non-existent subvolume to fail, while the second attempt could hang due to an unremoved lock.
In the second case, a race condition could occur that might lead to premature termination of the thread in the kernel when closing files. These issues are present in all versions of bcachefs, starting with the original pull request in kernel 6.7. Both problems are considered serious enough to warrant backporting the proposed patch for the stable branch of kernel 6.7.
Source: opennet.ru
