ext4 crypto: replace some BUG_ON()'s with error checks
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Oct 2015 14:49:27 +0000 (10:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 05:25:42 +0000 (21:25 -0800)
commit89fa6cedf0ec477aa35af35f7f73bb206cea3595
tree9ec0fcae6cbc0cd0bb2f1886eac5d27baba88e52
parent34a6ac6aabb893b29b286fad62c86f5bd2c23bbb
ext4 crypto: replace some BUG_ON()'s with error checks

commit 687c3c36e754a999a8263745b27965128db4fee5 upstream.

Buggy (or hostile) userspace should not be able to cause the kernel to
crash.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/crypto.c
fs/ext4/crypto_fname.c
fs/ext4/crypto_key.c
fs/ext4/crypto_policy.c