Dave Aldridge e2b8851f1f sparc64: fix fault handling in NGbzero.S and GENbzero.S
commit 3c7f62212018b904ae17f5636ead18a4dca3a88f upstream.

When any of the functions contained in NGbzero.S and GENbzero.S
vector through *bzero_from_clear_user, we may end up taking a
fault when executing one of the store alternate address space
instructions. If this happens, the exception handler does not
restore the %asi register.

This commit fixes the issue by introducing a new exception
handler that ensures the %asi register is restored when
a fault is handled.

Orabug: 25577560

Signed-off-by: Dave Aldridge <david.j.aldridge@oracle.com>
Reviewed-by: Rob Gardner <rob.gardner@oracle.com>
Reviewed-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-14 14:06:01 +02:00
..
2017-04-16 12:38:17 -07:00
2017-04-16 12:38:17 -07:00
2017-03-10 08:59:07 -08:00
2017-03-20 11:27:28 +01:00
2017-04-21 09:34:45 -07:00
2017-04-12 07:40:24 +02:00
2017-03-10 08:59:07 -08:00
2017-03-31 16:26:21 -07:00