[PAC][libunwind] Protect dso_base argument of getInfoFromFdeCie
Pass the `dso_base` argument of `UnwindCursor::getInfoFromFdeCie`
as a constant reference to a `__ptrauth`-qualified type. This resolves
the signing oracle in getInfoFromFdeCie when assigning dso_base to the
`__ptrauth`-qualified `_info.extra` field. This commit applies the
changes similar to those done in #173765 to one more function argument.
In the current libunwind source, getInfoFromFdeCie is called three
times, with only one invocation not passing literal 0 as the dso_base
argument. In that only non-trivial case, the value to be passed as
dso_base is read from the `dso_base` field of `UnwindInfoSections`,
which is itself `__ptrauth`-qualified.
[MsgPackDocument]: Fix DocNode comparison and add copyNode (#189436)
Fix two bugs in DocNode's comparison operators and add a new
Document::copyNode() method:
1. operator== was implemented via operator<, which hits llvm_unreachable
for Array/Map nodes. Implement operator== directly with recursive value
comparison for all node types.
2. operator< compared KindAndDoc pointers, causing cross-document nodes
of the same type and value to silently produce wrong results. Compare by
kind then by value instead.
3. Add Document::copyNode() for deep copying nodes between Documents
with independent memory ownership.
[CIR] Add OpenMP and OpenACC dialect dependencies (#189726)
This patch adds dependencies on OpenMP and OpenACC dialects to prevent
link errors when compiling with shared libraries.
malloc.9: adjust flag table indentation
The current indentation is shorter than all but one of these flags. This
renders much more nicely.
MFC after: 3 days
bcm2835_virtgpio: Add driver for virtual GPIO controller on some RPi models
This driver enables bcm2835-virtgpio GPIO controller found on RPi3B and
some CM boards. On which, the ACT (green) LED is connected to this
controller. It is essential for FreeBSD to have this driver to control
this LED.
It will be exposed via gpioled(4).
Reviewed by: mhorne
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51456
tex-transparent{,-doc}: update to 1.6
* Fix clash with pgfutil-common #3
* Update test for PDF management
* adapt to l3kernel changes (l3opacity is now included)
rdcpcib(4): fix rdcpcib attach/detach handling for function 0 and function 1.
Only function 0 exposes the indirect access registers and the watchdog timer.
Function 1 has a separate register set and does not use these registers.
This resolves the autoconfiguration error seen in boot dmesg:
"rdcpcib1: autoconfiguration error: couldn't map indirect registers"
Attach now maps the indirect access registers and configures the watchdog only
for function 0, and detach only releases resources that were initialized.
reviewed by riastradh@, thanks!
Re-order WRKDIST assignment in bsd.port.mk, so that dist-tuple can work
with it. So far, it has been bypassed in common cases by the logic for
DISTNAME. With this in place, add the quirk for codeberg which uses
${WKRDIR}/${_project} as the WRKDIST.
With this, ports using DIST_TUPLE=codeberg... should no longer need to
set WRKDIST.
ok sthen@
[lldb] Increase timeout on lldbutil.wait_for_file_on_target (#189471)
I've been tracking sporadic timeouts waiting for a file to appear on
macOS buildbots (and occasionally local development environments). I
believe I've tracked it down to a regression in process launch
performance in macOS.
What I noticed is that running multiple test suites simultaneously
almost always triggered these failures and that the tests were always
waiting on files created by the inferior. Increasing this timeout no
longer triggers the failures on my loaded machine locally.
This timeout moves from about 16 seconds of total wait time to about 127
seconds of total wait time. This may feel a bit extreme, but this is a
performance issue. While I was here, I cleaned up logging code I was
using to investigate the test failures.
rdar://172122213