android_kernel_samsung_univ.../arch
Eric W. Biederman 6471c3d190 signal/openrisc: Fix do_unaligned_access to send the proper signal
commit 500d58300571b6602341b041f97c082a461ef994 upstream.

While reviewing the signal sending on openrisc the do_unaligned_access
function stood out because it is obviously wrong.  A comment about an
si_code set above when actually si_code is never set.  Leading to a
random si_code being sent to userspace in the event of an unaligned
access.

Looking further SIGBUS BUS_ADRALN is the proper pair of signal and
si_code to send for an unaligned access. That is what other
architectures do and what is required by posix.

Given that do_unaligned_access is broken in a way that no one can be
relying on it on openrisc fix the code to just do the right thing.

Fixes: 769a8a9622 ("OpenRISC: Traps")
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: openrisc@lists.librecores.org
Acked-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:09:46 +01:00
..
alpha alpha: fix build failures 2017-12-25 14:22:16 +01:00
arc ARC: uaccess: dont use "l" gcc inline asm constraint modifier 2018-01-10 09:27:11 +01:00
arm arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls 2018-02-16 20:09:45 +01:00
arm64 bpf: introduce BPF_JIT_ALWAYS_ON config 2018-02-03 17:04:24 +01:00
avr32
blackfin pinctrl: adi2: Fix Kconfig build problem 2017-12-20 10:05:00 +01:00
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips MIPS: AR7: ensure the port type's FCR value is used 2018-01-23 19:50:18 +01:00
mn10300
nios2
openrisc signal/openrisc: Fix do_unaligned_access to send the proper signal 2018-02-16 20:09:46 +01:00
parisc parisc: Fix alignment of pa_tlb_lock in assembly on 32-bit SMP kernel 2018-01-10 09:27:12 +01:00
powerpc powerpc/pseries: include linux/types.h in asm/hvcall.h 2018-02-16 20:09:39 +01:00
s390 bpf: introduce BPF_JIT_ALWAYS_ON config 2018-02-03 17:04:24 +01:00
score
sh
sparc sparc64/mm: set fields in deferred pages 2017-12-16 10:33:55 +01:00
tile
um um: link vmlinux with -no-pie 2018-01-31 12:06:12 +01:00
unicore32
x86 KVM: nVMX: Fix races when sending nested PI while dest enters/leaves L2 2018-02-16 20:09:45 +01:00
xtensa
.gitignore
Kconfig