Commit 0ecd8a8b authored by Akilesh Kailash's avatar Akilesh Kailash Committed by sanglipeng
Browse files

dm verity: skip redundant verity_handle_err() on I/O errors

stable inclusion
from stable-v5.10.180
commit fc097cfca0049c46df8f08814b3784780d483b4d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fc097cfca0049c46df8f08814b3784780d483b4d



--------------------------------

[ Upstream commit 2c0468e0 ]

Without FEC, dm-verity won't call verity_handle_err() when I/O fails,
but with FEC enabled, it currently does even if an I/O error has
occurred.

If there is an I/O error and FEC correction fails, return the error
instead of calling verity_handle_err() again.

Suggested-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Stable-dep-of: e8c5d45f ("dm verity: fix error handling for check_at_most_once on FEC")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c12e7254
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment