SUGIOKA Toshinobu 2afb447f33 sh: fix unaligned and nonexistent address handling
unaligned and nonexistent address causes wrong exception
handling in traps_32.c(handle_unaligned_access).

'handle_unalinged_ins' should return -EFAULT if address error
is fixed up with kernel exception table, otherwise
'handle_unaligned_access' increases already fixed program counter
and then crash.

for example
   ioctl(fd, TCGETA, (struct termio *)-1)
never return and stay in TASK_UNINTERRUPTIBLE state forever
in my kernel.

Signed-off-by: SUGIOKA Toshinobu <sugioka@itonet.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-01-21 18:35:55 +09:00
..
2008-12-22 18:44:04 +09:00
2008-12-22 18:44:04 +09:00
2008-07-29 08:09:44 +09:00
2008-12-31 18:07:42 -05:00
2008-10-04 05:25:52 +09:00
2008-03-06 12:43:38 +09:00
2008-10-04 05:25:52 +09:00
2008-07-29 08:09:44 +09:00
2008-12-22 18:44:04 +09:00
2008-10-04 05:25:52 +09:00
2008-12-22 18:44:44 +09:00
2008-09-13 01:44:03 +09:00
2008-05-25 07:06:08 +02:00
2008-05-25 07:06:08 +02:00