HomeFreeBSD

Restrict spsr updated in the arm64 set_regs*

Description

Restrict spsr updated in the arm64 set_regs*

When using ptrace(2) on arm64 to set registers in a 32-bit program we
need to take care to only set some of the fields. Follow the existing
arm64 path and only let the user set the flags fields. This is also the
case in the arm kernel so fixes a change in behaviour between the two.

While here update set_regs to only set spsr and elr once.

Sponsored by: The FreeBSD Foundation

Details

Provenance
andrewAuthored on Sep 13 2021, 3:24 PM
Parents
rGddedf2a11eb2: tzcode: Implement timezone change detection
Branches
Unknown
Tags
Unknown