Skip to content

Commit 541880d

Browse files
author
Al Viro
committed
do_coredump(): get rid of pt_regs argument
Signed-off-by: Al Viro <[email protected]>
1 parent 4aaefee commit 541880d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fs/coredump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
458458
return err;
459459
}
460460

461-
void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
461+
void do_coredump(siginfo_t *siginfo)
462462
{
463463
struct core_state core_state;
464464
struct core_name cn;
@@ -474,7 +474,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
474474
static atomic_t core_dump_count = ATOMIC_INIT(0);
475475
struct coredump_params cprm = {
476476
.siginfo = siginfo,
477-
.regs = regs,
477+
.regs = signal_pt_regs(),
478478
.limit = rlimit(RLIMIT_CORE),
479479
/*
480480
* We must use the same mm->flags while dumping core to avoid

include/linux/coredump.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
extern int dump_write(struct file *file, const void *addr, int nr);
1414
extern int dump_seek(struct file *file, loff_t off);
1515
#ifdef CONFIG_COREDUMP
16-
extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
16+
extern void do_coredump(siginfo_t *siginfo);
1717
#else
18-
static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
18+
static inline void do_coredump(siginfo_t *siginfo) {}
1919
#endif
2020

2121
#endif /* _LINUX_COREDUMP_H */

kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,7 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
23592359
* first and our do_group_exit call below will use
23602360
* that value and ignore the one we pass it.
23612361
*/
2362-
do_coredump(info, regs);
2362+
do_coredump(info);
23632363
}
23642364

23652365
/*

0 commit comments

Comments
 (0)