A couple of sanitizer-related tweaks (#41808)
The sanitizer job was FUBAR on Fedora Rawhide (and RHEL 10 to some extent) due to several changes: - latest LLVM (v22) introduced a change that occasionally generates a false-positive warning when running with sanitizers - several tools had to be "ASan-wrapped" because: - util-linux started linking against libsystemd which propagated to other tools depending on its shared libraries (like libmount) - libssh started depending on libfido2, which depends on libudev; this then translated to an interesting depedency chain where tpm2 utils got a dependency on libudev through libcurl -> libssh -> libfido2 - polkit added MemoryMax= to its service file, which is incompatible with ASan-runs (at least with the current limits) See the commits for more detailed descriptions. Also, one note: the santizer job is currently still FUBAR on Fedora Rawhide (or, more specifically, the TEST-50-DISSECT and TEST-58-REPART), because mkfs.erofs also gained a dependency on libudev (through libcurl, see above), but the wrapping currently doesn't work as it also depends on libqpl which is linked with libtsan (which is incompatible with other sanitizers). This is currently tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2461146
This commit is contained in:
@@ -6,15 +6,6 @@ set -o pipefail
|
||||
# shellcheck source=test/units/util.sh
|
||||
. "$(dirname "$0")"/util.sh
|
||||
|
||||
# When sanitizers are used, export LD_PRELOAD with the sanitizers path,
|
||||
# lsns doesn't work otherwise.
|
||||
if [ -f /usr/lib/systemd/systemd-asan-env ]; then
|
||||
# shellcheck source=/dev/null
|
||||
. /usr/lib/systemd/systemd-asan-env
|
||||
export LD_PRELOAD
|
||||
export ASAN_OPTIONS
|
||||
fi
|
||||
|
||||
# Only reuse the user namespace
|
||||
systemd-run --unit=oldservice --property=Type=exec --property=PrivateUsers=true sleep 3600
|
||||
OLD_PID=$(systemctl show oldservice -p MainPID | awk -F= '{print $2}')
|
||||
|
||||
Reference in New Issue
Block a user