android_kernel_motorola_sm6375/fs/ecryptfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeffrey Mitchell fd17723050 ecryptfs: fix kernel panic with null dev_name
commit 9046625511ad8dfbc8c6c2de16b3532c43d68d48 upstream.

When mounting eCryptfs, a null "dev_name" argument to ecryptfs_mount()
causes a kernel panic if the parsed options are valid. The easiest way to
reproduce this is to call mount() from userspace with an existing
eCryptfs mount's options and a "source" argument of 0.

Error out if "dev_name" is null in ecryptfs_mount()

Fixes: 237fead619 ("[PATCH] ecryptfs: fs/Makefile and fs/Kconfig")
Cc: [email protected]
Signed-off-by: Jeffrey Mitchell <[email protected]>
Signed-off-by: Tyler Hicks <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-05-11 14:04:02 +02:00
..
crypto.c ecryptfs: replace BUG_ON with error handling code 2020-02-28 17:22:26 +01:00
debug.c - Fix error handling when ecryptfs_read_lower() encounters an error 2019-07-14 19:29:04 -07:00
dentry.c
ecryptfs_kernel.h Revert "Merge tag 'keys-acl-20190703' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs" 2019-07-10 18:43:43 -07:00
file.c
inode.c ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable either 2019-11-10 11:57:45 -05:00
Kconfig
keystore.c ecryptfs: fix a memory leak bug in parse_tag_1_packet() 2020-02-28 17:22:13 +01:00
kthread.c
main.c ecryptfs: fix kernel panic with null dev_name 2021-05-11 14:04:02 +02:00
Makefile
messaging.c ecryptfs: fix a memory leak bug in ecryptfs_init_messaging() 2020-02-28 17:22:13 +01:00
miscdev.c
mmap.c
read_write.c
super.c