fscrypt: improve warning messages for unsupported encryption contexts
authorEric Biggers <ebiggers@google.com>
Wed, 24 Jul 2019 18:07:59 +0000 (11:07 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 13 Aug 2019 02:04:44 +0000 (19:04 -0700)
commit63f668f0def1b58ed1e480661c4043d2b11abc6c
tree04556614c0757e5139c0c948fbb82dbafee52617
parent886da8b39cf27995836062bb7fe5fd5cb764540a
fscrypt: improve warning messages for unsupported encryption contexts

When fs/crypto/ encounters an inode with an invalid encryption context,
currently it prints a warning if the pair of encryption modes are
unrecognized, but it's silent if there are other problems such as
unsupported context size, format, or flags.  To help people debug such
situations, add more warning messages.

Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/keyinfo.c