mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| Kbuild | ||
| asm-macros.h | ||
| asm-offsets.h | ||
| cache.h | ||
| cacheflush.h | ||
| checksum.h | ||
| cpuinfo.h | ||
| delay.h | ||
| elf.h | ||
| entry.h | ||
| io.h | ||
| irq.h | ||
| irqflags.h | ||
| kgdb.h | ||
| linkage.h | ||
| mmu.h | ||
| mmu_context.h | ||
| page.h | ||
| pgalloc.h | ||
| pgtable-bits.h | ||
| pgtable.h | ||
| processor.h | ||
| ptrace.h | ||
| registers.h | ||
| setup.h | ||
| shmparam.h | ||
| string.h | ||
| switch_to.h | ||
| syscall.h | ||
| syscalls.h | ||
| thread_info.h | ||
| timex.h | ||
| tlb.h | ||
| tlbflush.h | ||
| traps.h | ||
| uaccess.h | ||
| vmalloc.h | ||