Commit 9dc0cc0e authored by Ammar Faizi's avatar Ammar Faizi Committed by sanglipeng
Browse files

x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list

stable inclusion
from stable-v5.10.173
commit 7cb46fa16b96ff197eb84a33b23a8448fe0c1e8d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7X0QU

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7cb46fa16b96ff197eb84a33b23a8448fe0c1e8d



--------------------------------

[ Upstream commit 5541992e ]

The 'syscall' instruction clobbers '%rcx' and '%r11', but they are not
listed in the inline Assembly that performs the syscall instruction.

No real bug is found. It wasn't buggy by luck because '%rcx' and '%r11'
are caller-saved registers, and not used in the functions, and the
functions are never inlined.

Add them to the clobber list for code correctness.

Fixes: f1c2bb8b ("um: implement a x86_64 vDSO")
Signed-off-by: default avatarAmmar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 4c864467
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment