On Mon, Mar 01, 2021 at 10:04:36PM +0800, Yunlei He wrote:
If file enable verity failed, should truncate anything wrote past i_size, including cache pages.
Fixes: 95ae251fe828 ("f2fs: add fs-verity support") Cc: stable@vger.kernel.org # v5.4+ Signed-off-by: Yunlei He heyunlei@hihonor.com
fs/f2fs/verity.c | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.
</formletter>