NAS-145434 / 27.1.0 / Fix early checks tests failures (#20317)
`api2.test_001_ssh.test_008_check_root_dataset_settings` fails when
reinstalling middleware from branch because `disable-rootfs-protection`
is used. The detection intent is there, but it never worked.
`api2.test_007_early_settings.test_data_dir_perms` fails in the same
configuration. `0600` permissions on the database were ensured by our
build system. `dpkg -i` installs a new version of the file with default
`644` permissions.
HBSD: Add HARDENEDBSD-KASAN amd64 kernel config
Pretty self-explanitory: make it easier to work with KASAN.
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
HBSD: Add HARDENEDBSD-KMSAN amd64 kernel config
Pretty self-explanitory: make it easier to work with KMSAN.
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
soelim: check the stdout error flag
fflush() may return success after a failed write, when the failed write
was the last one and left the buffer empty; the stream error flag is
then the only record of the failure. Check ferror() as well.
Make the /dev/full test use the input file from the source directory,
match the expected diagnostic, and add a line larger than the stdio
buffer so that the direct write path is covered.
Reported by: llm-postcr
[SCEV] Add GEP offsets successively. (#247648)
nusw on a GEP only guarantees that adding the offsets in the
original order of the indices does not wrap.
SCEV requires flags to apply for any operand order. Add the offsets one
by one instead, like createSCEV does for chains of adds. getAddExpr
handles flags correctly when inlining operands.
PR: https://github.com/llvm/llvm-project/pull/247648
[Modules][ObjC] Objective-C categories aren't visible in local submodule visibility (#246933)
Objective-C categories are never visible under local submodule
visibility because ObjCInterfaceDecl::isVisible{Category|Extension}
doesn't check Sema::isVisible. In fact they can't check Sema because
that's at a higher level. Instead add an isDeclVisible to ASTContext,
and have Sema set a callback on ASTContext to let it call through to
Sema::isVisible.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
rdar://82149585
[AMDGPU] Re-enable AAInstanceInfo in AMDGPUAttributor (#247043)
This was enabled and then disabled because of its compile time impact.
With recent changes #246890 and #247042, the compile time issue should
have been resolved.
FreeBSD: wait for the GEOM orphan when removing a zvol minor
Switching a zvol from volmode=geom to volmode=dev removes the GEOM
minor and then creates a cdev with the same name. The removal ends
with g_waitidle(), but that can return while the GEOM event thread is
still orphaning the provider: one_event() takes the provider off
g_doorstep, drops g_eventlock and only then calls the consumers'
orphan methods, so for a moment both queues look empty. The old name
is released by delist_dev() in g_dev_orphan(). If zvol_alloc() gets
to make_dev_s(MAKEDEV_CHECKNAME) first, it fails with EEXIST, the
error is lost in the zvol task, and the zvol is left without a device
node. "zfs create -V ... -o volmode=dev" takes the same path, because
the minor is first created with the default volmode.
After g_wither_geom(), post an empty event and wait for it. The event
thread serves g_doorstep before g_events and handles one item at a
time, so the event completes only after the orphan has been processed.
zvol_misc_volmode should no longer fail on FreeBSD for this reason, so
[8 lines not shown]
[Clang][OpenMP] Skip offload metadata emission during function finalization (#245735)
With -fopenmp-enable-irbuilder, Clang calls finalize(CurFn) after
generating each function. Emitting module-wide offload entries there,
and again at module completion, duplicates host offload metadata. Device
compilation then fails with "All ordered entries must exist!" because
duplicate records inflate the entry count.
Only emit offload entries from finalize() when no function is supplied.
Follow-up to commit 48c3ae5 @agozillon.
Fixes #242591.
Assisted by gpt-6.
bhyve: fix snapshot IPC handling
Currently, bhyvectl --suspend fails with:
Socket not connected
Even on successful suspend.
This happens because of two commits that result in a regression.
The first one, f49f33ef8c53, changed the snapshot request to
use nvlist_xfer() instead of nvlist_send(). Since the suspend path
exits before the IPC handler can send a response, nvlist_xfer()
fails with ENOTCONN.
The second one, ed60e5710e74, added err = errno when nvlist_xfer()
fails. As a result, bhyvectl prints the error message listed above
and exits with ENOTCONN.
Fix that by sending the snapshot request response before shutting
[7 lines not shown]
www/gitlab: Update RUN_DEPENDS
- Change RUN_DEPENDS from rubygem-hashdiff to rubygem-hashdiff-gitlab
- Change RUN_DEPENDS from rubygem-prawn-svg to rubygem-prawn-svg-gitlab
- Bump PORTREVISION for dependency change