kernel_optimize_test/fs/ecryptfs
Greg Kroah-Hartman 61b9bc3091 Revert "ecryptfs: replace BUG_ON with error handling code"
commit e1436df2f2550bc89d832ffd456373fdf5d5b5d7 upstream.

This reverts commit 2c2a7552dd.

Because of recent interactions with developers from @umn.edu, all
commits from them have been recently re-reviewed to ensure if they were
correct or not.

Upon review, this commit was found to be incorrect for the reasons
below, so it must be reverted.  It will be fixed up "correctly" in a
later kernel change.

The original commit log for this change was incorrect, no "error
handling code" was added, things will blow up just as badly as before if
any of these cases ever were true.  As this BUG_ON() never fired, and
most of these checks are "obviously" never going to be true, let's just
revert to the original code for now until this gets unwound to be done
correctly in the future.

Cc: Aditya Pakki <pakki001@umn.edu>
Fixes: 2c2a7552dd ("ecryptfs: replace BUG_ON with error handling code")
Cc: stable <stable@vger.kernel.org>
Acked-by: Tyler Hicks <code@tyhicks.com>
Link: https://lore.kernel.org/r/20210503115736.2104747-49-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-26 12:06:55 +02:00
..
crypto.c Revert "ecryptfs: replace BUG_ON with error handling code" 2021-05-26 12:06:55 +02:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: Replace deactivated email address 2020-02-14 20:07:31 +00:00
file.c
inode.c
Kconfig docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
keystore.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
kthread.c
main.c ecryptfs: fix kernel panic with null dev_name 2021-05-11 14:47:12 +02:00
Makefile
messaging.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
miscdev.c
mmap.c ecryptfs: drop direct calls to ->bmap 2020-02-03 08:05:57 -05:00
read_write.c
super.c