syslogd: Improve handling of configuration errors
Make parse_selector() print a warning to stderr and continue parsing the
config if it encounters an invalid facility or priority. Note that
because the parsing is done from a casper service, there isn't a good
mechanism to log errors; the warnings are visible only when syslogd is
started in debug mode.
Reported by: Doug Hardie <bc979 at lafn.org>
MFC after: 1 week
Fixes: f4b4a10abb26 ("syslogd: Move selector parsing into its own function")
Reviewed by: jfree, jlduran, eugen, delphij
Differential Revision: https://reviews.freebsd.org/D55033
bhyve: Propagate errors from rfb_recv_* functions
Update rfb_recv_* functions to return -1 on failure and 0 on success.
Update rfb_handle to check these return values and drop the connection
if an error occurs.
Signed-off-by: Hayzam Sherif <hayzam at gmail.com>
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
[TableGen] Simplify printing of simple InfoByHwModes (#181714)
For the -register-info-debug output, don't bother printing a brace
enclosed list for simple InfoByHwModes, where every entry is the
default.
[ELF] Add target-specific relocation scanning for SystemZ (#181563)
Implement SystemZ::scanSectionImpl, following the pattern established
for x86 (#178846) and PPC64 (#181496). This merges the getRelExpr and
TLS handling for SHF_ALLOC sections into the target-specific scanner,
enabling devirtualization and eliminating abstraction overhead.
- Inline relocation classification into scanSectionImpl with a switch
on relocation type, replacing the generic `rs.scan()` path.
- Use processR_PC/processR_PLT_PC for common PC-relative and PLT
relocations.
- Handle TLS GD, LD, and DTPREL directly, eliminating
handleTlsRelocation, getTlsGdRelaxSkip, and adjustTlsExpr overrides.
Replace R_RELAX_TLS_GD_TO_IE_GOT_OFF with R_GOT_OFF and
R_RELAX_TLS_GD_TO_LE/R_RELAX_TLS_LD_TO_LE with R_TPREL, using
type-based dispatch in relocate() for marker relocation types.
- Handle TLS IE inline without IE-to-LE optimization. Cannot use
`handleTlsIe`.
- Remove `sortRels`: instead of sorting relocations to process GDCALL
[6 lines not shown]
[mlir][AMDGPU] Update gather_to_lds with explicit-async support
This commit takes advantage of the new `load.async.to.lds` intrinsic
in order to add an `async` mode to `gather_to_lds`. In this mode,
completion of the load needs to be managed with `asyncmark` and
`wait.asyncmark` intrinsics instead of being implicitly derived by
alias analysis.
This commit adds the flag, a lowering for it, and updates tests.
Co-authored-by: Claude Opus 4.5 <noreply at anthropic.com>
[mlir][ROCDL] Add async variants of pre-gfx12 LDS load intrinsics
These are MLIR wrappers around #180466.
-----
Co-authored-by: Claude Opus 4.5 <noreply at anthropic.com>
print/lilypond: fix build with clang 21
With clang 21 print/lilypond fails to build, with errors similar to:
In file included from line-interface.cc:25:
In file included from /wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/lazy-skyline-pair.hh:24:
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/transform.hh:32:3: error: 'smob_trampoline' is a private member of 'Smob_base<Transform>'
32 | LY_DECLARE_SMOB_PROC (&Transform::call, 1, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:245:32: note: expanded from macro 'LY_DECLARE_SMOB_PROC'
245 | LY_DECLARE_STATIC_SMOB_PROC (smob_trampoline<PMF>, REQ, OPT, VAR)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:240:65: note: expanded from macro 'LY_DECLARE_STATIC_SMOB_PROC'
240 | scm_set_smob_apply (smob_tag, reinterpret_cast<scm_t_subr> (FUN), REQ, \
| ^~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:260:14: note: declared private here
260 | static SCM smob_trampoline (SCM self, SCM arg1)
| ^
[11 lines not shown]
[flang][OpenMP] Push context for all directives in resolve-directives.cpp
The visitors for loop and simple-standalone constructs had switch
statements that explicitly listed all directives in the category,
and pushed the context for them.
The visitor for block constructs listed a selection of directives,
but it's ok to push a context for all directives for consistency.
print/lilypond: fix build with clang 21
With clang 21 print/lilypond fails to build, with errors similar to:
In file included from line-interface.cc:25:
In file included from /wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/lazy-skyline-pair.hh:24:
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/transform.hh:32:3: error: 'smob_trampoline' is a private member of 'Smob_base<Transform>'
32 | LY_DECLARE_SMOB_PROC (&Transform::call, 1, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:245:32: note: expanded from macro 'LY_DECLARE_SMOB_PROC'
245 | LY_DECLARE_STATIC_SMOB_PROC (smob_trampoline<PMF>, REQ, OPT, VAR)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:240:65: note: expanded from macro 'LY_DECLARE_STATIC_SMOB_PROC'
240 | scm_set_smob_apply (smob_tag, reinterpret_cast<scm_t_subr> (FUN), REQ, \
| ^~~
/wrkdirs/usr/ports/print/lilypond/work/lilypond-2.24.4/lily/include/smobs.hh:260:14: note: declared private here
260 | static SCM smob_trampoline (SCM self, SCM arg1)
| ^
[9 lines not shown]
devel/ispc: fix build with libc++ >= 20
With libc++ 20 or higher devel/ispc fails to build, with errors similar
to:
/wrkdirs/usr/ports/devel/ispc/work/ispc-1.30.0/src/util.cpp:51:11: error: '__libcpp_verbose_abort' is missing exception specification 'noexcept'
51 | void std::__libcpp_verbose_abort(char const *format, ...)
| ^
| noexcept
/usr/include/c++/v1/__verbose_abort:24:28: note: previous declaration is here
24 | __printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...) _NOEXCEPT;
| ^
This is because ispc attemps to override __libcpp_verbose_abort(), which
is an internal libc++ function, but it misses a noexcept specification.
However, overriding __libcpp_verbose_abort() is only necessary on older
versions of macOS. Therefore, exclude the whole #if block if the
operating system is not macOS.
[6 lines not shown]
devel/ispc: fix build with libc++ >= 20
With libc++ 20 or higher devel/ispc fails to build, with errors similar
to:
/wrkdirs/usr/ports/devel/ispc/work/ispc-1.30.0/src/util.cpp:51:11: error: '__libcpp_verbose_abort' is missing exception specification 'noexcept'
51 | void std::__libcpp_verbose_abort(char const *format, ...)
| ^
| noexcept
/usr/include/c++/v1/__verbose_abort:24:28: note: previous declaration is here
24 | __printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...) _NOEXCEPT;
| ^
This is because ispc attemps to override __libcpp_verbose_abort(), which
is an internal libc++ function, but it misses a noexcept specification.
However, overriding __libcpp_verbose_abort() is only necessary on older
versions of macOS. Therefore, exclude the whole #if block if the
operating system is not macOS.
[4 lines not shown]
[clang-tidy] Handle inherited push_back/emplace_back in inefficient-vector-operation (#181476)
- Fix to match calls where `push_back`/`emplace_back` are inherited and
the implicit object argument is wrapped in implicit casts.
- Add a dedicated regression test for configured vector-like classes.
Fixes #181427
[mlir][remove-dead-values] Replace appropriate operation results with poison (#181013)
Before erasing the operation, replace all result values with live-uses
by
ub.poison values. This is important to maintain IR validity. For
example,
if we have an op with one of its results used by another op, erasing the
op without replacing its corresponding result would leave us with a
dangling operand in the user op. By replacing the result with a
ub.poison
value, we ensure that the user op still has a valid operand, even though
it's a poison value which will be cleaned up later if it can be cleaned
up. This keeps the IR valid for further simplification and
canonicalization while fixing a related crash in the canonicalizer.
Fixes https://github.com/llvm/llvm-project/issues/179944
textproc/rumdl: update to 0.1.22
Added
Config: Per-directory configuration resolution — place .rumdl.toml in
subdirectories to override settings for specific paths
MD075: New rule to detect orphaned table rows and headerless pipe content
(#426)
Fixed
MD041: Support TOML (+++) and JSON ({}) front-matter formats alongside
YAML when checking for title field
(#427, thanks @Nathan-Furnal)
MD054: Match warning message with rule configuration option
(thanks @eread in #421)
Style config: All style configuration values now use kebab-case as the
canonical format and accept snake_case, kebab-case, and uppercase variants.
Affected rules: MD003, MD046, MD048, MD049, MD050, MD055, MD060, MD063
[4 lines not shown]
[NFC][SPIRV] Rework `isConstReg` to remove `SPIRVType` (#181647)
Using `SPIRVType *` in the `Visited` set seems rather accidental, since
the instructions that this function traverses are expected to be a
constant definition.
Made the function iterative to avoid the `Visited` set declaration on
the caller.
Related to https://github.com/llvm/llvm-project/issues/180788
tests/mac_portacl: restore sysctls after modification
While here, use 'required_kmods' instead of ad-hoc
checks.
Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
Reviewed by: markj
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Pull Request: https://github.com/freebsd/freebsd-src/pull/1855
(cherry picked from commit 170aac93479467334062813c1175a80200400b79)
Refactor auth.login_ex
This commit shifts the auth.login_ex method so that it calls into
various helper methods in auth_/login_ex_imply.py. The helper
methods allow easier separation of sync vs async methods and
consistent typing for responses and arguments.
Various typing fixes are also applied.
A new auth.login_ex response `DENIED` is generated if user
successfully authenticates but has no API access.