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: Ifdd5e09defcf0705901ff7f23001d68a811da3af
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 1ccd6c4ff9ccd74bb87903067618815d326af242)
1 file changed