Aditya Pakki cfde4697ea 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 17:22:26 +01:00
..
2019-09-27 15:10:34 -07:00
2019-09-19 09:42:37 -07:00
2019-07-12 17:37:53 -07:00
2020-02-24 08:36:53 +01:00
2020-02-11 04:35:35 -08:00
2019-09-19 09:42:37 -07:00
2019-09-19 09:42:37 -07:00
2019-07-03 17:52:09 -04:00
2020-02-24 08:37:02 +01:00
2019-10-19 06:32:32 -04:00
2019-09-19 09:42:37 -07:00
2019-11-29 10:10:10 +01:00
2019-08-07 21:51:47 -04:00
2019-12-17 19:55:30 +01:00
2019-09-18 16:59:14 -07:00
2019-10-14 15:04:01 -07:00
2019-09-18 16:59:14 -07:00
2020-02-05 21:22:39 +00:00
2019-08-01 20:51:23 +02:00