summaryrefslogtreecommitdiff
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2016-10-29 06:00:34 +0300
committerHelge Deller <deller@gmx.de>2016-11-03 01:05:30 +0300
commit6ed518328d0189e0fdf1bb7c73290d546143ea66 (patch)
tree177a971638fed789cd8972580e89d6aaa466c73a /net/sunrpc
parentf4125cfdb3008363137f744c101e5d76ead760ba (diff)
downloadlinux-6ed518328d0189e0fdf1bb7c73290d546143ea66.tar.xz
parisc: Ensure consistent state when switching to kernel stack at syscall entry
We have one critical section in the syscall entry path in which we switch from the userspace stack to kernel stack. In the event of an external interrupt, the interrupt code distinguishes between those two states by analyzing the value of sr7. If sr7 is zero, it uses the kernel stack. Therefore it's important, that the value of sr7 is in sync with the currently enabled stack. This patch now disables interrupts while executing the critical section. This prevents the interrupt handler to possibly see an inconsistent state which in the worst case can lead to crashes. Interestingly, in the syscall exit path interrupts were already disabled in the critical section which switches back to the userspace stack. Cc: <stable@vger.kernel.org> Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions