Skip to content
Commit fd735410 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix accidental syscall restart on child return from clone/fork/vfork.

This fixes a regression added by
238468b2

 ("[SPARC64]: Use trap type
stored in pt_regs to handle syscall restart.")

Because we now encode the "returning from syscall" status in the
pt_regs area, we have to be mindful to zap it out in the child
of a fork.

During a parallel kernel build I saw an accidental -EINTR return
from vfork() in 'make' because of this bug.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90888816
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment