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)
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>

No differences found