Skip to content
Commit f876df9f authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm verity: fix verity_parse_opt_args parsing



Commit df326e7a ("dm verity: allow optional args to alter primary
args handling") introduced a bug where verity_parse_opt_args() wouldn't
properly shift past an optional argument's additional params (by
ignoring them).

Fix this by avoiding returning with error if an unknown argument is
encountered when @only_modifier_opts=true is passed to
verity_parse_opt_args().

In practice this regressed the cryptsetup testsuite's FEC testing
because unknown optional arguments were encountered, wherey
short-circuiting ever testing FEC mode. With this fix all of the
cryptsetup testsuite's verity FEC tests pass.

Fixes: df326e7a ("dm verity: allow optional args to alter primary args handling")
Reported-by: default avatarMilan Broz <gmazyland@gmail.com&gt;>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 8c22816d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment