]> git.baikalelectronics.ru Git - kernel.git/commit
ecryptfs: replace BUG_ON with error handling code
authorAditya Pakki <pakki001@umn.edu>
Fri, 14 Feb 2020 18:21:01 +0000 (12:21 -0600)
committerTyler Hicks <code@tyhicks.com>
Fri, 14 Feb 2020 20:07:46 +0000 (20:07 +0000)
commit2cbb8c2d443d4741c2f8c8bb7f09a87a8ebdc69d
tree5ce545b447440ebe23331c9abd06c304631a4a4e
parent68630d912a17319c5f83198e43e25cb7a2ce26c9
ecryptfs: replace BUG_ON with error handling code

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: 53341c1af99c8 (ecryptfs: fs/Makefile and fs/Kconfig)
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
fs/ecryptfs/crypto.c