Skip to content
Commit 2afb447f authored by SUGIOKA Toshinobu's avatar SUGIOKA Toshinobu Committed by Paul Mundt
Browse files

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: default avatarSUGIOKA Toshinobu <sugioka@itonet.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent eb6434d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment