fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()
commit 1d605416fb7175e1adf094251466caa52093b413 upstream.
KMSAN reported uninitialized data being written to disk when dumping
core. As a result, several kilobytes of kmalloc memory may be written
to the core file and then read by a non-privileged user.
Reported-by: sam <email@example.com>
Signed-off-by: Alexander Potapenko <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Acked-by: Kees Cook <firstname.lastname@example.org>
Cc: Al Viro <email@example.com>
Cc: Alexey Dobriyan <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
1 file changed