In the Linux kernel, the following vulnerability has been resolved: smb: client: don't block dying tasks waiting for writeback on fsync cifs_fsync() and cifs_strict_fsync() wait uninterruptibly for writeback through file_write_and_wait_range(). As with close, a task killed in fsync(2) on a hard mount with an unresponsive server is stuck in D state until the server comes back. Wait killably instead, using the same helper as cifs_flush(). The writeback keeps going and its errors stay in the mapping; only the dying caller stops waiting for it.
https://git.kernel.org/stable/c/a9434342c34ec6813c7d9beab597e99007b4b611
https://git.kernel.org/stable/c/70d921aded38c65f3d0413e068866678fa028404
https://git.kernel.org/stable/c/2ec8f2119be6b3d3deab9a12d7effaf420c3ef81
https://git.kernel.org/stable/c/0df0f24803061b6c2bef0d24de7c63c9cce46a49