Skip to content

Commit eb5346c

Browse files
committed
signal: Remove the code to clear siginfo before calling copy_siginfo_from_user32
The new unified copy_siginfo_from_user32 takes care of this. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 212a36a commit eb5346c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎kernel/ptrace.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
12261226
break;
12271227

12281228
case PTRACE_SETSIGINFO:
1229-
memset(&siginfo, 0, sizeof siginfo);
12301229
if (copy_siginfo_from_user32(
12311230
&siginfo, (struct compat_siginfo __user *) datap))
12321231
ret = -EFAULT;

‎kernel/signal.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,7 @@ COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo,
31553155
int, sig,
31563156
struct compat_siginfo __user *, uinfo)
31573157
{
3158-
siginfo_t info = {};
3158+
siginfo_t info;
31593159
int ret = copy_siginfo_from_user32(&info, uinfo);
31603160
if (unlikely(ret))
31613161
return ret;
@@ -3199,7 +3199,7 @@ COMPAT_SYSCALL_DEFINE4(rt_tgsigqueueinfo,
31993199
int, sig,
32003200
struct compat_siginfo __user *, uinfo)
32013201
{
3202-
siginfo_t info = {};
3202+
siginfo_t info;
32033203

32043204
if (copy_siginfo_from_user32(&info, uinfo))
32053205
return -EFAULT;

0 commit comments

Comments
 (0)