Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17143
b: refs/heads/master
c: 9687c58
h: refs/heads/master
i:
  17141: 19294fe
  17139: 96eb166
  17135: fb19100
v: v3
  • Loading branch information
David Woodhouse authored and Paul Mackerras committed Jan 9, 2006
1 parent 29c648c commit ca67e6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31df1678d7732b94178a6e457ed6666e4431212f
refs/heads/master: 9687c587596b54a77f08620595f5686ea35eed97
9 changes: 9 additions & 0 deletions trunk/arch/powerpc/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ static inline int get_old_sigaction(struct k_sigaction *new_ka,
static inline int save_general_regs(struct pt_regs *regs,
struct mcontext __user *frame)
{
if (!FULL_REGS(regs)) {
/* Zero out the unsaved GPRs to avoid information
leak, and set TIF_SAVE_NVGPRS to ensure that the
registers do actually get saved later. */
memset(&regs->gpr[14], 0, 18 * sizeof(unsigned long));
current_thread_info()->nvgprs_frame = &frame->mc_gregs;
set_thread_flag(TIF_SAVE_NVGPRS);
}

return __copy_to_user(&frame->mc_gregs, regs, GP_REGS_SIZE);
}

Expand Down

0 comments on commit ca67e6c

Please sign in to comment.