Avoid merging globals residing in different comdats (#172835)
The global-merge pass may merge globals residing in different comdat
groups, which may later confuse linker if section GC is being used. In
particular this may happen when merging instrumentation profiler
counters when their corresponding __llvm_prf_cnts sections are being
merged into a single one and moved out of a comdat group, containing
__llvm_prf_cnts and __llvm_prf_data sections. After that __llvm_prf_data
section is becoming orphaned and is garbage-collected when --gc-sections
linker flag is used.
Improve handling of SMB paths for HA systems
This commit shifts the majority of SMB-related paths that aren't
required for SMB session persistence to the boot pool. This
enables the standby controller to more readily be prepared to take
over sessions because we have to resync fewer items on failover
and don't have to replace winbindd / sssd state and flush caches.
Semi-persistent (new on upgrade):
---------------------------------
/var/lib/truenas-samba: samba state dir
* winbindd_idmap.tdb (winbindd-generated automatic mappings of
dynamic accounts -- this is managed by middlewared)
* account_policy.tdb (STIG-related SMB server account configuration
setting expiry details)
* share_info.tdb (SMB share ACLs -- this is managed by middlewared)
* group_mapping.tdb (mappings of local groups to samba SIDs and
NT groups -- managed by middlewared)
[30 lines not shown]
fusefs: Fix further intermittency in the BadServer.ShortWrite test case
After being unmounted, the mockfs server would occasionally read from
/dev/fuse again, if the main function didn't exit fast enough, getting
an ENODEV error. Handle that appropriately.
Reported by: Siva Mahadevan <me at svmhdvn.name>
Fixes: d86025c1d49c84c4dc8c3635c83c078ad56e5a53
MFC after: 1 week
Reviewed by: Siva Mahadevan <me at svmhdvn.name>
Differential Revision: https://reviews.freebsd.org/D54331
[LifetimeSafety] Add missing origins stats for lifetime analysis (#166568)
This PR adds the implementation for printing missing origin stats for
lifetime analysis.
**Purpose:**
This capability is added to track the expression types with missing
origin. While retrieving the origins from origin manager, some
expressions show missing origins. Currently these are created on the fly
using getOrCreate function. For analysing the coverage of the check, it
will be necessary to see what kind of expressions have a missing origin.
It prints the counts in this form: `QualType : count` and `StmtClassName
: count`.
**Approach:**
1. The signature of the runLifetimeAnalysis function is changed to
return the LifetimeAnalysis object which will be used to get the origin
[21 lines not shown]
NAS-139060 / 26.04 / Eliminate some duplication gid definitions. (#17894)
We want to avoid duplicated definitions.
This PR expands the LocalAdminGroups enum class to cover the GIDS
specified in ALLOWED_BUILTIN_GIDS.
Backport is requested to avoid using hardcoded GIDs in some in-progress
work that will be backports.
(cherry picked from commit f40ae0ef0a6a1314d04e23e251fdebee3299dafa)
[LLVM][NFC] Move PassPlugin from Passes to separate library
This avoid pulling in the entire Passes library with all passes as
dependencies when just referring to PassPlugin, which is in fact
independent of the Passes themselves.
Pull Request: https://github.com/llvm/llvm-project/pull/173279
NAS-139060 / 26.04 / Eliminate some duplication gid definitions. (#17894)
We want to avoid duplicated definitions.
This PR expands the LocalAdminGroups enum class to cover the GIDS
specified in ALLOWED_BUILTIN_GIDS.
Backport is requested to avoid using hardcoded GIDs in some in-progress
work that will be backports.
Conditionalize 802.11 support (hostapd, hostapd_cli, wlanctl, wpa_cli,
wpa_passphrase, wpa_supplicant, wiconfig, wlanctl, plus 802.11 support
in ifconfig) on MKWLAN, which defaults to "yes", except on m68000.
NAS-139059 / 26.04 / fix snapshot regressions (and tests) (#17893)
I regressed a few tests and behavior. This fixes most of them. The
retention tests are still failing but I'll have to review those more
closely since it's not immediately apparent what it's even testing
especially since it's only a specific area of a test that's failing.
Improve handling of SMB paths for HA systems
This commit shifts the majority of SMB-related paths that aren't
required for SMB session persistence to the boot pool. This
enables the standby controller to more readily be prepared to take
over sessions because we have to resync fewer items on failover
and don't have to replace winbindd / sssd state and flush caches.
Semi-persistent (new on upgrade):
---------------------------------
/var/lib/truenas/samba: samba state dir
* winbindd_idmap.tdb (winbindd-generated automatic mappings of
dynamic accounts -- this is managed by middlewared)
* account_policy.tdb (STIG-related SMB server account configuration
setting expiry details)
* share_info.tdb (SMB share ACLs -- this is managed by middlewared)
* group_mapping.tdb (mappings of local groups to samba SIDs and
NT groups -- managed by middlewared)
[30 lines not shown]