]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
signal: Remove the code to clear siginfo before calling copy_siginfo_from_user32
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 31 Jul 2017 22:18:40 +0000 (17:18 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 16 Jan 2018 00:01:19 +0000 (18:01 -0600)
The new unified copy_siginfo_from_user32 takes care of this.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/ptrace.c
kernel/signal.c

index 84b1367935e410f79770c06efadc20deb51346b3..ec4365da9be837c767167d6831bc570ed82bc7fd 100644 (file)
@@ -1226,7 +1226,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
                break;
 
        case PTRACE_SETSIGINFO:
-               memset(&siginfo, 0, sizeof siginfo);
                if (copy_siginfo_from_user32(
                            &siginfo, (struct compat_siginfo __user *) datap))
                        ret = -EFAULT;
index 5211b1b57163c9917f39a3e22847f5c2dc0e7a34..bebe44265b8b6300d5bc0356e9461eff8bd81585 100644 (file)
@@ -3155,7 +3155,7 @@ COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo,
                        int, sig,
                        struct compat_siginfo __user *, uinfo)
 {
-       siginfo_t info = {};
+       siginfo_t info;
        int ret = copy_siginfo_from_user32(&info, uinfo);
        if (unlikely(ret))
                return ret;
@@ -3199,7 +3199,7 @@ COMPAT_SYSCALL_DEFINE4(rt_tgsigqueueinfo,
                        int, sig,
                        struct compat_siginfo __user *, uinfo)
 {
-       siginfo_t info = {};
+       siginfo_t info;
 
        if (copy_siginfo_from_user32(&info, uinfo))
                return -EFAULT;