Checking patch sysdeps/mach/hurd/x86_64/sigreturn.c... error: while searching for: unlock SS off sigstack. */ void __sigreturn2 (struct hurd_sigstate *ss, uintptr_t *usp, struct sigcontext *scp) { mach_port_t reply_port; _hurd_sigstate_unlock (ss); error: patch failed: sysdeps/mach/hurd/x86_64/sigreturn.c:24 error: while searching for: if (__glibc_likely (MACH_PORT_VALID (reply_port))) (void) __mach_port_mod_refs (__mach_task_self (), reply_port, MACH_PORT_RIGHT_RECEIVE, -1); THREAD_SETMEM (THREAD_SELF, reply_port, scp->sc_reply_port); asm volatile ( /* Point the stack to the register dump. */ error: patch failed: sysdeps/mach/hurd/x86_64/sigreturn.c:44 error: while searching for: { struct hurd_sigstate *ss; struct hurd_userlink *link = (void *) &scp[1]; if (__glibc_unlikely (scp == NULL || (scp->sc_mask & _SIG_CANT_MASK))) return __hurd_fail (EINVAL); error: patch failed: sysdeps/mach/hurd/x86_64/sigreturn.c:77 error: while searching for: in the format the i387 `frstor' instruction uses to restore it. */ asm volatile ("frstor %0" : : "m" (scp->sc_fpsave)); { /* There are convenient instructions to pop state off the stack, so we copy the registers onto the user's stack, switch there, pop and return. */ uintptr_t *usp = (uintptr_t *) (scp->sc_ursp - 128); *--usp = scp->sc_rip; *--usp = scp->sc_rfl; *--usp = scp->sc_rax; *--usp = scp->sc_rcx; *--usp = scp->sc_rdx; *--usp = scp->sc_rbx; *--usp = scp->sc_rbp; *--usp = scp->sc_rsi; *--usp = scp->sc_rdi; *--usp = scp->sc_r15; *--usp = scp->sc_r14; *--usp = scp->sc_r13; *--usp = scp->sc_r12; *--usp = scp->sc_r11; *--usp = scp->sc_r10; *--usp = scp->sc_r9; *--usp = scp->sc_r8; /* Switch to the user's stack that we have just prepared, and call __sigreturn2. Clobber "memory" to make sure GCC flushes the stack setup to actual memory. We align the stack as per the ABI, but pass the original usp to __sigreturn2 as an argument. */ asm volatile ("movq %1, %%rsp\n" "andq $-16, %%rsp\n" "call __sigreturn2" : : "D" (ss), "S" (usp), "d" (scp) : "memory"); __builtin_unreachable (); } } weak_alias (__sigreturn, sigreturn) error: patch failed: sysdeps/mach/hurd/x86_64/sigreturn.c:118 Applying patch sysdeps/mach/hurd/x86_64/sigreturn.c with 4 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. Rejected hunk #4.