uevent: don't pass envp_ext[] as format string in kobject_uevent_env()
authorTejun Heo <tj@kernel.org>
Thu, 13 Nov 2008 04:20:00 +0000 (13:20 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:31 +0000 (10:44 -0800)
commitc65b9145f40da99cad000f81823265dc70e5fcf9
treef26091022846aea449821b6c1acdbc46d75da6b1
parentfce3e804cfad49208fd2ff9db4bcb57481409e1d
uevent: don't pass envp_ext[] as format string in kobject_uevent_env()

kobject_uevent_env() uses envp_ext[] as verbatim format string which
can cause problems ranging from unexpectedly mangled string to oops if
a string in envp_ext[] contains substring which can be interpreted as
format.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject_uevent.c