Searched hist:ff5d3a97 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/crypto/ |
H A D | bio.c | ff5d3a97 Fri Mar 15 16:16:32 CDT 2019 Eric Biggers <ebiggers@google.com> fscrypt: remove WARN_ON_ONCE() when decryption fails
If decrypting a block fails, fscrypt did a WARN_ON_ONCE(). But WARN is meant for kernel bugs, which this isn't; this could be hit by fuzzers using fault injection, for example. Also, there is already a proper warning message logged in fscrypt_do_page_crypto(), so the WARN doesn't add much.
Just remove the unnessary WARN.
Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> ff5d3a97 Fri Mar 15 16:16:32 CDT 2019 Eric Biggers <ebiggers@google.com> fscrypt: remove WARN_ON_ONCE() when decryption fails If decrypting a block fails, fscrypt did a WARN_ON_ONCE(). But WARN is meant for kernel bugs, which this isn't; this could be hit by fuzzers using fault injection, for example. Also, there is already a proper warning message logged in fscrypt_do_page_crypto(), so the WARN doesn't add much. Just remove the unnessary WARN. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|