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.