mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 18:24:14 +08:00
0f72e5c0df
Al Viro noted that CRIS is vulnerable to bogus restarts on sigreturn.
The fixes CRISv32 by using regs->exs as an additional indicator to
whether we should attempt to restart the syscall or not. EXS is only
used in the sigtrap handling, and in that path we already have r9 (the
other indicator, which indicates if we're in a syscall or not) cleared.
Test case, a port of Al's ARM version from
|
||
---|---|---|
.. | ||
cache.c | ||
cacheflush.S | ||
crisksyms.c | ||
debugport.c | ||
entry.S | ||
fasttimer.c | ||
head.S | ||
irq.c | ||
kgdb_asm.S | ||
kgdb.c | ||
Makefile | ||
process.c | ||
ptrace.c | ||
setup.c | ||
signal.c | ||
smp.c | ||
time.c | ||
traps.c |