uevent: don't pass envp_ext[] as format string in kobject_uevent_env()
authorTejun Heo <[email protected]>
Thu, 13 Nov 2008 04:20:00 +0000 (13:20 +0900)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Cc: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
lib/kobject_uevent.c