OpenCloudOS-Kernel/arch
Eric W. Biederman 5f74972ce6 signal: Don't use structure initializers for struct siginfo
The siginfo structure has all manners of holes with the result that a
structure initializer is not guaranteed to initialize all of the bits.
As we have to copy the structure to userspace don't even try to use
a structure initializer.  Instead use clear_siginfo followed by initializing
selected fields.  This gives a guarantee that uninitialized kernel memory
is not copied to userspace.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-01-22 19:07:08 -06:00
..
alpha bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
arc signal: Don't use structure initializers for struct siginfo 2018-01-22 19:07:08 -06:00
arm signal/arm: Document conflicts with SI_USER and SIGFPE 2018-01-12 14:21:05 -06:00
arm64 signal: Don't use structure initializers for struct siginfo 2018-01-22 19:07:08 -06:00
blackfin signal/blackfin: Remove pointless UID16_SIGINFO_COMPAT_NEEDED 2018-01-15 17:42:36 -06:00
c6x bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
cris bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
frv signal/frv: Move the frv specific si_codes to asm-generic/siginfo.h 2018-01-15 17:42:34 -06:00
h8300 bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
hexagon bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
ia64 signal/ia64: Move the ia64 specific si_codes to asm-generic/siginfo.h 2018-01-15 17:42:33 -06:00
m32r bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
m68k signal: Don't use structure initializers for struct siginfo 2018-01-22 19:07:08 -06:00
metag signal/metag: Document a conflict with SI_USER with SIGFPE 2018-01-12 14:21:03 -06:00
microblaze bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
mips signal: Don't use structure initializers for struct siginfo 2018-01-22 19:07:08 -06:00
mn10300 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-01-12 14:23:36 -06:00
nios2 bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
openrisc signal/openrisc: Fix do_unaligned_access to send the proper signal 2018-01-12 14:20:02 -06:00
parisc signal: Unify and correct copy_siginfo_to_user32 2018-01-15 19:56:20 -06:00
powerpc signal: Unify and correct copy_siginfo_to_user32 2018-01-15 19:56:20 -06:00
riscv RISC-V: Remove unused CONFIG_HVC_RISCV_SBI code 2017-12-11 07:51:09 -08:00
s390 signal: Unify and correct copy_siginfo_to_user32 2018-01-15 19:56:20 -06:00
score bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
sh signal/sh: Ensure si_signo is initialized in do_divide_error 2018-01-05 18:40:39 -06:00
sparc signal: Unify and correct copy_siginfo_to_user32 2018-01-15 19:56:20 -06:00
tile signal: Don't use structure initializers for struct siginfo 2018-01-22 19:07:08 -06:00
um Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-12-23 11:53:04 -08:00
unicore32 Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-12-23 11:53:04 -08:00
x86 signal: Unify and correct copy_siginfo_to_user32 2018-01-15 19:56:20 -06:00
xtensa bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2017-12-05 15:02:40 +01:00
.gitignore
Kconfig bpf: Revert bpf_overrid_function() helper changes. 2017-11-11 18:24:55 +09:00