aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorMatheus Castanho <msc@linux.ibm.com>2021-03-17 10:14:15 -0300
committerMatheus Castanho <msc@linux.ibm.com>2021-04-16 08:40:37 -0300
commit5d61fc2021922b4f572be218dad5b299e2939346 (patch)
tree9a10e23ddd596d15dda4641e555ad48c535353cc /sysdeps/x86_64
parent5ad1a81c8e84eed232ed42a2bf50a160c1447600 (diff)
downloadglibc-5d61fc2021922b4f572be218dad5b299e2939346.tar
glibc-5d61fc2021922b4f572be218dad5b299e2939346.tar.gz
glibc-5d61fc2021922b4f572be218dad5b299e2939346.tar.bz2
glibc-5d61fc2021922b4f572be218dad5b299e2939346.zip
powerpc: Add missing registers to clobbers list for syscalls [BZ #27623]
Some registers that can be clobbered by the kernel during a syscall are not listed on the clobbers list in sysdeps/unix/sysv/linux/powerpc/sysdep.h. For syscalls using sc: - XER is zeroed by the kernel on exit For syscalls using scv: - XER is zeroed by the kernel on exit - Different from the sc case, most CR fields can be clobbered (according to the ELF ABI and the Linux kernel's syscall ABI for powerpc (linux/Documentation/powerpc/syscall64-abi.rst) The same should apply to vsyscalls, which effectively execute a function call but are not currently adding these registers as clobbers either. These are likely not causing issues today, but they should be added to the clobbers list just in case things change on the kernel side in the future. Reported-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Raphael M Zinsly <rzinsly@linux.ibm.com>
Diffstat (limited to 'sysdeps/x86_64')
0 files changed, 0 insertions, 0 deletions