]> git.karo-electronics.de Git - karo-tx-linux.git/commit
coredump: avoid the uninitialized cn->corename if core_pattern is empty
authorOleg Nesterov <oleg@redhat.com>
Thu, 27 Jun 2013 23:53:53 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:56 +0000 (16:38 +1000)
commit4fc931199989617970eee431af17bdc36d39dddd
tree75578f8aa99f369de945425bb2c4af55ffd623f0
parentaf1f28bb8ef17b6a1972910cf658d1e2412670e1
coredump: avoid the uninitialized cn->corename if core_pattern is empty

If core_pattern is "" or "|", cn->corename is used uninitialized by
filp_open() or call_usermodehelper_exec().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Colin Walters <walters@verbum.org>
Cc: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Lennart Poettering <mzxreary@0pointer.de>
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/coredump.c