]> git.itanic.dy.fi Git - linux-stable/commit
TOMOYO: Fix oops in tomoyo_mount_acl().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 13 Jun 2011 04:49:11 +0000 (13:49 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:40 +0000 (15:05 -0700)
commit93b18ca021e7b38d26eb55bcb0d1ca4c9105f643
treefce6837e3212412d1fa30180a78d699f323aff90
parent89ae106c9a9c2747e11ae1bacd7f5a65207a9296
TOMOYO: Fix oops in tomoyo_mount_acl().

commit 4e78c724d47e2342aa8fde61f6b8536f662f795f upstream.

In tomoyo_mount_acl() since 2.6.36, kern_path() was called without checking
dev_name != NULL. As a result, an unprivileged user can trigger oops by issuing
mount(NULL, "/", "ext3", 0, NULL) request.
Fix this by checking dev_name != NULL before calling kern_path(dev_name).

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/tomoyo/mount.c