mirror of
https://git.yoctoproject.org/poky
synced 2026-06-21 13:54:22 +02:00
git log --oneline 58cbbd43fe82910cf8ae9008351b0b0665104500..ce65d944e38a20cb70af2a48a4b8aa5d8fabe1cc ce65d944e3 (HEAD -> release/2.39/master, origin/release/2.39/master) posix: Reset wordexp_t fields with WRDE_REUSE (CVE-2025-15281 / BZ 33814) 831f63b94c resolv: Fix NSS DNS backend for getnetbyaddr (CVE-2026-0915) fb22fd3f5b memalign: reinstate alignment overflow check (CVE-2026-0861) 10c0bcb3d3 support: Exit on consistency check failure in resolv_response_add_name f47dd22366 support: Fix FILE * leak in check_for_unshare_hints in test-container 4a53354eaf sprof: fix -Wformat warnings on 32-bit hosts beb8267909 sprof: check pread size and offset for overflow c07002038f getaddrinfo.c: Avoid uninitialized pointer access [BZ #32465] ae5fb93559 nptl: Optimize trylock for high cache contention workloads (BZ #33704) efff7cb659 ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091) f6becd8ae8 ppc64le: Restore optimized strncmp for power10 0daa4e46b8 ppc64le: Restore optimized strcmp for power10 28c1de6580 AArch64: Fix instability in AdvSIMD tan 03d0393343 AArch64: Optimise SVE scalar callbacks 0d05a895f1 aarch64: fix includes in SME tests c1dc4412f8 aarch64: fix cfi directives around __libc_arm_za_disable d60f15dc89 aarch64: tests for SME d1d0d09e9e aarch64: clear ZA state of SME before clone and clone3 syscalls dbe1904b7c aarch64: define macro for calling __libc_arm_za_disable 58cf4aa421 aarch64: update tests for SME 1b3bd9a9a6 aarch64: Disable ZA state of SME in setjmp and sigsetjmp 38942a336b linux: Also check pkey_get for ENOSYS on tst-pkey (BZ 31996) c74d59a656 aarch64: Do not link conform tests with -Wl,-z,force-bti (bug 33601) 323ad087a1 x86: fix wmemset ifunc stray '!' (bug 33542) Testing Results: Before After Diff PASS 4926 4921 -5 XPASS 4 4 0 FAIL 223 229 +6 XFAIL 16 16 0 UNSUPPORTED 224 224 0 Changes in failed testcases: testcase-name before after elf/tst-audit21 PASS FAIL malloc/tst-malloc-too-large PASS FAIL malloc/tst-malloc-too-large-malloc-check PASS FAIL malloc/tst-malloc-too-large-malloc-hugetlb1 PASS FAIL malloc/tst-malloc-too-large-malloc-hugetlb2 PASS FAIL malloc/tst-malloc-too-large-mcheck PASS FAIL (From OE-Core rev: a49b898ed6d571391d90cc3ba150a0421642be23) Signed-off-by: Peter Marko <peter.marko@siemens.com> [Yoann: When run on the autobuilder, all those new FAIL tests are PASS: https://valkyrie.yocto.io/pub/non-release/20260209-10/testresults/qemux86-64-tc/testresults.json] Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
134 lines
5.6 KiB
BlitzBasic
134 lines
5.6 KiB
BlitzBasic
require glibc.inc
|
|
require glibc-version.inc
|
|
|
|
# glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-1010022
|
|
# glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-1010023
|
|
# glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-1010024
|
|
CVE_STATUS_GROUPS = "CVE_STATUS_RECIPE"
|
|
CVE_STATUS_RECIPE = "CVE-2019-1010022 CVE-2019-1010023 CVE-2019-1010024"
|
|
CVE_STATUS_RECIPE[status] = "disputed: \
|
|
Upstream glibc maintainers dispute there is any issue and have no plans to address it further. \
|
|
this is being treated as a non-security bug and no real threat."
|
|
|
|
# glibc https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-1010025
|
|
# Potential patch at https://sourceware.org/bugzilla/show_bug.cgi?id=22853
|
|
CVE_STATUS[CVE-2019-1010025] = "disputed: \
|
|
Allows for ASLR bypass so can bypass some hardening, not an exploit in itself, may allow \
|
|
easier access for another. 'ASLR bypass itself is not a vulnerability.'"
|
|
|
|
CVE_STATUS_GROUPS += "CVE_STATUS_STABLE_BACKPORTS"
|
|
CVE_STATUS_STABLE_BACKPORTS = "CVE-2024-2961 CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602 CVE-2025-0395 \
|
|
CVE-2025-4802 CVE-2025-5702 CVE-2025-8058 CVE-2025-15281 CVE-2026-0861 CVE-2026-0915"
|
|
CVE_STATUS_STABLE_BACKPORTS[status] = "cpe-stable-backport: fix available in used git hash"
|
|
|
|
DEPENDS += "gperf-native bison-native"
|
|
|
|
NATIVESDKFIXES ?= ""
|
|
NATIVESDKFIXES:class-nativesdk = "\
|
|
file://0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \
|
|
file://0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch \
|
|
file://0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch \
|
|
file://0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch \
|
|
file://0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch \
|
|
file://0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch \
|
|
"
|
|
|
|
SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
|
|
file://etc/ld.so.conf \
|
|
file://generate-supported.mk \
|
|
file://makedbs.sh \
|
|
\
|
|
${NATIVESDKFIXES} \
|
|
file://0009-yes-within-the-path-sets-wrong-config-variables.patch \
|
|
file://0010-eglibc-Cross-building-and-testing-instructions.patch \
|
|
file://0011-eglibc-Help-bootstrap-cross-toolchain.patch \
|
|
file://0012-eglibc-Resolve-__fpscr_values-on-SH4.patch \
|
|
file://0013-eglibc-Forward-port-cross-locale-generation-support.patch \
|
|
file://0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \
|
|
file://0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch \
|
|
file://0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \
|
|
file://0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch \
|
|
file://0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch \
|
|
file://0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch \
|
|
file://0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch \
|
|
file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \
|
|
file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \
|
|
file://0023-qemu-stale-process.patch \
|
|
file://0001-stdlib-Add-single-threaded-fast-path-to-rand.patch \
|
|
"
|
|
S = "${WORKDIR}/git"
|
|
B = "${WORKDIR}/build-${TARGET_SYS}"
|
|
|
|
PACKAGES_DYNAMIC = ""
|
|
|
|
# the -isystem in bitbake.conf screws up glibc do_stage
|
|
BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
|
|
TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"
|
|
|
|
GLIBC_BROKEN_LOCALES = ""
|
|
|
|
GLIBCPIE ??= ""
|
|
|
|
EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
|
|
--disable-profile \
|
|
--disable-debug --without-gd \
|
|
--enable-clocale=gnu \
|
|
--with-headers=${STAGING_INCDIR} \
|
|
--without-selinux \
|
|
--enable-bind-now \
|
|
--enable-stack-protector=strong \
|
|
--disable-crypt \
|
|
--with-default-link \
|
|
--disable-werror \
|
|
--enable-fortify-source \
|
|
${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', '--disable-werror', '', d)} \
|
|
${GLIBCPIE} \
|
|
${GLIBC_EXTRA_OECONF}"
|
|
|
|
EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
|
|
|
|
EXTRA_OECONF:append:x86-64 = " --enable-cet"
|
|
|
|
PACKAGECONFIG ??= "nscd memory-tagging"
|
|
|
|
PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"
|
|
PACKAGECONFIG[memory-tagging] = "--enable-memory-tagging,--disable-memory-tagging"
|
|
|
|
do_patch:append() {
|
|
bb.build.exec_func('do_fix_readlib_c', d)
|
|
}
|
|
|
|
do_fix_readlib_c () {
|
|
sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c
|
|
}
|
|
|
|
do_configure () {
|
|
# override this function to avoid the autoconf/automake/aclocal/autoheader
|
|
# calls for now
|
|
# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
|
|
# version check and doesn't really help with anything
|
|
(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
|
|
find ${S} -name "configure" | xargs touch
|
|
CPPFLAGS="" LD="${HOST_PREFIX}ld.bfd ${TOOLCHAIN_OPTIONS}" oe_runconf
|
|
}
|
|
|
|
LDFLAGS += "-fuse-ld=bfd"
|
|
CC += "-fuse-ld=bfd"
|
|
|
|
do_compile () {
|
|
base_do_compile
|
|
echo "Adjust ldd script"
|
|
if [ -n "${RTLDLIST}" ]
|
|
then
|
|
prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST="\?\([^"]*\)"\?$#\1#'`
|
|
# remove duplicate entries
|
|
newrtld=`echo $(printf '%s\n' ${prevrtld} ${RTLDLIST} | LC_ALL=C sort -u)`
|
|
echo "ldd \"${prevrtld} ${RTLDLIST}\" -> \"${newrtld}\""
|
|
sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${newrtld}\"#"
|
|
fi
|
|
}
|
|
|
|
require glibc-package.inc
|
|
|
|
BBCLASSEXTEND = "nativesdk"
|