linux/arch/c6x/kernel
Eric W. Biederman 3eb0f5193b signal: Ensure every siginfo we send has all bits initialized
Call clear_siginfo to ensure every stack allocated siginfo is properly
initialized before being passed to the signal sending functions.

Note: It is not safe to depend on C initializers to initialize struct
siginfo on the stack because C is allowed to skip holes when
initializing a structure.

The initialization of struct siginfo in tracehook_report_syscall_exit
was moved from the helper user_single_step_siginfo into
tracehook_report_syscall_exit itself, to make it clear that the local
variable siginfo gets fully initialized.

In a few cases the scope of struct siginfo has been reduced to make it
clear that siginfo siginfo is not used on other paths in the function
in which it is declared.

Instances of using memset to initialize siginfo have been replaced
with calls clear_siginfo for clarity.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-04-25 10:40:51 -05:00
..
asm-offsets.c c6x: remove unused KTHREAD_SIZE definition 2018-04-10 09:58:38 -04:00
c6x_ksyms.c C6X: loadable module support 2011-10-06 19:48:13 -04:00
devicetree.c of: remove early_init_dt_setup_initrd_arch 2013-10-09 11:39:01 -05:00
dma.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00
entry.S c6x: switch to generic sigaltstack 2013-02-03 18:15:52 -05:00
head.S
irq.c C6X: remove dependence on legacy IRQs 2012-07-18 23:49:40 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
module.c C6X: loadable module support 2011-10-06 19:48:13 -04:00
process.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
ptrace.c Merge branch 'regset' (PTRACE_SETREGSET data leakage) 2017-03-29 08:55:25 -07:00
setup.c locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
signal.c all arches, signal: move restart_block to struct task_struct 2015-02-12 18:54:12 -08:00
soc.c arch: Use eth_random_addr 2012-07-16 22:39:25 -07:00
switch_to.S C6X: process management 2011-10-06 19:47:40 -04:00
sys_c6x.c new helper: uaccess_kernel() 2017-03-28 16:43:25 -04:00
time.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
traps.c signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
vectors.S
vmlinux.lds.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00