In the Linux kernel, the following vulnerability has been resolved: netfs: preserve prepare_write errno on reissue prepare_write() may call netfs_prepare_write_failed() (FAILED + errno) before write_retry calls netfs_reissue_write(). Clearing subreq->error to 0 for a clean I/O reissue (82e8885bd763) then makes netfs_do_issue_write() terminate with 0. The collector copies front->error into stream->error and mapping_set_error(), which ignores 0, so writeback failure is silent. Skip clearing error when NETFS_SREQ_FAILED is already set; do_issue_write() already terminates FAILED subrequests.
https://git.kernel.org/stable/c/9d5134f0bc665c99871884bda4c33aaa834d8f3a
https://git.kernel.org/stable/c/8727bed8bec46a1f41f6e4f8cbd2410ec8d2bf29
https://git.kernel.org/stable/c/62869ecb3aeca670b86058387e7533a33524b95b