Page MenuHomeFreeBSD

riscv: Fix sig_atomic_t limit definitions
ClosedPublic

Authored by brooks on Mar 21 2023, 11:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 11 2024, 7:54 PM
Unknown Object (File)
Apr 5 2024, 8:24 PM
Unknown Object (File)
Feb 2 2024, 10:56 AM
Unknown Object (File)
Dec 20 2023, 6:03 AM
Unknown Object (File)
Dec 13 2023, 5:22 AM
Unknown Object (File)
Nov 24 2023, 5:21 PM
Unknown Object (File)
Jul 9 2023, 7:03 PM
Unknown Object (File)
Jun 20 2023, 4:47 PM
Subscribers

Details

Summary

sig_atomic_t is defined as a long and thus is 64-bit on arm64. For some
reason its limit was incorrectly specified as a 32-bit number. This had
the unfortunate side effect of causing gnulib to override most of the
definitions in stdint.h. On CheriBSD this breaks all software that uses
gnulib in annoying an hard to debug ways.

Technically updating the limits might be an ABI change, but these
defines are largely unused (the only use in tree is in the libc++ test
suite where it's use an assertion that will fail due to this bug).
Further, since the underlying type remains the same, we're just
increasing the range of values a paranoid program might use.

Sponsored by: DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable