]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - arch/parisc/kernel/ptrace.c
signal: Ensure every siginfo we send has all bits initialized
[mirror_ubuntu-hirsute-kernel.git] / arch / parisc / kernel / ptrace.c
index 1a2be6e639b5a8cc3b2a28652bc089f69e59132d..b1c12ceb1c88489ce0aef5544731e8881866d111 100644 (file)
@@ -90,6 +90,7 @@ void user_enable_single_step(struct task_struct *task)
                ptrace_disable(task);
                /* Don't wake up the task, but let the
                   parent know something happened. */
+               clear_siginfo(&si);
                si.si_code = TRAP_TRACE;
                si.si_addr = (void __user *) (task_regs(task)->iaoq[0] & ~3);
                si.si_signo = SIGTRAP;