coredump/elf: Pass coredump_params into fill_note_info
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 31 Jan 2022 18:17:38 +0000 (12:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:40:45 +0000 (14:40 +0200)
commitb7933f145ad32bb5e084af55176ab6dcaa15a036
treeb46072eb2fc5015813ef26381bba417c8f5a4681
parentb043ae637a83585b2a497c2eb7ee49446fc68e98
coredump/elf: Pass coredump_params into fill_note_info

commit 9ec7d3230717b4fe9b6c7afeb4811909c23fa1d7 upstream.

Instead of individually passing cprm->siginfo and cprm->regs
into fill_note_info pass all of struct coredump_params.

This is preparation to allow fill_files_note to use the existing
vma snapshot.

Reviewed-by: Jann Horn <jannh@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/binfmt_elf.c