Aditya Pakki c0965be4b2 ecryptfs: replace BUG_ON with error handling code
commit 2c2a7552dd6465e8fde6bc9cccf8d66ed1c1eb72 upstream.

In crypt_scatterlist, if the crypt_stat argument is not set up
correctly, the kernel crashes. Instead, by returning an error code
upstream, the error is handled safely.

The issue is detected via a static analysis tool written by us.

Fixes: 237fead619984 (ecryptfs: fs/Makefile and fs/Kconfig)
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-28 16:38:59 +01:00
..
2019-08-06 19:06:51 +02:00
2019-12-13 08:52:23 +01:00
2020-02-24 08:34:49 +01:00
2019-12-13 08:52:36 +01:00
2020-02-11 04:34:07 -08:00
2018-08-17 16:20:28 -07:00
2019-12-13 08:51:59 +01:00
2020-02-24 08:34:53 +01:00
2018-08-17 16:20:27 -07:00
2018-08-18 11:44:53 -07:00
2018-07-03 16:44:45 -04:00
2018-08-21 18:19:09 -07:00
2020-02-05 14:43:31 +00:00