From: Tetsuo Handa Date: Mon, 13 Jun 2011 04:49:11 +0000 (+0900) Subject: TOMOYO: Fix oops in tomoyo_mount_acl(). X-Git-Tag: v3.0-rc4~94^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e78c724d47e2342aa8fde61f6b8536f662f795f;p=pandora-kernel.git TOMOYO: Fix oops in tomoyo_mount_acl(). 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 Cc: stable@kernel.org Signed-off-by: James Morris --- Reading git-diff-tree failed