]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
microblaze: fix __syscall_cancel_arch (BZ 33547)
authorLuc Michel <luc.michel@amd.com>
Fri, 17 Oct 2025 09:27:12 +0000 (11:27 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 20 Oct 2025 14:33:54 +0000 (11:33 -0300)
The __syscall_cancel_arch function has an epilogue that does not match
the prologue. The stack is not used and the return address still lies in
r15 when reaching the epilogue. Fix the epilogue by simply returning
from the function.

Signed-off-by: Luc Michel <luc.michel@amd.com>
Tested-by: gopi@sankhya.com
Reviewed-by: Neal Frager <neal.frager@amd.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/microblaze/syscall_cancel.S

index 38150e6a941c74a53dc65692a788716f9ac84051..3e8dc96a93ee7c64cb6e714a4f7f99fec4a44022 100644 (file)
@@ -50,9 +50,8 @@ __syscall_cancel_arch_start:
 __syscall_cancel_arch_end:
 
        nop
-       lwi     r15,r1,0
        rtsd    r15,8
-       addik   r1,r1,28
+       nop
 
 1:
        brlid   r15, __syscall_do_cancel