]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fix SMP races when updating PTE and TLB entries in entry.S
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 10 May 2013 23:21:38 +0000 (23:21 +0000)
committerHelge Deller <deller@gmx.de>
Sat, 11 May 2013 19:13:04 +0000 (21:13 +0200)
commit3e7b0cca585cff9081fde7c897259c801d5db906
treed931ef9634976eec903b87de8c2b2dc029918db8
parentd88787013b41a720bf5ccbad74f701a9295130e6
parisc: fix SMP races when updating PTE and TLB entries in entry.S

Currently, race conditions exist in the handling of TLB interruptions in
entry.S.  In particular, dirty bit updates can be lost if an accessed
interruption occurs just after the dirty bit interruption on a different
cpu.  Lost dirty bit updates result in user pages not being flushed and
general system instability.  This change adds lock and unlock macros to
synchronize all PTE and TLB updates done in entry.S.  As a result,
userspace stability is significantly improved.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S