]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
livepatch: fix format string in kobject_init_and_add()
authorJiri Kosina <jkosina@suse.cz>
Sun, 15 Feb 2015 09:03:20 +0000 (10:03 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 16 Feb 2015 15:26:56 +0000 (16:26 +0100)
commite0b561ee78d82a4cc7792aa28fa4b1ea15325dcc
treee11dc662c90bc42ee17d358f0f79eb914dfbb119
parent1d9c5d79e6e4385aea6f69c23ba543717434ed70
livepatch: fix format string in kobject_init_and_add()

kobject_init_and_add() takes expects format string for a name, so we
better provide it in order to avoid infoleaks if modules craft their
mod->name in a special way.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reported-by: Kees Cook <keescook@chromium.org>
Acked-by: Seth Jennings <sjenning@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c