Skip to content
Commit 90466255 authored by Jeffrey Mitchell's avatar Jeffrey Mitchell Committed by Tyler Hicks
Browse files

ecryptfs: fix kernel panic with null dev_name

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: 237fead6

 ("[PATCH] ecryptfs: fs/Makefile and fs/Kconfig")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJeffrey Mitchell <jeffrey.mitchell@starlab.io>
Signed-off-by: default avatarTyler Hicks <code@tyhicks.com>
parent 7f06ecd3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment