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
debug.c
dentry.c
ecryptfs_kernel.h
file.c
inode.c
Kconfig
keystore.c
kthread.c
main.c
Makefile
messaging.c
miscdev.c
mmap.c
read_write.c
super.c