Huacai Chen
344d6159fe
MIPS: io: Add barrier after register read in inX()
...
commit 18f3e95b90b28318ef35910d21c39908de672331 upstream.
While a barrier is present in the outX() functions before the register
write, a similar barrier is missing in the inX() functions after the
register read. This could allow memory accesses following inX() to
observe stale data.
This patch is very similar to commit a1cc7034e33d12dc1 ("MIPS: io: Add
barrier after register read in readX()"). Because war_io_reorder_wmb()
is both used by writeX() and outX(), if readX() need a barrier then so
does inX().
Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Patchwork: https://patchwork.linux-mips.org/patch/19516/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: Huacai Chen <chenhuacai@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:23:11 +02:00
..
alpha
locking/xchg/alpha: Fix xchg() and cmpxchg() memory ordering bugs
2018-05-30 07:50:30 +02:00
arc
ARC: Fix malformed ARC_EMUL_UNALIGNED default
2018-05-30 07:50:26 +02:00
arm
ARM: 8764/1: kgdb: fix NUMREGBYTES so that gdb_regs[] is the correct size
2018-07-03 11:23:08 +02:00
arm64
arm64: mm: Ensure writes to swapper are ordered wrt subsequent cache maintenance
2018-07-03 11:23:08 +02:00
avr32
Merge branch 'akpm' (patches from Andrew)
2016-10-07 21:38:00 -07:00
blackfin
pinctrl: adi2: Fix Kconfig build problem
2017-12-20 10:07:32 +01:00
c6x
c6x/ptrace: Remove useless PTRACE_SETREGSET implementation
2017-03-31 10:31:46 +02:00
cris
cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
2017-01-12 11:39:24 +01:00
frv
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
h8300
h8300/ptrace: Fix incorrect register transfer count
2017-03-31 10:31:46 +02:00
hexagon
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
ia64
ia64/err-inject: Use get_user_pages_fast()
2018-05-30 07:50:34 +02:00
m32r
mm: replace access_process_vm() write parameter with gup_flags
2016-10-19 08:31:25 -07:00
m68k
m68k/mm: Adjust VM area to be unmapped by gap size for __iounmap()
2018-07-03 11:23:05 +02:00
metag
metag/uaccess: Check access_ok in strncpy_from_user
2017-05-25 15:44:46 +02:00
microblaze
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
mips
MIPS: io: Add barrier after register read in inX()
2018-07-03 11:23:11 +02:00
mn10300
mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
2018-02-17 13:21:20 +01:00
nios2
nios2: reserve boot memory for device tree
2017-04-12 12:41:14 +02:00
openrisc
signal/openrisc: Fix do_unaligned_access to send the proper signal
2018-02-17 13:21:19 +01:00
parisc
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
powerpc
powerpc/fadump: Unregister fadump on kexec down path.
2018-07-03 11:23:08 +02:00
s390
KVM: s390: vsie: fix < 8k check for the itdba
2018-05-30 07:50:18 +02:00
score
Merge branch 'gup_flag-cleanups'
2016-10-19 08:39:47 -07:00
sh
sh: fix debug trap failure to process signals before return to user
2018-05-30 07:50:39 +02:00
sparc
sparc64: Don't clibber fixed registers in __multi4.
2018-06-06 16:44:39 +02:00
tile
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
um
um: Use POSIX ucontext_t instead of struct ucontext
2018-04-24 09:34:13 +02:00
unicore32
unicore32: use simpler API for random address requests
2016-10-11 15:06:32 -07:00
x86
x86: Call fixup_exception() before notify_die() in math_error()
2018-07-03 11:23:05 +02:00
xtensa
signal/xtensa: Consistenly use SIGBUS in do_unaligned_user
2018-07-03 11:23:06 +02:00
.gitignore
Kconfig
This adds a new gcc plugin named "latent_entropy". It is designed to
2016-10-15 10:03:15 -07:00