diff options
| author | Aditya Pakki <pakki001@umn.edu> | 2020-02-14 12:21:01 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 16:38:59 +0100 |
| commit | c0965be4b28b8078202bd174d2cf2beb1b91fe46 (patch) | |
| tree | f08411f32656c154edc613ae259e831118d73b41 /include | |
| parent | 1bae8f424c84a9cfa3651afe2a9d2efdc8c1cc4b (diff) | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
