f2fs-for-5.3-rc1

In this round, we've introduced native swap file support which can exploit DIO,
enhanced existing checkpoint=disable feature with additional mount option to
tune the triggering condition, and allowed user to preallocate physical blocks
in a pinned file which will be useful to avoid f2fs fragmentation in append-only
workloads. In addition, we've fixed subtle quota corruption issue.

Enhancement:
 - add swap file support which uses DIO
 - allocate blocks for pinned file
 - allow SSR and mount option to enhance checkpoint=disable
 - enhance IPU IOs
 - add more sanity checks such as memory boundary access

Bug fix:
 - quota corruption in very corner case of error-injected SPO case
 - fix root_reserved on remount and some wrong counts
 - add missing fsck flag

Some patches were also introduced to clean up ambiguous i_flags and debugging
messages codes.
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE00UqedjCtOrGVvQiQBSofoJIUNIFAl0mYt8ACgkQQBSofoJI
UNJ9yg//cDq6BplHI4PoIcvwB0in0tkx1YcYTza6Xk5S/sObos22KGtgAXRc5fAx
/0hsJMPBr3sfw+9H9WAVJXF29mxnSZmvu4eUeIh0eR58XWfcP3Nq1VKrUMBN+f30
KtihKCibPtKwfatUyJDTcIiEqiT7VPsFCbLZqr4IU8RZTz6kvXZhQtVcsjFQ3Yu8
aGzwPnD2jzF+dcEZcds/j/vclTk5rdvueLZ1NUpL3PZLRU4iyJ4oFqKzB4RMrQsO
PZz6F+IyITbk3pGxJ7L9MJgxuYqzVBUw+iyShS+htyLft+s/5f2tEE1/vpZnKzMG
TtCqqrRQUfF5YMcSyrA72V5m4Ar/nnZp2tBac5Orrpr/bWgUnnC/fA7qhourrmQ4
dTMzMx4vJy7cV8hYODImt1ylSnqCa9jBkLDHwnHS89A5JMK9Q+RznlgN5TeZtZtd
NjIPWymEDW5Uw7Kz7y8oRGBCdSw4fV5bIgUQmBbwfXLbyvgg5QIta+nfg0ernYLw
BfJCF7GPS4jyTeYgXT0lrkhsPJnaN2WgUUzTZLDfufzOt45Ve9oSXdMW/c9X/01H
uD58Qu9CzIcyEwWl4ITWhCKnHFtfSy6e5qPjhW+woX+RKSZQc5AlIez03olepM+S
BfWyBt8dnGcOzD1wQjOf8RPFOGUnWl3lHvUtGIxGnjSIWGkOgyE=
=jro+
-----END PGP SIGNATURE-----
f2fs: avoid out-of-range memory access

blkoff_off might over 512 due to fs corrupt or security
vulnerability. That should be checked before being using.

Use ENTRIES_IN_SUM to protect invalid value in cur_data_blkoff.

Signed-off-by: Ocean Chen <oceanchen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 file changed