mirror of
https://github.com/torvalds/linux.git
synced 2025-11-08 20:49:35 +02:00
If we use the ancient SysV syscall ABI, we'd better have tell the
kernel how to claim that a negative return value is a success.
Use ->orig_r2 for that - it's inaccessible via ptrace, so it's
a fair game for changes and it's normally[*] non-negative on return
from syscall. Set to -1; syscall is not going to be restart-worthy
by definition, so we won't interfere with that use either.
[*] the only exception is rt_sigreturn(), where we skip the entire
messing with r1/r2 anyway.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| asm-offsets.c | ||
| cpuinfo.c | ||
| entry.S | ||
| head.S | ||
| insnemu.S | ||
| irq.c | ||
| kgdb.c | ||
| Makefile | ||
| misaligned.c | ||
| module.c | ||
| nios2_ksyms.c | ||
| process.c | ||
| prom.c | ||
| ptrace.c | ||
| setup.c | ||
| signal.c | ||
| sys_nios2.c | ||
| syscall_table.c | ||
| time.c | ||
| traps.c | ||
| vmlinux.lds.S | ||