https://source.android.com/security/bulletin/2018-05-01
CVE-2017-16643
CVE-2017-5754
CVE-2018-5344
CVE-2017-15129
UPSTREAM: f2fs: avoid fsync() failure caused by EAGAIN in writepage()

pageout() in MM traslates EAGAIN, so calls handle_write_error()
 -> mapping_set_error() -> set_bit(AS_EIO, ...).
 file_write_and_wait_range() will see EIO error, which is critical
 to return value of fsync() followed by atomic_write failure to user.

Change-Id: I6124ed299baf5e5b8993bb6b54f07bb8771eda8c
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 520a9486182437847212c8e226d042b1e14b7cc2)
1 file changed