kernel_optimize_test/arch/xtensa/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
..
.gitignore
align.S xtensa: clean up word alignment macros in assembly code 2017-12-10 14:48:53 -08:00
asm-offsets.c xtensa: clean up exception handling structure 2017-12-16 22:37:09 -08:00
coprocessor.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
entry.S xtensa: enable stack protector 2017-12-16 22:37:07 -08:00
head.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
hw_breakpoint.c
irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00
mcount.S
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S
pci-dma.c xtensa: support DMA buffers in high memory 2018-02-16 19:19:54 -08:00
pci.c xtensa/PCI: Use generic pci_mmap_resource_range() 2018-02-28 17:03:40 -06:00
perf_event.c
platform.c
process.c xtensa: enable stack protector 2017-12-16 22:37:07 -08:00
ptrace.c signal/ptrace: Add force_sig_ptrace_errno_trap and use it where needed 2018-01-22 19:07:11 -06:00
s32c1i_selftest.c
setup.c DeviceTree updates for 4.16: 2018-02-01 10:57:45 -08:00
signal.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
smp.c
stacktrace.c
syscall.c mm: add ksys_fadvise64_64() helper; remove in-kernel call to sys_fadvise64_64() 2018-04-02 20:16:10 +02:00
time.c
traps.c signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
vectors.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
vmlinux.lds.S xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00
xtensa_ksyms.c xtensa: use generic strncpy_from_user with KASAN 2017-12-17 15:34:57 -08:00