x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list
authorAmmar Faizi <ammarfaizi2@gnuweeb.org>
Fri, 23 Dec 2022 17:23:38 +0000 (00:23 +0700)
committerRichard Weinberger <richard@nod.at>
Fri, 10 Feb 2023 20:33:37 +0000 (21:33 +0100)
commit5541992e512de8c9133110809f767bd1b54ee10d
treed9b457237b4bf9ead98a7f9ade2c9a80d60161bf
parent0438aadfa69a345136f5ba4f582e0f769450ee0d
x86: um: vdso: Add '%rcx' and '%r11' to the syscall clobber list

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: f1c2bb8b9964ed31de988910f8b1cfb586d30091 ("um: implement a x86_64 vDSO")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/vdso/um_vdso.c