]> 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>
Wed, 19 Jun 2013 00:08:20 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:40 +0000 (17:27 +1000)
commitaac06ad691ccd1a91d9230338e86acbb9d218130
treebc75da289fa0512d3227e84eae06aabc4735639d
parent1c8f1a43cfd184c9cc61e39d8afd4a3b84f56d49
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