Page MenuHomeFreeBSD

Remove very old and unused signal information codes.
ClosedPublic

Authored by jhb on Mar 10 2018, 12:03 AM.
Tags
None
Referenced Files
F170985009: D14637.id40120.diff
Tue, Sep 8, 12:40 AM
F170966581: D14637.id40821.diff
Mon, Sep 7, 10:04 PM
F170928028: D14637.id40252.diff
Mon, Sep 7, 4:13 PM
Unknown Object (File)
Mon, Sep 7, 12:38 AM
Unknown Object (File)
Sun, Sep 6, 6:06 PM
Unknown Object (File)
Sun, Sep 6, 2:48 AM
Unknown Object (File)
Tue, Sep 1, 9:59 PM
Unknown Object (File)
Fri, Aug 28, 5:16 AM
Subscribers

Details

Summary

These have been supplanted by the MI signal information codes in
<sys/signal.h> since 7.0. The FPE_*_TRAP ones were deprecated even
earlier in 1999.

Test Plan
  • waiting on a tinderbox to finish, but I'm quite certain these aren't used anywhere

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/x86/include/signal.h
48 ↗(On Diff #40120)

I do not object against this part, but the pollution might be relied upon by third-party software. I do not know.

sys/x86/include/trap.h
88 ↗(On Diff #40120)

At least BUS_PAGE_FAULT is used in kernel.

sys/x86/include/signal.h
48 ↗(On Diff #40120)

I can request an exp-run to check for this.

sys/x86/include/trap.h
88 ↗(On Diff #40120)

This is only for legacy binaries though (< 7.0), so I think we can just hide that specific use case under #ifdef _KERNEL. We could also make the tunable depend on #ifdef COMPAT_FREEBSD6? (And just always use SIGSEGV on kernels without COMPAT_FREEBSD6?) Alternatively, the compat shim could just use 'T_PAGEFLT' directly for ucode (this matches what the code did prior to the siginfo commit).

sys/x86/include/signal.h
48 ↗(On Diff #40120)

Ok.

sys/x86/include/trap.h
88 ↗(On Diff #40120)

I do not see a reason to not use T_PAGEFLT directly.

  • Use T_PAGEFLT directly for the legacy page fault signal code.
  • Use T_PAGEFLT on i386 as well.
  • Add <machine/trap.h> #include's.
This revision is now accepted and ready to land.Mar 13 2018, 5:49 PM
This revision was automatically updated to reflect the committed changes.