Page MenuHomeFreeBSD

Stop single stepping in signal handers on arm64
ClosedPublic

Authored by andrew on Feb 4 2022, 3:41 PM.
Tags
None
Referenced Files
F94140340: D34170.diff
Sun, Sep 15, 9:29 PM
Unknown Object (File)
Fri, Sep 13, 10:21 PM
Unknown Object (File)
Sat, Sep 7, 11:49 PM
Unknown Object (File)
Wed, Sep 4, 9:49 AM
Unknown Object (File)
Sun, Sep 1, 5:47 PM
Unknown Object (File)
Sat, Aug 31, 9:27 PM
Unknown Object (File)
Sat, Aug 31, 7:02 PM
Unknown Object (File)
Aug 14 2024, 8:31 AM
Subscribers

Details

Summary

We should clear the single step flag when entering a signal hander and
set it when returning. This fixes the ptrace__PT_STEP_with_signal test.

While here add support for userspace to set the single step bit as on
x86. This can be used by userspace for self tracing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44317
Build 41205: arc lint + arc unit

Event Timeline

andrew requested review of this revision.Feb 4 2022, 3:41 PM

64-bit works. I still need to test the COMPAT32 case.

tests/sys/kern/basic_signal.c
83

This should be

ucp->uc_mcontext.mc_rflags |= PSL_T;

for amd64, and

ucp->uc_mcontext.mc_eflags |= PSL_T;

for i386.

Asd untested x86 test support

This revision is now accepted and ready to land.Feb 7 2022, 2:58 PM